Tag | Debugging Posts

IntelliTrace is a new feature in Visual Studio 2010 Ultimate Edition. I see this valuable tool as a “Program Execution Recorder” that captures information about events and calls taking place as soon as we hit the VS2010 play (Start Debugging) button or the F5 key. Many online resources already discuss IntelliTrace and the benefit it brings to both developers and testers alike so I see no value of just repeating this information. In this brief blog entry, I would like to share with you how I will ...
Dreaded SQLs We used to think that a SQL statement without a where clause is only dangerous right since running that on a server TSQL is just going to impact the entire table like waving the magic wand. For that reason we should cultivate the habit first to write the statement as select and then to modify the select portion as update. Within the T-SQL Window, I would normally prefer the following first: select * from employee where empid in (4,5) and then once I am satisfied with the results, I would ...
Just found a good (looks like) tool for jQuery coding and debugging from the appinn.com (Chinese) named jQueryPad by Paul Stovell. With it we don’t need to switch between the visual studio and the browser when coding and debugging. There’s only one main screen where we can type the HTML and jQuery code and just press F5 to see the result in the bottom frame. .NET Frameworks 3.5 is required. Hope this helps. Shaun All documents and related graphics, codes are provided "AS IS" without warranty of any ...
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 questions from the audience. Answers from Microsoft: Karel Danihelka [MS] (Expert)[2010-3-30 12:2]: Hi everyone, my name is Karel Danihelka and I am developer in partner response team. Sing Wee [MS] (Expert)[2010-3-30 12:2]: Hi, I'm Sing Wee, ...
InvalidOperationException: Cross-thread operation not valid: Control 'progressBar' accessed from a thread other than the thread it was created ... Now this is not a nice way to start a day! not even if it's a Monday! So you have seen this and already thought, come on, this is an old one, just ask whether InvokeRequired before calling the method in the control, something like this: if (progressBar.InvokeRequired) { progressBar.Invoke ( new MethodInvoker( delegate { progressBar.Value = 50; }) ) }else ...
Introduction Although it was possible to write extensions for Expression Blend and Expression Design, it wasn’t very easy and out of the box only one addin could be used. With Expression Blend 4 it is possible to write extensions using MEF, the Managed Extensibility Framework. Until today there’s no documentation on how to build these extensions, so look thru the code with Reflector is something you’ll have to do very often. Because Blend and Design are build using WPF searching the visual tree with ...
Another March, another MIX. For the fifth year running now, Microsoft has chosen to put on a conference aimed less at software development, per se, and more at the products, experiences and designs that software development can generate. In all four prior MIX events, the focus of the show, its keynotes and breakout sessions has been on Web products. On day 1 of MIX 2010 that focus shifted to Windows Phone 7 Series (WP7). What little we had seen of WP7 had been shown to us in a keynote presentation, ...
If you’re like me, you might see the open source Eclipse IDE as a copy or, more generously, a port of the Microsoft’s Visual Studio for the non-.NET world. It’s not that Microsoft invented the IDE (I would credit Borland with that), but they really took the idea and ran with it for the first version of Visual Studio .NET in 2002. The question is whether someone outside of Microsoft could take the modern IDE yet another major step forward in both principle and productivity. I think that has actually ...
In this Issue: Walter Ferrari, Viktor Larsson, Bill Reiss(-2-, -3-, -4-), Jonathan van de Veen, Walt Ritscher, Jobi Joy, Pete Brown, Mike Taulty, and Mark Miller. Shoutouts: Going to MIX10? John Papa announced Got Questions? Ask the Experts at MIX10 Pete Brown listed The Essential WPF/Silverlight/XNA Developer and Designer Toolbox From SilverlightCream.com: How to extend Bing Maps Silverlight with an elevation profile graph - Part 2 In this second and final tutorial, Walter Ferrari adds elevation ...
UPDATE (2011-01-28): ASP.NET MVC 3 I have a newer blog post that shows how to get Client Side Validation Summary without doing any of this. I will still be answering questions and supporting this for developers who are still using ASP.NET MVC 2. If you are on ASP.NET MVC 3, go here. Problem The MicrosoftMvcJQueryValidatio... script file, which integrates with the jQuery Validation Plugin, does NOT populate validation errors inside the Validation Summary control. I will show you how to populate validation ...

