Tag | Debugging Posts

This issue has been known since late last year, but there doesn't seem to be too much noise about it in the blogosphere. No doubt as we continue to create and consume more and more WCF services, troubleshooting configuration issues has become a common occurrence (can I get an amen?). Keep this in mind the next time you add a new service reference to your .Net projects. Here's the scoop: when using a WCF proxy client object, simply having the typical Dispose() method fire off does not ensure the object ...
"A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) " This is what has been causing issues with the site this weekend. Thankfully the hospital has good WiFi and my cell's bluetooth connection to the HSDPA network from AT&T makes being able to debug the servers ok. However, we will be in the hospital the rest of the day and going home tomorrow so ...
Microsoft has been nice enough to supply us with many typedefs that we can use when writing code that should simplify development, especially when our code may be used to target different Microsoft OSs. On the other hand, these typedefs can also cause problems for us when using them to write device drivers. The typedefs that can cause problems are the ones that are pointers, like PBYTE, PDWORD… The reason that they can cause problems is that modifiers like volatile don’t modify in the way that we ...
I have started using Visual Studio Team System (VSTS) 2008, recently. Previously I worked with Visual Studio 2005. As a matter of fact I had to use lots of external tools to perform and speedup my development process. However, while working with VSTS 2008, it's very exciting for me that, I found replacements for most of the external tools there. Here are 10 tools which I left after using VSTS 2008: 1. Database Schema Compare External tool: Redgate SQL Compare VSTS 2008 tool: Menu -> Data -> ...
Microsoft last week rolled out the first Release Candidate of SQL Server 2008. The RC0 bits are available for public download here. I have been playing with SQL 2008 RC0 for a few days already, and I would like to share my experience in this quick blog post. First of all, I have to warn you that my RC0 installation experience was not pleasant at all. If you are an early adopter of new releases like me, you will very likely run into the same troubles I had. Previous CTP releases of SQL Server 2008 ...
You know that Fibonacci is not a fine wine or type of bread. Your Christmas list is a color-coded spreadsheet with sort capabilities on person, store, and price. The last party you attended was a slide deck check. Your MP3 player contains more .NET podcasts than music. The average shelf life of the books you purchase is 3 months. You have more email addresses than you have digits in your phone number. That's ok, because you have linked them all together with single sign-on from your smart phone. ...
I just surfed on this on the sharepoint forum so i decided to share It can save a lot of time though Getting Started Topics SharePoint Developer Introduction for .NET Developers http://www.microsoft.com/cl... Microsoft SharePoint Team Blog http://blogs.msdn.com/share... Troubleshooting Topics Problem Area: Debugging and Troubleshooting Problem When developing against the SharePoint object model in an application outside of IIS (service, console, Winforms etc..) on a machine ...
SlickEdit is one of the old school editors that has survived the wonder world of the new IDE. Version 13 has just been released and it continues to blur the boundaries between a simple text editor and a fullblown IDE. While there are no visual form designers and other such wizbang graphics, what you get is an editor that you can use for many development tasks, including building, running, and debugging complete applications. Ten versions down the road, and we now have almost too many features to ...
SlickEdit is one of the old school editors that has survived the wonder world of the new IDE. Version 10 has just been released and it continues to blur the boundaries between a simple text editor and a fullblown IDE. While there are no visual form designers and other such wizbang graphics, what you get is an editor that you can use for many development tasks, including building, running, and debugging complete applications. Ten versions down the road, and we now have almost too many features to ...
Code debugging is one of the most important parts of any development life cycle because it gives you the technique to find the problem and how to resolve it. When we talk about the visual debugging Visual Studio has tremendous potential in the term visual debugging features in the form of DataTips. DataTips tool provide a handy way to view information about your variables in visual studio during debugging only. In old versions of Visual Studio DataTips were limited in the amount of the information ...
A customer was having a problem receiving an SNMP trap with a 64 bit timestamp in it. In order to test, I wanted to send the exact same trap the customer was sending, using the basic UDPPort component of IP*Works! INSTEAD of the SendTrap or SendSecureTrap methods that are included in IPWorks SSNMP's SNMPAgent component. It turns out WireShark gives me an extremely easy way to do this in my code. I opened the Wireshark cap file sent to me by the customer, which only included the SNMP trap (important, ...
*Moved to: Change of planAfter having thought about it for a while I think that my idea not to create a separate TOM system independent of MOSS was a bit of a silly idea. The whole point of the system is to exist in any environment, so the first version will exist separate of SharePoint. The main advantage of this will be debugging and testing.... The first version will use simple web pages as stubs to the SharePoint bits, but the final version will need to run in MOSS.Read more...Follow my new blog ...
WCF: Technique of debugging inconsistency between Wsdl and Response messages. I was working with several web-services as a client and had several issues the same kind. WSDL of this services does not conform the Response messages (See below. I’ve bolded the text related to the issue.). I fixed this issue by changing proxy code. It is not a big issue but now we have to manually change proxy every time we have updated the proxy of this service. Here the checklist how debugging this case: [The proxy ...
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs. The service pack of Visual Studio 2008 has really interesting stuff. Highlights I'm interested in are performance improvements in HTML editor, collection of JavaScript intellisense hotfixes plus new ones enabling better JavaScript intellisense for libraries like jQuery, JavaScript Code Formatting, ASP.NET Routing engine (the one used in ASP.NET MVC, it is actually developed as separate component), ...
I've been developing and debugging a windows service for my current project. Working with a Windows service is very much like working with a console app, with the startup and shutdown logic separated into the servicebase's start and stop methods. Debugging a Windows Service Unlike a console app, however Visual studio can't run a windows service and automatically attach the debugger (no Run-with-Debugger (F5) support). Not to fear, its easily enough to attach the debugger to the windows service. In ...
Two of my latest books just hit the market - Professional C# 2008 and Professional Visual Basic 2008, both from Wrox. The back cover of the C# book is as follows: Updated for .NET 3.5 and Visual Studio® 2008, this book is the ultimate guide to C# 2008 and its environment. Beginning with a look into the architecture and methodology of .NET, the team of superlative authors explains why the C# language cannot be viewed in isolation, but rather, must be considered in parallel with the .NET Framework. ...
Corrina Barber on using her Red Control Skin, Jesse Liberty with a SL Debug Challenge, Shawn Wildermuth with a Pseudo Dialog, Jamie Cansdale with a SL NUnit Project, and Gill Cleeren on Data Services. From SilverlightCream.com: Sample Application Using the Red Skin Looks like Corrina Barber and I were both working with her Controls Skins... today she posted an article about using her Red Skin in Scott Guthrie's Digg Application. Plus she adds in small helper UI piece to let the developer know that ...
Peter Matuchniak on a PodCast, Tamir on making Silverlight 'Air', Page Brooks on Disabling JS debugging, John Stockton on Textblock Mouse Event Issues, chrishayuk deeper in Isolated Storate, and Dan Wahlin/Spike Xavier with the Silverlight Song! From SilverlightCream.com: Podcast about Live Streaming Media System Peter Matuchniak from Technicolor shows off a Live Streaming Media System he's been single-handedly working on... in an interview from Infragistics. Peter's system is awesome... lots of ...
This post is about USBTrace, a software based USB monitor / USB sniffer , which can be used to capture & analyze transactions happening in the USB bus. This tool is helpful for USB firmware/device driver developers while debugging and testing their device implementation. USB requests are captured and displayed in easly readable format to make analyzing easy. USB requests passing though different layers of the USB device stack are captured and displayed. Helps developers to highly reduce their ...
This is a couple new posts and finally catches me up from last week when I was being catered to in Seattle and not being very 'bloggy' :) Laurent Bugnion on User Controls with Events, Laurence Moroney on Casual Game Building, Jesse Liberty on Event Handling, Eugene Osovetsky on debugging Web Services, and the SilverlightSDK on DeepZoom. From SilverlightCream.com: Silverlight: User Controls with events Laurent Bugnion very nicely tackles User Controls with events, good explanation and examples, all ...
Ola Karlsson on SL/HTML, Michael Washington with a SL2 Toolbar, Pete Brown with a Chat Client, LeeOnTech on StoryBoards in DataTemplate, Robby Ingebretsen with SL2 Kaxaml, Cheryl (SilvelrightSDK) on the Popup Control, and Frank LaVigne on Cross Domain Proxy's and his Policy File Checker Utility. From SilverlightCream.com: Silverlight on top of HTML Ola Karlsson sent me this one while I was at the Summit, and am finally getting to it. This is a nice step-by-step explanation of using SL over HTML. ...
Michael Sync posted a list of SL2B1 problems, Rob Houweling produced a Motion Blur demo, LeeOnTech with a SL2 MasterPage proposal, egoZd on uploading with SL2 and asmx Web Services, Laurent Bugnion's bug tracking of the ScrollViewer, Scott Guthrie on Unit Testing, and 4 very cool articles by Karsten Januszewski. Lest I forget, everyone should go watch the Silverlight Rehab video... this is hilarious! From SilverlightCream.com: Silverlight 2 (beta1) Known Issues and workarounds (if any) Michael Sync ...
Continuing the series on testing in BizTalk projects this article is about testing orchestrations. From projects I have seen or through speaking to other developers I have come across the following techniques for testing orchestrations: 1. Testing by debugging them in HAT Im amazed how many times this comes up when I have interviewed people. Ok first thing Debugging != Testing. Secondly the problem here is the "tests" are manual and there for not easily repeatable and prone to error. 2. Manual Testing ...
I was looking at Refletor addins the other day and ran across one that would be an amazing time saver. Its an addin that generates the Reflection.Emit code! Anyone who has ever spent any time with the Reflection.Emit namespace should immediately realize how wonderful this tool has the potential to be (as long as the generated code is of good quality of course). Also, the way integrates with Reflector is pretty slick. It adds a "Reflection.Emit" choice in the list of languages you want Reflection ...
I've been developing with Test Driven Development for awhile now (more in the form of Behavioural Driven Development) both in and outside of work. I've recently started a new job where TDD isn't used and I've been showing the other developers how I use it. If you have ever read a TDD book, you'll know every argument against TDD they have given to me: Adds too much time Not beneficial for the client Makes things complicated It's to be used by people, not machines Bad experience Adds too much time ...
I've ran into a bit of an issue today that involves MSMQ. I had an Asp.Net webservice who also ran a job (basically a new Thread that loops forever) that was doing a Receive on a MessageQueue object and writing the Message it got (or rather the body of the message) to a database. The business of the job was such that calling Receive, which is synchronous (blocking), was ok. It all worked fine, except that whenever I changed something in the web.config file and the AppDomain would get recycled, the ...
Often times you have some errors in your WCF service that are not detected until the runtime. It can be very frustrating when you receive "server was unable to process request due to an internal error" but you don't know what exactly is going on. If you get the error screen above, go ahead and turned on the IncludeExceptionDetailInFaults in the service configuration file. It's set to "false" by default when Visual Studio generates the configuration file. <behaviors> <serviceBehaviors> ...
Update: If you want the .iso I used for the VPC, check it out here on my SkyDrive. During my research and posts about Design by Contract and Spec# and my interactions with folks from Microsoft Research, I came across Singularity OS, an operating system written in an offshoot language based upon C#. In that time, I realized that the Singularity team extended Spec# and the Design by Contract and static verification pieces of it into a new language called Sing#. Fast forward to last Tuesday. Almost ...
I had an opportunity to attend my first Tampa SQL BI Meeting last night and I wanted to share some of my thoughts from the SSIS demo that was given. The first thing that really caught my attention is complexity of expressions that are used in a conditional split. I started picturing the nightmare scenario of debugging it and figured there has to be a better way. Enter the Script Component. The script component allows you to define multiple outputs and by monkeying (yeah thats a technical term) with ...
I was looking at the site Visual Studio Gallery at what was available as plug-ins for the new VS2008. Here are some that I know are cool and others that looked rather promising: PowerCommands for VS2008 This seems to be the most viewed one and it does add a lot of quick and easy commands to your right-click menus. Commands include quite a few include Open Containing Folder and Open Command Prompt. Nice one. Source Code Outliner Look at your code in a treeview to easily access methods, properties, ...
I've been trying work with load testing in VSTS for Testers against what I thought would be a nice simple application, the .NET Pet Shop 4.0 application. In trying to run the application I hit a Server Error in '/Web' Application - Configuration Error. It pointed to the ShoppingCartProvider section of the web.config. Stare as I would, nothing looked wrong. Debugging the code seemed even stranger as no true line of code produced the error. I started peeling back code, even adding my own profile provider ...
LINQPad lets you interactively query SQL databases in the brand LINQ language. For those who are just started playing with LINQ, this tool is a great way to learn LINQ, and for those who are already familiar with LINQ and use it everyday, it can be used as a nice utility to test/debug your LINQ queries before you put them into your project code. LINQPad can be downloaded from http://www.linqpad.net/ No installation is required after the download. It's also pretty straightforward to use LINQPad. After ...
I mentioned a while back that we setup a server farm with a Query, Index, Application, and SQL Box. Well we deployed all the old web parts and we are having all kinds of crazy issues on this farm. I'm not sure exactly what nuttiness is occurring, but half the time the solution packages are failing to deploy or the feature isn't installing in the batch files. Unfortunately, I installed VS 2005 and VSEWSS 1.1 and Visual Source Safe. I tried implementing the solutions through Visual Studio and it will ...
Update: Fixed code changed from CTP and More in the series: IoC Container, Unity and Breaking Changes Galore I just wanted to revisit the whole Unity Application Block just once more to look at a few more things including handling parameters, instances and so on. If you hadn't seen, there was another source drop of Unity as of 2/26, so if you haven't picked it up, feel free to do so here. So, we're going to continue our look at DI and IoC containers as they pertain to different needs. I'm not going ...
I could have gone on with the title for a while longer. Frequently when I'm working on an application, it occurs to me that the user doesn't care about the technical reasons behind an exceptional condition. Typically, the user simply cares that something went wrong; or, sometimes, the user doesn't care, especially if you can make the program recover gracefully. Since the only .NET-sanctioned way to handle errors is through structured exception handling, and since I love SEH, I don't want to be too ...
I must admit that I know only the most basic things about javascript (how to create a slideshow, how to redirect items, and how to write basic functions). I am debugging someone else's code and I still have no idea what I am doing. Basically on every one of these sites we have one default master page with a script inside to check every list and document library to see if a yes/no "Flag" field is checked and also checks the "Flag Expiration" to see if it is expired. If the field is checked and it ...
Debugging Attributes Have you ever been debugging code and examined the properties of an object? You get both the public properties and the private member variables! Why is that? Can this be avoided? This seems to violate the principles of encapsulation. It also complicates the process of examining the contents of an object at run time. You don’t really want to have to look at all of the private member variables which by definition should be irrelevant to the task of debugging. Fortunately the violations ...
ConditionalAttribute Certain methods especially in the System.Diagnostics namespace are decorated with ConditionalAttributes similar to this: [Conditional("DEBUG")] What is this all about? The conditional attribute provides a nice way to have code be conditionally ignored. Methods decorated with this attribute will not have their calls compiled to IL unless the condition is true. In the attribute shown above, any calls to the method will not be made unless the symbol DEBUG is defined. This creates ...
I had an error that was been driving me up the wall, CS0234: The type or namespace name 'Pkcs' does not exist in the namespace 'System.Security.Cryptograp... This always happened while developing a web application in Visual Studio 2005 and wanting to use code that deals with certificates. During development Intellisense would find the System.Security.Cryptograph... namespace just fine. But it couldn't be found at runtime. I had registered the System.Security assembly, and the project always built ...
We all have had classes on how to program. Language courses, algorithm courses, data base, web, etc. Along the way we pick up things. Note to younger devs: here is one that has been invaluable to me, and it comes with a red-faced story. On one project I sat in the same area as the network engineers. I lost connectivity to a DB server. In the past, as devs, we would announce this kind of thing out loud to let the others know "if you are trying to test now, forget it." So, I spoke up, "The network ...
Early cream from Julie Lerman Shows us how to convert InkPresenter images to png, Shawn Wildermuth with an iGoogle Gadget in SL, and Jesse Liberty comes to our aid with a partial explanation of the 4001 error you might be seeing. From SilverlightCream.com: Converting Silverlight InkPresenter images to a PNG file Julie Lerman, who I just blogged about last week I think... with a post from last summer, jumped in with another Ink example, this one converting to PNG ... all with code... very cool! iGoogle ...
When working with Visual Studio 2005 on Windows Vista and create web applications running out of IIS 7, you need to perform a few steps before getting it work. I had blogged about it, in my earlier post However, after performing all the above, you might still get "An authentication error occurred while communicating with the web server. Please see Help for assistance" when trying to create a website / debugging a website created using Visual Studio 2005 running on a Windows Vista with IIS 7. There ...
One of the first things we went over in my first computer science class was the idea of preconditions and postconditions for functions: what the caller should expect will be needed before and how the results will be after the call. We also discussed parameter validation, which I've found more and more to be important. Parameter validation is not only important for security purposes, but helpful in debugging scenarios when you wouldn't otherwise be sure that an exception is being generated because ...
Ok so my editor (VSE) is just a little off the latest, but hey, so am I! ... I just checked and I have version 7, they're now selling version 2007 ... so hard telling how far off I am. I know 2 years ago they no longer supported 7. Oh well... it's like an old pair of boots... it just feels right, and I see no reason to upgrade :) Back to the reboot thing. Running VS2005 finally at the office, and merging two huge projects. Now and again I try to rebuild and it poots telling me that it can't replace ...
I stumbled upon an excellent utility for WCF Testing that comes with Visual Studio 2008 - WCFTestClient. The tool is an simple way to test WCF clients HTTP and TCP bindings. Some things are not supported, however, for basic WCF Testing, this definitely beats the old ASMX test page. Note: Also check out the WCFSvcHost utility from Visual Studio to host an arbitrary WCF Service. Technorati Tags: Debugging, Development, Microsoft Office, Tips, Tools, WCF, Visual Studio Cross Posted from http://blog.tfanshteyn.com/... ...
Recently I discovered a tool that I had needed for a long time. Fiddler, a freeware product created and supported by Microsoftie Eric Lawson, can be used to debug HTTP traffic from any web browser (or client application). Here's how you can use it: 1. View/Analyze HTTP traffic. One of our web apps creates a new window and performs a javascript-driven auto-logon to a vendor application. When we reported an issue to the vendor, they started asking questions about whether we were using the correct version ...
Late Cream for today: Ink Drawing by Julia Lerman, Seema Ramchandani exposes EnableRedrawRegions, and Shawn Wildermuth exposes a Clipping Path Transform problem. From SilverlightCream.com: Silverlight and Ink: Drawing Another old post, this one from Julia Lerman. I found this while searching for an answer for someone on the forum about drawing complex objects. At first I thought this was simply (yeah right) an Ink drawing app, but there are multiple pages, and it becomes much more and very cool.. ...
I learned something new, relating to when/how to dispose CollectionView, but it comes after a series of steps of proving it. Along the way I learned some new stuff to, so I'll stagger them so it becomes easier to read & digest. This post will become the first one in this series (of 3 I think). I'm always somewhat wary about the automatic garbage collection nature of .NET, so every now and then I need to prove to myself that something is actually garbage collected. The technique I use is to create ...
Video Interview with Flash Guru Jesse Warden, Tim Heuer discusses issues surrounding moving files around in build folders, Steven Smith takes aim at Hyperlinks in SL 1.0, Shawn Wildermuth gives a workaround to some problems with the SL Template, Mike Taulty has a good ADO.NET/SL WebCase, and Michael Palermo has 2 WebCasts dealing with debugging SL and ErrorHandling in SL. From SilverlightCream.com: A Flash Guru Talks about Silverlight Jesse Warden, a hard-core flash designer met with the MS folks ...
Scott Guthrie[MSFT] announced the availability of .NET fx 3.5 library source code as promised. (Setup and how to use) Quote from the announcement: Specifically, you can now browse and debug the source code for the following .NET Framework libraries: .NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, ...