Tag | Debugging Posts

[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 ...
This is a third post in a series describing my Oslo based solution for deploying BizTalk applications; I’ve used this exercise to play around with ‘M’, but it was important for me to work on a real solution, with real benefits – something I could actually use…in Part I I discussed the concept and presented both the “source code” of my app and the output I was working toward; Part II was all about the MGrammar part of the solution. In this, third, part I will discuss the last missing piece –the runtime. ...
In Visual Studio Debugger for Windows Workflow Foundation you MUST set the workflow DLL project as the Visual Studio solution startup project to debug the workflow using F5 Documented in http://msdn.microsoft.com/e... It is not intuitive restriction. I've posted to MS Feedback that it will be good to support workflow Debugging from any startup project. Recently I've noticed, that if workflow DLL project is a startup project, it doesn't support Edit&Continue in a code dlls. ...
Thursday, March 26, 2009 1:00 PM - Thursday, March 26, 2009 5:00 PM Central Time Welcome Time: 12:30 PM Theater - Regal Brooklyn Center 20 6420 Camden Avenue North Minneapolis Minnesota 55430 United States Event Overview: Enhance your coding capabilities with new tools, tips, and inside secrets from MSDN Events. We’ll start with an overview of the Azure Services Platform, which can help you build cloud-based applications and solutions that offer the best of online and on-premises functionality. Next, ...
Sometimes, you get pretty unclear exception messages. The message below is one example of such: Exception type: TargetInvocationException Exception message: Exception has been thrown by the target of an invocation. [...some stuff removed...] Stack trace: at System.RuntimeMethodHandle.... target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.... target, Object[] arguments, ...
Well, we are halfway through day 1 and there are some very cool things being demonstrated and released. First, another reminder that you can see all the sessions for Mix09 at http://2009.visitmix.com. One of the biggest topics of the conference so far is the release of Silverlight 3 into beta. There are a lot of great technologies which come along with this release including the ability to disconnect Silverlight applications from the browser. Myy personal favorite new application update is the release ...
14 marca 2009 odbyla sie darmowa (a jakze!) konferencja Community 2 Community, jednak z racji faktu, ze na poprzedniej mnie nie bylo, moge opisac jedynie tegoroczna edycje. Najwiekszym problemem byla rejestracja internetowa – konkurencja byla niesamowita, w turze zamknietej dla grup miejsca na sciezke .Net skonczyly sie w kilkadziesiat minut, a w turze otwartej dla wszystkich w okolo 10 minut. Lokalizacja konferencji Sama konferencja zaczela sie od rejestracji – juz podczas niej dal sie we znaki ...
Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
My work environment is usually an anything goes, wild west of development sort of place. There are no rules imposed, just a “get things done” attitude. Because of auditing, source control was a necessity that got added to the mix. We use SVN through VisualSVN Server and TortoiseSVN as a client. Well, as a part of self improvement and to produce better more reliable code, I’ve taken up learning TDD for myself. Our current methodology of testing here is based mostly on WTFs per minute and copious prayer. ...
[Source: http://geekswithblogs.net/E... I was debugging a particularly nasty problem and found myself wanting to edit the manifest of a compiled .NET assembly, to change the version number of the assemblies it was referencing. Not necessarily best practice, but in this case it would enable me to confirm the exact issue without a two-hour build-and-deploy cycle. Turns out that nasty hacks like this are very straightforward: Run ILDASM, open the assembly and choose File…Dump to extract the ...
http://www.prace-project.eu... I'm interested in digging into this article (and the Go engine and computer used) to see what types of algorithms are being used in cutting edge Go programs. I wrote and maintained a hobby chess engine for quite a while and I credit that with giving me a lot of the knowledge and insight I have regarding tree-based search schemes and heuristics as well as helping to improve my debugging and ...
Attributes are a great way to communicate some extra information about a class, method or property and the debugger looks for a few different attributes to determine the way it behaves while you are debugging code. Let’s take a look at the attributes that are used to control how the data tips display an object’s value. Imagine you had a simple customer class. Here is a screenshot of it at runtime: As you can see, the debugger is showing the public properties and the private fields that are used to ...
My friends, Clint Edmonson and Mike Benkovich are coming to Kansas City next Tuesday, March 10th for their quarterly community events. Clint will be talking about the cloud and how it will affect our future architectures in the morning and Mike will be sharing some Visual Studio 2008 debugging secrets and developing mobile Windows applications that afternoon. If you live in or around KC or are going to be in the KC metro next Tuesday, head on over to the Microsoft building in Corporate Woods and ...
I must be nuts, because in 6 days (we counted to verify) I was at 8 different airports with connections. Here is a list of every airport I hit: Kansas City Dallas Fort Worth Jacksonville La Guardia Philadelphia Atlanta Dallas Love Field San Antonio Here is a list of all the people that I can remember seeing: AC John Holliday David Broussard Tom Resing Jason Quesada (totally random but a Booz Allen guy) Bob Fox Chris Regan Tom Daly Lee Brandt (yeah he picked me up at the airport but I count it) Jay ...
On March 10th, I’ll be presenting an ASP.NET control library for Facebook at the Phoenix ASP.NET Users Group. Among other things, we’ll be talking about how to create a Facebook application using ASP.NET, debugging aids, and the Facebook API. Along with that, Terralever will be releasing our library to the open-source community on Codeplex. (This post will be updated once we’ve done so). The library is currently in varying degrees of maturity. We’ve got about half of the FBML controls supported in ...
[Source: http://geekswithblogs.net/E... Using LoadGen 2007 to submit messages with a complex SOAP header, I had a strange issue with the standard SOAP transport. The SOAP transport has two parameters for wrapping the input file into a SOAP envelope: <Parameters> <URL>http://x/ESB.Iti... <SOAPHeader>SOAPAction: "http://microsoft.practices... <SOAPPrefixEnv>&l... ...
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 ...
Last month I wrote about two conferences coming up soon in Poland. Organizers were busy all the time working on providing you with greatest speakers and technical content, and today we know the full agenda of both events. 4Developers, 7th March, Kraków Here is the agenda for .NET track: Ted Neward - Busy .NET Developer’s Guide to F#: Introduction Marcin Celej - Wykresy przy uzyciu biblioteki .NET Charts Szymon Pobiega - Inversion of Control w systemach zbudowanych w oparciu o obiektowy model domeny ...
The Watch window (actually there are four different Watch windows you can use) is easily the most powerful aspect of the Visual Studio debugger and the underlying technology it uses actually surfaces in several places: Watch Autos Locals Quick Watch “Data Tips” (the debugging tool tips that appear when you hover over a code element) The thing that most people might not realize is that you can actually call methods in the Watch window. This is useful because it allows you to see data structures that ...
We previously talked about the Location, Condition, Hit Count, Filter, and When Hit modifiers for breakpoints. These are great advanced breakpoints that will really make your debug sessions much more useful, but there are also some other advances in Visual Studio that go beyond these breakpoint modifiers. The first advance is the idea of advanced location breakpoints. How many times have you been debugging an issue and as you’re looking at the call stack you realize that you want to set a breakpoint ...
We have talked about the Location, Condition, Hit Count, and Filter modifiers for breakpoints which only leaves the When Hit modifier. Using the When Hit modifier allows you to change your breakpoint to a tracepoint. What is a tracepoint? Simply put, it is a breakpoint that continues execution. Why would this be interesting or even important? Tracepoints are great when you want to trace a particular path of execution, such as OnDeserialized events in your WCF DataContract classes. You are interested ...
We previously talked about the Location, Condition and Hit Count modifiers for advanced breakpoints. These are great for a lot of different debugging scenarios, but what about tricks specifically for debugging multi-threaded applications. If you have ever tried to debug a multi-threaded application you know that it isn’t always the easiest experience. Hopefully everyone is already familiar with the Treads window. If you aren’t, it is accessed through the Debug|Windows|Threads menu or the Ctrl+D, ...
The most basic aspect of any debugging session is the use of breakpoints, which allows you to specify a location in your application (a line of code) where program execution will stop (break) and allow you to inspect the internal state of the application at that exact moment. This is a pretty cool feature, but Visual Studio allows you to do even more with advanced breakpoints. Put simply, an advanced breakpoint is a breakpoint with one or more modifiers applied. A modifier allows you to change the ...
Just thought I'd summarize what I've learned so far ... a particular slide stood out for me.... Box in white around everything is the service and everything outside of it is the public internet. LB is a load balancer which takes input off the public internet and feeds it to the webrole ‘N’ = as may copies of the webrole you want all distributed behind the load balancer. This is the only way that input is coming into the system. No one in the world can hit and IP address of one of your boxes directly. ...
At PDC this year, Microsoft announced a major release of the Windows Workflow Foundations (WF); WF4.0 WF4.0 promises better performance, scalability, control, visibility, and usability than its predecessor. Gone are code-asides and the dreaded code activities, replaced with 100% XAML markup and custom activities. MFST has seriously stepped up its tooling to make custom activities easier (including defining a custom WF syntax which gets “compiled” to XAML), an improved designer and debugging support. ...
Last Thursday evening (Feb 5th), SSE sponsored a local developer bootcamp covering VS.NET 2008. We had a great turnout and a lot of great discussion and questions. If you are in the St. Louis area and interested in being invited to these bootcamps please drop me a line at kvgros@sseinc.com. First, I wanted to thank everyone on my various teams who contributed ideas for the talk. While I did do a lot of research for the event, many developers contributed some good ideas that found there way into the ...
So, I started to see if I can write programs in Linux. Found this very nice IDE. Mono. it seams to be very close to .NET development IDE in windows. I started to write some of my programs over again and design the GUI. But, what is going on? it crashes on me without a beep. No warnings, no backup. So I loose every single change I made in the last hour that I did not save!!! Am I doing something wrong? This is running on Linux Mint, on P4, 2.5GB ram, a lot of resources. Now, after sometime trying ...
In the UK I am the technical editor for the MSDN Flash. This weeks edition was a special focused on free software. I gathered together some of the best downloads based on recommendations from friends, colleagues and customers (which in case you were wondering is an overlapping group of individuals) plus a few of my personal favourites. I have tried to get something for everyone. From fairly generic utilities such as Free Download Manager and Unlocker, specialist tools such as SketchPath for XPath ...
In this issue: Rob Houweling, Mike Taulty, Andrej Tozon, Kevin Dockx, and Jobi Joy. Shoutouts (and wow... there are more than SL postings!): First off, Tim Greenfield has a very nice Azure post up about issues in building and running in general. Not sure how many of you SL Devs are also doing Azure, but I'm keeping my eye on it. Tim's post is a good one to read if you're heading that way: Windows Azure Hosting impressions and debugging hurdles Andy Beaulieu has a video hosted on his site of someone ...
I just got back from a business trip and sitting there on the counter was a copy of my latest book from Wrox! This book (my 20th) is titled Professional ASP.NET 3.5 AJAX. This was a fun book and I wrote this with some great co-authors including Matt Gibbs, Dan Wahlin, and Dave Reed. Amazon says that the book will be available on February 3rd (not too far away). Here is some of the introduction I wrote for the book: ----------------------------- ASP.NET revolutionized Web application development. ...
[Source: http://geekswithblogs.net/E... If you're debugging Web service calls, you may want to capture incoming requests so you can see exactly what's reaching the service. If BizTalk's hosting the Web service, it's a simple process of adding a FILE send port filtered on the receive port name to copy all incoming messages. If this isn't an option, or if you want the full SOAP envelope together with metadata about the call, you can use a packet sniffer. Packet sniffers monitor traffic over ...
So sometime about now, I tripped on the absolute worst part of this whole process. Heck, it’s so bad that in the years where I haven’t had a scoring app, this has been single-handedly why there was no scoring application. That, of course, is loading the data. Consider, 24 categories results in between 20 and 120 movies nominated (50 this year). If you’re recording information on people involved, it rapidly hits the hundreds. If you don’t want to store a lot of data, it’s not that bad, but it’s still ...
Last Thursday I had the pleasure of going down to a local theatre to watch through the MSDN event for Azure, debugging, and mobility. The event itself was refreshing, and I always enjoy hearing Zain speak. We have similar passions, and also similar personalities. The event started off with a brief look at Azure, which is Microsoft’s very beta cloud computing platform. The technology itself seems straightforward and easy to use, although Zain warned about a tedious process of getting the tokens necessary ...
In this issue: David Betz, Shawn Wildermuth, and Terence Tsang From SilverlightCream.com: Setting a Silverlight 2 Startup Breakpoint using WinDBG David Betz continues discussing debugging Silverlight using WinDBG. It looks like direct questions might get answered, so if you have 'em, post 'em! See my Silverlight Data Access Talk from DevReach If you weren't at DevReach in Bulgaria, Shawn Wildermuth has a link to the video of his Silverlight Data Access talk. This is LINQ, ASMX, WCF, REST, Astoria, ...
I've been an avid user of Windows 7 pre beta ever since we got a build at the PDC conference in Los Angeles in October 2008. I installed it in dual boot on my work laptop, as explained here. There were a few minor kinks that forced me to keep Vista on this machine. The most annoying was that it was impossible to debug Silverlight on that build. Well, happy to report that this annoying bug is gone now, and I can develop and debug Silverlight on Windows 7 now. Let's see other problems and what happened ...
Silverlight makes creating compelling Rich Internet Applications fairly easy. That said the cut down version of .Net means some things that you would do within an application have to be relegated to Web Services which can benefit from the full .Net library. One of these is of course Azure, after all that is the whole point - an online store of Business Logic and data. The application I'm working on uses Silverlight on the front end, and Azure will provide the bulk of the backend. There are reasons ...
Honestly, my eyes lit up like it was Christmas all over again when I read the updated MSDN Events RSS on my google reader. Some Louisiana love is finally on its way this month, here is the low down: MSDN EVENTS - AZURE, DEBUGGING AND MOBILITY SESSIONS INCLUDE - Demystifying Azure: An Overview of the Azure Services Platform for Developers - Deepen your Debugging: Tips and Tricks for the Visual Studio 2008 Debugger - Developing for Windows Mobile Devices FREE ADMITTANCE Enhance your coding capabilities ...
In this issue: Nikhil Kothari, David Wynne, Damon Payne, Laurent Bugnion, Terence Tsang, Scott Morrison, John Papa, Ning Zhang, Jesse Liberty, and Lee Shoutouts: Koen Zwikstra, has promised, has uploaded the Slideshow 2 Source Code If you want to go to MIX and you haven't registered yet, at least as of sometime yesterday Special Offer Still Open – Save 40% on MIX09 Registration ... best $795 you'll spend! Falling in the 'oh crap' category... Sara Ford has announced: Did you know that today’s tip ...
In this issue: David Wynne, Damon Payne, Nigel Sampson, Jeff Prosise, Ning Zhang, and Terence Tsang. Shoutouts: John Papa's book is out... I haven't seen it, but it's one I'm going to have to get... all the info I've seen says it's a keeper: Now Available: Data Driven Services with Silverlight 2!. Martin Grayson has announced an update to the Patient Journey Demonstrator with lots of screenshots and a video demo: Patient Journey Demonstrator December 2008 Released . Keep an eye on Jeff Weber's blog ...
earlier this week Microsoft announced the release of the beta version of BizTalk 2009. I’m sure detailed posts of various bits will follow soon, but for now I thought I’d list a few points I’ve picked up (in no particular order)- BizTalk projects are now “first class citizens” of Visual Studio [2008]; in practice it seems they are really “special” c# projects. This means quite a lot really, to start with, for the most part they look and feel like c# projects (in the beta build the icon for the project ...
I needed to debug Windows Services. But I didn't like suggested in multiple articles Debugger.Launch. Thanks to post "Debugging Windows Services is a Pain" (and article CodeProject: Debugging Windows Services under Visual Studio .NET) I was able 1. To download Service Debugging Helper (Binary) (or Service Debugging Helper (Binary + Source)) 2. Add in my service project a Reference to AndersonImes.ServiceProcess... 3. Change in the Main() function //ServiceBase.Run(ServicesT... ServicesLoader.StartService... ...
Good news ... On Monday December 8th, 2008 Microsoft announced Public beta of BizTalk Server 2009 (https://connect.microsoft.... What’s new in BizTalk Server 2009? Ø Simplify Interoperability ü Support for .NET Framework 3.5 SP1 and Visual Studio 2008 SP1 - take advantages of the latest developer tools. ü Support for Windows Server 2008 and SQL Server 2008 – full support of Hyper-V, and increased performance and scale. Ø Extend To The Edge ü EDI - enhanced out of the ...
Recently, I ran into a problem where I needed to cast from an unknown type to a known type. Normally this would be fine as I a generic cast. For example... 1 public static T ValueOf<T>( this OracleCommand command, string parameterName ) 2 { 3 return (T)command.Parameters[param... 4 } The parameter of course returns an object and I wanted to streamline the parameter value lookup process. All was well until I started using ODP.Net (instead of Microsofts OracleClient). With the OracleClient, ...
Did you see the announcements over the last month on Visual Studio 2010 and the .NET Framework 4.0? Are you still wondering what is new and improved in those products? There is a lot! I’ve been developing on .NET since the beta of 1.0 and I can tell you that this release is as exciting as any of the previous releases. There are a lot of improvements both in the technology and the way that we’ll build applications on the .NET Framework. There will be a larger learning curve for this release than for ...
This is the first of a series of posts that are intended to help C# developers to get ANTLR up and running and help me to remember what steps were required to get things set up. What is ANTLR? Take a look at the ANTLR website. ANTLR is a tool for developers who want to create languages that comply to a context-free grammar. For such a grammar, ANTLR can create a lexer, a parser, an abstract syntax tree and even a corresponding tree walker. You need some or all of those components to validate, process ...
I'm really not obsessed with performance -- honest! However, when a co-worker asked me today exception handling was an acceptable way of coding defensively, my reaction was rather predictable. Exceptions are pure evil, and should be... well, exceptional. Yes, you guessed it. The next question was "How bad is try/catch really?" The short answer is that is involves minimal overhead... unless an exception is thrown. In that case, the .NET exception handling mechanism does a few nice things, like providing ...
I often get asked by other developers at work or during presentations about various tools that I use. Most of the tools I use are relatively well known, but I'm going to create this post so that I have a single point where you can download everything without a bunch of Googling. Almost all of the tools on this list are free. My only disclaimer is that this is simply my personal list of the tools I use most often. If you're looking for a *real* list that is extremely comprehensive, then I recommended ...
I'm frustrated...No matter which jobs I take I seem to end up working on UI with ASP.Net Webforms. I don't like UI and I really don't like webforms. The model feels broken to me. I don't know whether I'm missing something fundamental in my understanding of the webforms paradigm or it really is broken. I seem to spend a lot of time fighting with the framework. You know when you design something really well and it's just 'nice' to use and then you design something badly and its hard to use? You end ...