I’ll be speaking on New Debugging Features of Visual Studio 2010 twice next week.

First will be the New Jersey Microsoft Developer's Group on Thursday, March 4 at 6:00.

On Saturday, March 6, I’ll be one of many speakers at Code Camp NYC 4, speaking time not yet set.

Hope to see you at either event!

Yesterday I picked up a nice package from TinyCLR.com. Yes, it is yet another robot (third in fact), but this time it runs .NET! How freaking cool is that! This robot is controlled by FEZ Mini board that runs .NET Micro Framework. What’s interesting is that this board has pin-out compatible with Basic Stamp from Parallax. You can also uses it easily on a breadboard for prototyping (just like Boarduino). TinyCLR.com also offers a larger board called FEZ Domino that has pin-out compatible with Arduino ...
Hi everybody, It has been a long time since my previous post about mapping stored procedure parameters to SSIS package variables post. I have been busy+lazy and never get around to posting a follow-up post until now. In this post, I will show how to execute a SSIS package using the dtexec Utility from a Stored Procedure because it is one of the most frequent questions I received for my previous blog post. First of all, I have a few important things to let you know. I am a Senior .NET Developer and ...
Setting the context… We have a web application which communicates with WCF based service façade for any business functionality. This service façade then loads assembly (based on configuration) at the runtime for making the system pluggable. By default the implementation is in the service assembly itself. Below is the sample code for loading the assembly and creating an instance of the desired class. Assembly asm = Assembly.LoadFrom(Path.Comb... assemblyName)); ...
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 ...
In this Issue: Fons Sonnemans, Mark Monster, Karl Shifflett, Einar Ingebrigtsen(2), Jeremy Likness, Emil Stoychev, Andrew Veresov, Sergey Barskiy(2), and Tim Heuer. Shoutout: Karl Shifflett announced Karl Now Using Vimeo for Videos... check it out, thank Karl, and create an acount. From SilverlightCream.com: Keyboard selection on Silverlight ListBox and ComboBox Fons Sonnemans explains and provides a behavior that allows keyboard selection on a ListBox or ComboBox. MeXperience – Step 3 – Architecture, ...
In this Issue: Jeremy Likness, Vikram Pendse, David Burela(2), Paulio, David Anson, Jesse Liberty, and Brett Balmer. Shoutout: Jeremy Alles has a Minor update to the Silverlight MVVM frameworks explorer Seema Ramchandani posted his materials PDC video, TechEd Iceland, VS2010, profiling, Silverlight 4 Gavin Wignall blogged about Metia launch Silverlight banner with Deepzoom and Smooth Streaming! Andrew Myhre posted about his Silverlight Preloader Project on Google Code Jim Lynn has a post up about ...
Over the past several weeks I’ve found myself having to play the role of server administrator more and more. Being a developer I’ve had some exposure to server admin work in the past, but I certainly don’t consider myself an expert in the area. Unfortunately there was no one else to do it, so theses tasks started to come my way. Just before Christmas I was driving down to south Florida to visit family when I saw an urgent message from work stating that people were having issues logging in to our ...
When debugging, you might see that MojoPortal starts up many different ASP.NET Web servers, one for each Web project. Hidden in the readme README.VisualStudio.txt included with the SVN trunk is the workaround. Good to know!! Additional info: You may notice when debugging that multiple web servers are spawned. This is because there are multiple web applications in the solution as features are split into separate projects. All the files for features get copied up to the main mojoPortal.Web project ...
I have had a couple of discussions with some former co-workers in the past couple of weeks regarding "what I am doing now", and each one of them seems to have the same "whoa, thats different" comment on it. To be honest, I felt the same way. It really seems like over the past 7-8 years, Microsoft has gone against the grain of what they had been doing back in the traditional ASP days, in continuing to produce new technologies (.Net Framework / ASP.Net / Atlats / AJAX / XAML / WPF / WCF / Silverlight ...
How to write a good code – 2 Following design principles makes design/ architecture of your project good and we developer don’t have much role in this. This is primarily taken as role of software/ solution architect. So what developer can do to make code better and understandable? So it’s in hand of to write an easily understandable, well refactored and clean code developer (at least in agile world, where everything is not documented). So I collected some useful information from “Clean Code – Robert ...
I had wanted to post something this month so I thought I would post a list of applications or add-ons that I have found to be useful. So to get right to it I’ll will start with the add-ons to Firefox I like. For reference I am currently running Firefox version 3.5.6. Adblock Plus – Does what it says and works pretty well. NoScript – It works well but it may block a site’s functionality until you allow that site. Not a big deal for me or you but it may not be the right extension for everyone (I’m ...
In this Issue: Richard Waddell(2), Jeremy Likness, AfricanGeek, Michael Washington, Colin Eberhardt, clearbreeze(2), Tim Heuer, Allan Muller, Shawn Wildermuth, Jesse Liberty, Brad Abrams, and Gill Cleeren(2). Shoutouts: I'm sure you all aggregate Scott Guthrie, but just in case: Search Engine Optimization (SEO) Toolkit Shawn Wildermuth posted links to his XBoxGames Databases for SQL Server 2005 and 2008 Fons Sonnemans posted his Silverlight Christmas Card... using behaviors he already discussed... ...
Phil and I discuss the real time web and consuming real time data from a Silverlight client. “Real-time data can be consumed in a number of ways but there are a few techniques that are better suited to an RIA. A publisher/subscriber hub is one way of subscribing to data but this technique requires the subscriber to be running a web server which isn't possible from Silverlight or any other RIA technology. Continuously polling a resource is the most common way to check if the data you are interested ...
One of the MVVM Light Toolkit’s user requested that I add the possibility to pass the EventArgs of an event to the ICommand that it is bound to through the EventToCommand trigger. At first I was a bit reluctant because it seems like a transgression of the rule that says you should avoid to have too much knowledge about the UI layer in the ViewModel. For example, if you have a RelayCommand in the ViewModel that expects a MouseEventArgs, it kinds of binds you to a certain kind of UI element, which ...
Technorati Tags: Parallel Programming In Visual Studio 2010, the Parallel Computing team has delivered APIs and tools for developers wanting to build applications that take advantage of multiple cores. This video provides examples on how to manage APIs, debugging windows and profiler support. VS2010 Parallel Computing Features Tour Posted By: Daniel Moth To view the video go to: http://channel9.msdn.com/po... ...
Technorati Tags: LINQ PLINQ: LINQ, but Faster! Parallel Language Integrated Query (PLINQ) in the Microsoft .NET Framework 4 offers a minimal-code solution to take advantage of this parallel hardware, providing an implementation of the .NET Standard Query Operators that uses parallel execution techniques underneath the simple LINQ programming to make applications run faster! Come for a deep dive into PLINQ via Microsoft Visual Studio 2010. See what it looks like from the perspective of LINQ developers, ...
I received the following error yesterday: "Unable to start debugging on the web server. An authentication error occurred while communicating with the web server. Please see Help for assistance." I tried a fair amount stuff (technical term) including items outlined on Ryan Farley's post regarding the message. What ended up working [for me] was posted by Boaz in the comments of Ryan's blog. Here is the link to the MSDN fix: http://support.microsoft.co... Warning: If you go the ...
In this Issue: Shawn Wildermuth, Beth Massi, Fredrik Normén, Deborah Kurata, Jesse Bishop, Laurent Duveau(2), David Yack, Tim Heuer, and Jeff Handley. Shoutouts: Andy Beaulieu has a beta of a new game up: Froggy Math. He's looking for comments, so have at it! For all you 3D junkies out there, Einar Ingebrigtsen announced Balder 0.8.8.0 Release is out SilverlightGirl announced New achievements and contests on Mashooo ... and check out their website... wow... how cool! From SilverlightCream.com: Silverlight ...
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 questions from the audience. Answers from Microsoft: msft_davbo (Moderator): Our chat today covers the topic of Windows Embedded CE! 1. This chat will last for one hour. During this hour, our Experts will respond to as many questions as they ...
Keynote: HOLY SMOKES!! Now this is why I came to PDC! Announced today: Silverlight 4 Beta. Printing? Yep. Access to Local File System? Yep. Want to share your assemblies between SL and native .NET assemblies? No Problem. Want access to the clipboard? COM Interop? Web Cam & Micrphone? Done and Done. SketchFlow.. Wha!?!?! OMG thats a cool prototyping tool. Sharepoint 2010 is looking like a tour de force. The ease of development, integration and deployment. Debugging and sandbox support. Solutions ...
My thoughts and observations of this year’s Microsoft PDC conference in LA. Day 1: Just registered for the conference. They had many reps available to move attendees through the registration process. We arrived early, and had to stand in line for 15 minutes, while all the reps stared blankly back at us; “We don’t open until 7.” Wow.. Great Customer Service. Let me take this moment to comment on the Conference bag this year. ITS A CHEAP PIECE OF CRAP. Literally, it looks like a “reusable” grocery ...
It is Friday 13th Nov 2009 - which means it is the last day of TechEd Europe in Berlin. Overall I have had a good week – high quality sessions, lots of time with customers and colleagues and a very smooth conference throughout. I spent the week doing a bunch of things. 9am Monday I was presenting on Entity Framework 4 after 4 hours of sleep and using a brand new VPC after my original failed to load following yet another blue screen from the host (the machine will be flattened next week – perhaps ...
Tools and Techniques for the Windows CE developer I’m opening this blog after two presentations at TechEd EMEA, one in 2008 in Barcelona called “Go embedded!” which was presenting some specific challenges encountered in embedded projects – and another one this year in Berlin called “Windows CE Tools and techniques to face the embedded challenge”. These two talks have a logical articulation, first the “what” and then the “how”. I decided to cover the “Tools and Techniques” subject after several recent ...
<< Part 1 - Installing IronRuby and Cucumber A quick look at IronRuby Background IronRuby is an implementation of Ruby which runs on .NETs Dynamic Language Runtime platform (the DLR). Languages hosted on the DLR are interpreted at runtime, rather than compiled then executed (like C# applications). One benefit is that code can be invoked on the fly from a command line shell. This is handy when debugging or figuring out how to do something. Other popular DLR hosted languages include IronPython ...
This Saturday, November 7, the Fairfield / Westchester .NET User Group is hosting the 3rd annual Fairfield / Westchester Code Camp at the Connecticut Information Technology Institute in Stamford, CT. I’ll be speaking on New Debugging Features in Visual Studio 2010. Hope to see you there ...
I recently upgraded to MonoDevelop 2.2 Beta 2 (for the debugging capability, more on that later) on my Mac. When I opened a Moonlight solution and tried to run it, I got the following error: Could not find respack The project had lost its references to System.Windows and System.Windows.Browser. The cause turned out to be that when you upgrade MonoDevelop, it doesn't always update where it's pointing. The solution was to go to: /Library/Frameworks/Mono.fr... and delete all directories ...
For the past year, I’ve been working with a client that is in a very unusual position, at least one that has been rare in my career. My client is an established business being spun off from their corporate parent, so they are starting up their IT department from scratch. I had a similar experience almost a decade ago, when I joined an IT department right before a huge growth spurt in staff and responsibilities. I was brought on board to help with their SharePoint portal initiative. This included ...
I’ve been spending a lot of time lately debugging through some web-hosted applications. Some of these applications are hosted by Visual Studio’s own internal web server (Cassini), and others are hosted by my local instance of IIS. Web projects hosted locally get automatic attached to the VS debugger when you press F5. Projects hosted under IIS do not. In order to debug IIS hosted projects, you must attach the Visual Studio debugger to the IIS worker process (aspnet_wp.exe or w3wp.exe) manually. Traditionally, ...
Back Links LINQ Overview, part zero LINQ Overview, part one (Extension Methods) LINQ Overview, part two (Lambda Expressions) Note: I realize it has been a really long time since I've posted anything. It is both exciting and humbling that I continue to receive such positive feedback on these articles. In fact, that is why I am trying to put in the effort and finish off this series before moving on to more recent topics. This nomad has been on some interesting journeys these past months, and I am really ...
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: KarelD_MSFT (Expert)[2009-10-27 11:58]: Karel Danihelka - Developer in Partner Response Team. davbo_msft (Moderator)[2009-10-27 11:59]: Our chat today covers the topic of Windows ...
1)To ensure debugging of Javascript with VS2008 IDE, you have to make some changes in Internet Explorer. In IE, Go to Tools--->Internet Options. Then in the Advanced Tab, make sure both the following check boxes are unchecked. i) Disable script debugging (Internet Explorer) ii) Disable script debugging (Other).2) Enabling Json on WCF.While enabling a WCF Operation to return data in Json format, you will find that , the tag WebInvoke is not resolved by default namespace references. To take advantage ...
Implementing callback in WCF services. This is a way of writing asynchronous code using wcf services. But do we know why to do this explicitly when adding a service reference also gives you a facility of generating asynchronous operations? This is because the asynchronous operations which we generate while adding service reference are not fake asynchronous calls, in fact they are synchronous call only, just let code not to wait for the response/ notification and it has its timeout period and will ...
One of the most common question people ask me in the teams I’m in is the following: Where should I put Try – Catch blocks? The second most popular is equally challenging: What is the best method to re-throw an exception? This post will try to answer both questions. Before I start with this topic, I must warn you that the following is not the official “best practices” but rather my own personal opinion on the subject, based on my past experience. I think that Try – Catch blocks are a great asset of ...
Imagine some newbie or junior web developer walks up to you and says, “What tools would you suggest I use to become a better web developer?” Assuming they’re already using either Visual Studio or Web Developer Express, what utilities or resources do you find indispensible for working with ASP.NET or just web development in general? Maybe you have a favorite online resource site that you recommend, Stack Overflow for example, or maybe you have a favorite utility like Chris Pederick’s Web Developer ...
Last month, I had the “opportunity” (as we’ve been trained to say) to do some maintenance on a “Classic ASP” site. I’d forgotten how painful that can be, but it was made a bit easier by dusting off an old tool from the dark ages. It’s an “include” file for debugging based on a Visual Basic Programmer’s Journal article by Jonathan Goodyear from way back in February, 2001: http://support.microsoft.co... It automatically dumps out cookie, form, query string, session and application variable ...
Brian Keller, Technical Evangelist for Visual Studio Team System just blogged about the “very soon” release of Visual Studio 2010 Beta 2 which will have a “Go Live” license. That means you will receive product support from MS if you deploy and use it. Brian also includes links to some resources to help prepare for VSTS 2010 beta 2 Overview presentation (.PPTX) Detailed checklist (.DOCX) Our ALM team at Imaginet has been working with the Beta 1 bits and have been keeping in touch with MS on what to ...
Did you ever wonder why your system at random times hangs? Sometimes it comes back after a few seconds (could simply be paging) but at least once a day I wish I would be able to know why the system is responding so slowly. Before going into kernel land I must confess that I have never written a device driver so my knowledge to kernel mode debugging is quite limited but on the other hand if you did not do this either you will have a much easier time to follow me. Some hangs seem to be Heisenbugs which ...
Entering function CurrentUserAlias Leaving function CurrentUserAlias Creating new Enterprise Portal Site with following the parameters:\n URL: http://Portal/sites/EP\n Title: EP Site\n LCID: 1033\n OwnerLogin: WE\AxAdmin Administration Web Service URL: http://machine:90/_layouts/... Information: Debugging mode is off. An error occured while Setup was creating a new site. Exception of type 'Microsoft.SharePoint.SoapS... was thrown. The Web site http://portal/sites/CEC ...
In this post we'll learn how to create a windowed directdraw application for windows mobile. A windowed application is not much different from a regular full-screen application but you have to be a little careful because your application has to co-exist with GDI, peacefully. Note that I have used bits of code from Joel's code project article. Here is the code I call from WinMain(): //Create the DirectDraw object the primary and auxillary surfaces if (InitDirectDraw(g_hWnd)) { if (!CreateDirectDrawSurfaces(... ...