Tag | Debugging Posts

Well, for a long time I have been a big fan of open source software, and although I'm not specifically a .NET developer, it's my main focus, as everything I do work related is .NET. I've known about The Mono Project for a while, and I typically run Ubuntu as my OS of choice, with XP running in a VM for when I really need it. Well, I haven't booted up Ubuntu for a while, having been really busy doing work stuff, so today, I decided that it was time to take Ubuntu's Latest version, Jaunty Jackalope ...
Okay, so recently I was working on a new suggestion for my client. It was a fairly simple request; create a snapshot of data to be used in monthly calculations, with the option to regenerate the snapshot at a later time. The snapshot was easy. I thought regenerating the snapshot would be easy too, but somehow I found a way to make it hard. The first mistake I made was not writing a test first. Really this had a lot to do with laziness. The data that I am capturing is only available via a view into ...
If you have ever wondered why your .net application has a slow startup performance you normally start watching with Process Explorer at your processes. But this will not always give you the full picture since it can loose some csc.exe calls because if you have a fast machine it will not get them. A more reliable tool is Procmon where you can look for process starts: Where do these compiler invocations come from? It turns out that XmlSerializer is to blame which generates a C# file in your TEMP folder, ...
Scenario: I'm debugging a (web) project in Visual Studio 2008. It is breaking and the first break point only, and thereafter when i hit F10 it ignores and subsequent break points and runs all the way through. Why is this happening? Couple of pointers before we discuss the solution I have tried 'clean solution'. Other breakpoints sometimes(!) skipped, even in the same method Make sure that you're in Debug mode not in Release. There could be an exception while executing the instruction in question. ...
Let me first start by saying that I was very much excited about creating a Silverlight multitouch application ever since I heard the announcement that Silverlight supports it, I couldn’t wait to try porting some of our Surface applications to Silverlight. From a pure feature perspective Silverlight Multitouch doesn’t really provide much since Silverlight Multitouch can only work on Windows 7 running on a Multitouch capable hardware (HP Touchsmart TX2 in my case) and when you create a web application ...
Saas vs. S+S Saas is an architectural paradigm where a solution architecture can benefit from the economies of scale of the data and behavior of that architecture being built and hosted in the cloud by a third party in a multitenant fashion. Software + Services is an architectural paradigm where a solution architecture can achieve some of the same economies of scale as Saas while simultaneously benefiting from the synergies and efficiencies of the data and behavior of that architecture being partly ...
We all know about the concept of Feature Stapling and most people write it out correctly on there blogs, such as this post: http://www.sharepointnutsan... However, I’ve noticed that very few blogs have the correct code to post in the FeatureActivated and FeatureDeactivating events. This is the correct code from looking at a CodePlex Project by Scott Hillier, looking at wrong code all over blogs, and debugging some code I cobbled together in Visual Studio to throw ...
I’ve lost count how many times I’ve heard that quote. It’s a great quote said by one of the leading minds in computer programming and formal mathematics, Donald Knuth. The problem with this quote is that, like so many other things, people have only remembered (or only quote) a small portion of the entire thing. To read the full quote, you need to look at a paper published in December 1974 titled Structured Programming with go to Statements in Computing Surveys. The full quote is this (in reference ...
NHibernate's EnumStringType is a custom user type to realize an arbitrary mapping between an enum in your domain code and a related set of strings in your database. While playing around with it, I stumbled over some strange behaviour that turned out to be a bug in NH's codebase. It took me two days to finally nail down the problem. This post is mainly intended to be a short recap of my findings. Hopefully I can prevent some other poor developer souls to get stuck with the same problem, providing ...
For those of you who missed the chat today, here is the raw transcript. By raw, I mean that I copied and pasted the discussion without any edits. This is divided into two parts, the top part is the answers from the Microsoft Experts and the bottom part is the discuss (questions) from the audience. Answers from Microsoft: RajeevDu[MS] (Expert): Hi, This is Rajeev Dubey, Bluetooth Program Manager. Sue Loh [MS] (Moderator)[12:02]: Hi, I’m Sue Loh, a developer in the Windows Devices Core team at Microsoft. ...

In debugging a lot of large log files in SharePoint you need to use a nice tool to help you.

 

I have used this tool and i have found that it is a nice and easy one.

 

http://sharepointloggingspy.codeplex.com/

In Platform Builder: Debugging the Boot Hive, I talked about opening nk.bin files in Visual Studio with Platform Builder and how this was a good tool for reviewing the registry settings. But, you can also use this technique and diff two nk.bin files. Once you open on nk.bin file, there will be a small icon just below the filename tab. This is shown below in the red circle: When you click on this icon, you will be prompted to open a second nk.bin. Opening the second nk.bin will display the deltas ...
Recently, while debugging desktop client - WCF service application I came across this error: System.ServiceModel.Securit... was caught Message=”An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.” Source=”mscorlib” StackTrace: Server stack trace: at System.ServiceModel.Channel... reply, SecurityProtocolCorrelation... correlationState, ...
Most developers these days have moved on from C++ and its lower-level cousins. Higher-level languages are now the norm, including Java, Python, Ruby and C#. Developers have adopted these languages because of the productivity gains that are enabled by working in a higher-level language. Garbage collection frees a programmer from worrying about several common classes of bug. These languages also stress expressiveness over performance, meaning that you have to do less work to get the results that you ...
In this Issue: Chris Klug, Alex Knight, John Papa, and Alexey Zakharov. Shoutout: David Kelley is working on a Designer/Developer project and they're looking for folks to fill out 2 parts of a survey: Designer Developer Communication and Interaction As an example of Designer/Developer interaction, David also has up a post: Simon a case study part 1 - designer developer work flow Terence Tsang has 40 of his Samples up in his Silverlight 3 Resources. There are new ones and you can upload your own! ...
I read an interesting article in the August issue of MSDN Journal by Melitta Andersen about a new feature being added to version 4 of the .Net Framework. That feature is a new BCL (Base Class Library) for specifying the input and output contracts for a method. In essence the new feature will allow the developer of a method to write code that specifies exactly what is expected as input by the method and exactly what can be expected as output. Now most of us, I'm sure, are providing this same information ...
Debugging an application remotely on a WES system running WES requires a little setup. The following presents steps for setting up the remote system and the application environment for remote debugging using MSVSMON.exe. 1. Have your system administrator do one of the following on the WES system: a. Add the WES system to the domain give the system a name, in this case use WES-DEVICE. You will need to log onto the WES system using your domain username and password. b. Add an account on the WES system ...
Tags: Surface Development of Surface applications is done on the Surface Simulator. Even at Microsoft the Surface team works most of the time in the simulator: I’ve heard they have 1 Surface unit per 8 developers. The simulator works fine and is a great tool for developing the applications: the debugging experience is actually quite nice. But sometimes you have to deploy your application to the actual physical unit to see what it looks like in ‘real life’. I think that is the only way to determine ...
I recently wrote a Windows service for the development team here at work. Apparently, the devs were all committed to other projects and this extra curricular activity popped up. Being a developer in tester's clothing, I was asked if I'd do it. Interestingly, this was originally to be a Powershell script, but the more I worked on it the less it sounded like PS and the more it sounded like a service...pretty straight forward stuff: comes alive at configurable times, looks for files in a folder, processes ...
Hi all , I recently was working with a client that implemented a telerik navigation control as a quicklaunch. They decided to split up all the sub-sites into their own site collection. They wanted to place quotas on subs sites, and if you don't know, you can only set quotas on site collections and not sub sites. This switch or splitting of sites posed some interesting problems. 1) Telerik Control now needed to be added to each sub site for navigation. The control specifics were added to a master ...
Network Monitoring Your web app on the server has plenty of tools and ways to measure performance, as well as tools like SQL-Server Profiler for SQL databases. But how do you trace, track and debug client-side code interactively? The use of alerts has been useful but does not support an interactive way for you to interact with the web-page on the fly. To make matters worse, even if you place some traces into your js code to help find the slow functions, etc, network latency may be another cause of ...
Hi, typical project teams have a build environment to streamline the production and release of the various versions of their application or product. In many project, there is more than just the needed application that gets built in this environment. One very common thing that those environments often build is a toolbox or other kind of shared libraries. This article will hopefully help you setup an even better environment than the one you actually have or shall I say a more complete one… This post ...
Summary: In this post we will discuss the tooling that is at our disposal and also some of the benefits or not so beneficial features it brings to the table. Content Introduction Tooling Benefits of using it Introduction ASP.NET MVC is Microsoft's way of getting on the MVC wagon. It offers a lot more control over the application you're building, no more WebControls ( personally I never and hope to never have to use it ), pure XHTML as W3C would have you doing anyways. At this moment, and I suspect ...
I was speaking with a colleague earlier today about a potential threading issue in his code. I suggested serializing access to his object to ensure two threads are not using it at the same time, as that could corrupt the processing. Being a relative “old-timer” who’s largest mutithreading applications were written in Visual C++ v 5 and 6, I remember heavy use of the CriticalSection, and wrapping the lock/unlock of critical sections in a class to ensure that every lock eventually got unlocked. We ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
We are using .Net Remoting to interact beteeen client and back end server. I needed to call a method from services class. For debugging purposes I decided to create the class directly. It was easier to debug without starting extra back-end process. The code was like the following: IMyServices services = (IMyServices)RemotingHelper... #if DEBUG services = new MyServices(); #endif // Process the task services.ProcessItems(Items... During the development I checked ...
You just finished that BSP, developed all required drivers and low-level code, configured hive-based registry, defined your device's memory layout... and now it's time to develop your application to leverage all that low-level/OS code and provide great services to your device's end users. You may want to use visual languages like C# or VB.Net to develop it, using the power and ease of usage of the .NET Compact Framework or, you want (or need) to use C and C++ but you want to use advanced libraries ...
One of the big areas of improvements coming to Visual Studio 2010 and .NET Framework 4 is in the area parallel computing. There are a LOT of new features and improvements to existing features here with this latest release of our developer tools. Many people smarter and more capable than I have already written about most of this stuff, so there’s not much for me to add. What I did want to do though is to let you know all the places where you can find this wealth of information (and there is a lot ...
The LiveMeeting Q&A session with ScottGu was, as usual, very exciting. As promised, here are some of the highlights from his answers. Microsoft’s Development Process In terms of the development process at Microsoft, Scott said that more projects will be developed with openness, transparency, more frequent releases, relying on customers’ feedback and with OSI open source licenses as in the case of ASP.NET MVC. Silverlight In regards to Silverlight 3 release date, it might be around the July 10th. ...
People always told me not to use MS Access for my web sites, however the closest they ever got to actually telling me why not, is something like: "It doesn't perform well if you have many user!" Well how many users is many I asked? This is where Einstein comes in to modern programming: "Everything is relative!" When I asked how many is many (user on an Access database) no one ever came up with a number - it was everything from 10 to 10.000. So Access performance has never been an issue to me, since ...
June 9, 2009 – Twin Cities Developers Guild Meeting, featuring Mike Benkovich When: 6:00 PM. Where: New Horizons of Minnesota (4510 West 77th Street - Edina, MN 55435) MAP Mike Benkovich Topic: Advanced Debugging with Visual Studio 2008 The system’s down, things are broken, what do you do? Before they panic you whip out your trusty Microsoft Visual Studio 2008 instance and attach to the troubled process. Use the tool the way it was meant to be used, quickly to identify the issue and save the day. ...
In this Issue: Brian Genisio, Bob Bartholomay, Seema Ramchandani, and Nigel Sampson. Shoutouts: First, congratulations to Andy Beaulieu for winning the ServerQuest contest with Boss Launch: Boss Launch wins Server Quest Contest!! The Expression Web team gives us a sneak peek at Expression Web 3 tools simplify debugging and Silverlight video encoding From SilverlightCream.com: Adventures in MVVM – Commanding with List Boxes Brian Genisio continues his MVVM discussion with this post on reacting to ...
In this Issue: Brian Genisio, Davide Zordan(2), Paul Chapman, Tim Heuer, Shawn Wildermuth, Brad Abrams, Jordan Knight, and Unni. From SilverlightCream.com: Adventures in MVVM – A Testing Story Brian Genisio submitted this just under the wire tonight... and it's a good discussion of how he got started in MVVM and testing Silverlight.Silverlight 3 Beta and Binary message encoding Davide Zordan has two posts up today. This one gives a quick example of binary message encoding on the client side, and ...
Introduction After a short sojourn with the Visual Studio 2010 Beta, I’m back with the next part. Pop quiz – can you run Visual Studio Team Foundation and Visual Studio Professional without Team Suite? Well some wit told a client you could not – so I spent some of the Bank Holiday proving otherwise – Another article there on setting it up, but in general it was incredibly easy for a server app! Anyway I digress back to the subject at hand – hosting a Silverlight Application in an Azure Application. ...
Recently, I have been noticed numerous of blogs, articles and other sources reminding me of the technologies, techniques and practices that the software development industry has begun to discard and developers are or should be ignoring. While many of these are obvious obsolete technologies that have been replaced by others across all modern and common platforms; there are many that are still necessary in today’s software development environments and organizations. The techniques to which I am referring ...
Most awaiting Visual Studio 2010 and .NET 4.0 Beta 1 is available for download now, which include ASP.NET 4.0 enhancements, support for SharePoint development , more support for parallel programming , Cloud computing etc., Here is the quick list of features for developers in Visual Studio 2010 1) Inline Call Hierarchy for better code understanding : This one of the most interesting features of the Visual studio 2010 for developers. This features enables developers to understand the code easily. This ...
You can learn about Windows Mobile managed application development with the new Windows Mobile RampUp. The RampUp consists of 7 levels covering various aspects of developing and debugging managed applications for Windows Mobile devices. You can access RampUp here. I guess they will be covering the topics using C# ...
Last week was certainly an exciting weeks for many of the Microsoft bloggers in the community. Microsoft Tech-Ed 2009 in Los Angeles, one of the largest technical industry events of the year took place, and it appeared as always Microsoft reserved many of the announcements for its forthcoming Windows 7, and Office 2010 platform until last week. Being based in Sydney, and I unfortunately didn't managed to attend the event (through cost, as opposed to want), however through the trawling of many blogs ...
Back from hiatus. I've never had an excuse to do remote debugging until recently, but I've always heard that it's a serious pain in the ***, hence, I avoided it. Recently I really needed it to work, and of course, it didn't. Remote debugging seems to be a little easier than it used to be, and if you do enough searching you'll eventually find what you need. Here's the short version: Step 1: Go here: http://www.microsoft.com/do... ...
A customer contacted me a few weeks ago to tell me that their managed code application failed when running on Windows CE 6.0 with the .NET CompactFramework 3.5. It ran fine on Windows CE 5.0 with .NET CF 3.5 and on Windows CE 6.0 with .NET CF 2.0. The problem was really odd because it showed up in different ways, but usually there was an error message similar to: File or assembly name 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3BE235DF1C8D... or one of its dependencies, ...
I was integrating a JQuery plugin for file uploads, uploadify, in my app when I saw a very strange behavior. The plugin reported an error transmitting the file to the server and debugging the controller code I noticed the target action wasn’t being called at all. Debugging the client code I found out that the server was redirecting the upload to the login page. The Controller was marked with the AuthorizeAttribute but the user was already authenticated. After a google search I found this article ...
The WorkflowRuntime class has a host of interesting methods and useful events. Events such as Completed, Perssited, Idled are invaluable when debugging and in understanding how a workflow instance is behaving. These events are easily accessible when self hosting the runtime since you can just hook up event handlers for these events and react to these events as you see fit. But, when the workflow runtime is hosted in IIS/WAS/Cassini host, you don’t have a direct handle to the runtime for hooking up ...
Normal 0 false false false EN-US JA X-NONE MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} Robert ...
for those 6 of you not on the mailing list… CodeStock 2009 is quickly approaching, and I wanted to let you know some of the things we have in store for this years event. We’ve partnered again withRecruitWise to bring you a full, two day conference with room for 50+ sessions, an expanded Open Spaces conference, and are adding a few panel discussions. We have some twists this year, the big one being attendees can vote for sessions. Anyone that registers before May 15th 2009 will be able to look through ...
Need to turn on or off MSI installer logging? Found the reg setting here http://support.microsoft.co... To enable Windows Installer logging Open the registry with Regedit.exe and create the following path and keys: HKEY_LOCAL_MACHINE\Software... Reg_SZ: Logging Value: voicewarmupx The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows for MSI version 1.1: v - Verbose output ...
Brian Harry has posted a list of features that will be in the upcoming beta 1 of Visual Studio 2010 Team System. Unfortunately, the date of release for beta 1 has not been announced yet. Architecture (http://blogs.msdn.com/came... Architecture Explorer Layer diagram Use case designer Activity designer Component diagram Logical class designer Sequence diagram Modeling project system UML Model explorer Architecture validation during build Development & Database (http://blogs.msdn.com/habi... ...
In this Issue: Chris Anderson, Jesse Liberty, Al Pascual, and dzineblog. Shoutout: Shawn Wildermuth is doing an MSDN GeekSpeak on Silverlight 3: MSDN Webcast: geekSpeak: What's New in Silverlight 3 From SilverlightCream.com: Building a Silverlight Line-Of-Business Application – Styling Part 7.2Chris Anderson has his latest LOB installment up at SilverlightShow. He's talking Design today and has lots of external links.ViKi Version 0.0.01Jesse Liberty has a jump-start up for what he's now calling "ViKi" ...
[Source: http://geekswithblogs.net/E... DataContract classes in WCF can be declared as implementing IExtensibleDataObject to provide in-built support for schema versioning. Any data contracts created through svcutil or Add Service Reference implement the interface, and it's good practice to implement it for any custom DataContract classes you write. On deserializing, elements which are not declared in the data contract are extracted by the DataContractSerializer and added to the ExtensionDataObject ...
I haven't had a chance to do any web work in a while, but I have a new web app this week. Being the lazy programmer I decided to step through the page execution from VS2005. For some reason the breakpoints weren't being hit. I even tried debugging web apps I've debugged in the past but no luck. I installed IE8 last week. Apparently there is some great new feature that causes VS2005 not to attach to the process if more that once copy of IE8 is running. There is a registry hack to fix it. 1) Open RegEdit ...
I recently had to do some simple debugging of some script tasks and components in SSIS and through I would share the simple technique that I was using. While this is only just above the level of debugging using MessageBoxes it can still be quite handy. It basically consists of printing information messages to the Progress/Execution Results window in BIDS. The syntax differs between the ScriptTask and the ScriptComponent and I keep forgetting it, so I figured if I posted it here I should be able to ...