Tag | Debugging Posts

I went in to add a page to a site that's been alive for about 11 months. I wanted to add a page in a subfolder to test out some user/role setup on the subfolder, and instead have been debugging a NullReferenceException.When my MasterPage.master.cs Page_Load ran, I found the root of the problem was all my controls appeared to be null, which was confusing since 'this' was live.Bottom-line:When I added my new page, I took the default given to me by Visual Studio after selecting my MasterPage.master. ...
Today I was debugging some code and was not able to break into some code of a component; the debugger just failed to recognize it. Turns out the method was decorated with the [DebuggerNonUserCodeAttribu... Its a neat way to restrict code from being debugged/stepped into. The attribute can be applied to structs, classes, methods, properties and as one may guess not for interfaces. Do note that these attributes are useful only to debugging tools so if you end up writing an implementation for ICorDebug ...
Calling Win32 DLLs in C# with P/Invoke http://msdn.microsoft.com/m... Now let's look at the direction in which string information is being passed between your code and the unmanaged function. There are two ways that you can know which direction the information is being passed in when working with strings. The first and most reliable method is to understand the purpose of the parameter in the first place. For example, if you are calling a parameter with a name like CreateMutex ...
[Crosspost from ManagedWorld] Rob Atkinson recently blogged some screenshots from a new tool from NeoSmart called EasyBCD. What is EasyBCD? Directly from the horse's mouth: EasyBCD is NeoSmart Technologies' multiple award-winning answer to tweaking the new Windows Vista bootloader. With EasyBCD, almost anything is possible. Setting up and configuring Windows boot entries is simple, and there is no easier way to quickly boot right into Linux, Mac OS X, or BSD straight from the Windows Vista bootloader ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. This week, we will be looking at the robust replacement for boot.ini in Windows Vista and Longhorn Server: Boot Configuration Data. What is Boot Configuration Data? Boot configuration data (BCD) provides a store that is used to describe boot applications and boot application settings. The objects and elements in the store effectively replace Boot.ini. The data in the store can be managed by a command-line utility, bcdedit.exe, ...
I am using typed dataset(generated by VS 2005) that I merged to empty dataset (actually to class, derived from dataset). When I am accessed a particular row and tried to read value of the row field, I've got System.ArgumentException: Column <ColumnName> does not belong to table <TableName>. at System.Data.DataRow.CheckCo... column) After debugging and digging into Designer generated code, I found that the cause is that the generated typed-safe columns have property Table as ...

If your using asp.net and your code throws an error and all you see in is the standard ie error page remeber to change your IE settings:-

Goto tools-->Internet Options-->Advanced Tab and then unselect Show friendly http error messages.

This can be very handy if your debugging web services and they are returning errors.

Cheers
Gregor

When debugging WebParts not knowing which w3wp process to attatch to has always bugged me. Thankfully ASPalliance has this article to show you how to identify the w3wp process for an app pool. The gist of it is. Shipping with Windows 2003 is a vbscript named iisapp.vbs. running "cscript iisapp.vbs" from the command prompt displays list of w3wp processes running, its process id, and the app pool it belogns to. tags: SharePoint, IIS6, Windows 2003, WebParts, Debugging, Application Pool, Attatching ...
classes MUST follow. It defines method signatures but cannot have any implementations; the latter must be provided by the classes that implement the interface. C# differs from C++ in this regard because C++ lacks native language support for interfaces. As a C++ programmers you have to create an interface by defining an abstract class with pure virtual methods. what is an abstract class................. An Abstract class lets you define some behaviors and force your subclasses to provide others. For ...
The goal of the MVC design pattern is to separate the application object (model) from the way it is represented to the user (view) from the way in which the user controls it (controller). The Model object knows about all the data that need to be displayed. It also knows about all the operations that can be applied to transform that object. However, it knows nothing whatever about the GUI, the manner in which the data are to be displayed, nor the GUI actions that are used to manipulate the data. The ...
I am using Metabuilders ExpandingButtons and started to get “Please check the page configuration“ error. Some investigation showed that my DataGrid control has two IDs, one as expected from ServerID and another with suffix “__Ctl0”. <table id="dnn_ctr374_ResultsConta... cellspacing="2" cellpadding="2" border="0" id="dnn_ctr374_ResultsConta... JavaScript from ExpandingButtons ...
Thanks to Citrix and Joe Healy for making our first meeting at Citrix a BIG success. The array of Microsoft Technologies comming down the pike is amazing! Thanks for the heads up Joe. There were a few things which I had not seen before like http://www.fiddlertool.com/... for monitoring and inspecting web traffic. Especially useful for debugging web pages!!Special thanks to Mirhir Patel, our sponsor at Citrix. Mihir worked very hard to get everything arranged, room, food and drink (courtesy of ...
Here's a great post on how to add a desktop shortcut to ClickOnce Deployed Application. (Scott Schecter's post)http://blog.scottschec... Here's the version of this solution in VB. (Julia Lerman's post)http://blog.ziffdavis.... If you don't want to follow the link, here's the code: /// <summary> /// This will create a Application Reference file on the users desktop /// if they do not already ...
After finsihing the implementation, I was about to deploy the solution. I built the solution in Release mode and was planning to deploy the solution from the output. I noticed that even the release o/p contains PDB files. I searched the net and found different ciews on this issue. This blog mentions that the .pdb files are of no overhead and has nothing to do with the code optimization. http://blogs.msdn.com/jayba... But I found opinions on the web telling that when ...
Greg Young, a "part-time" member of this wonderful community, was nice enough to record a show talking about Debugging in .NET 2.0 and X10 gadgets. Greg is definitely one of the brightest guys I have met in a long time and we had lots of good conversations throughout code camp. I will publish more podcasts next week from the event and continue until we leave for HDC! Download: http://download.podcaststud... http://feeds.geekswithblogs... ...
Design Time Debugging during server control development in asp.net2.0 in Visual Studio 2005 source: http://brennan.offwhite.net... ...
ScottGus blog has annouced: "Atlas" 1.0 Naming and Roadmap Over the last year we’ve been working hard on “Atlas”. It has evolved, changed, and grown because of the amazing amount of feedback and early adoption that we’ve seen. We’ve had an unbelievable amount of interest and excitement around the product, with more than 250,000 downloads this year alone. Shipping “Atlas” 1.0 Many people have asked us to deliver a fully-supported 1.0 release of “Atlas” before the next release of Visual Studio. “Fully ...
For anyone that has had to boot Windows into debug mode to do some digging around (like remote Kernel Debugging), things have changed. In the past, you could open up boot.ini in the root of the system volume, and add a "/debug" flag to the Windows OS record of choice. One of the things you might notice with Vista is that boot.ini is now gone, solid gone. So, with boot.ini gone, how do you boot into debug mode? It is done with a new tool called "bcdedit". In the root of the system volume, you'll notice ...
I found this courtesy of bink.nu - but you might want to pay particular note to the Caveat: Note that the Kanalyze is not designed for general users of Windows. It is assumed that the users are already familiar with the kernel debuggers, have knowledge of the inside of Windows, and have basic skills of debugging kernel mode programs ;-)) Kernel Memory Space Analyzer Version 8.1 Brief Description Microsoft Support Professionals Toolkit for WindowsThe Kernel Memory Space Analyzer is a tool to help ...
It looks like Mark Russinovich has started settling in to Microsoft as he has now started blogging at:Mark Russinovich's technical blog covering topics such as Windows troubleshooting, technologies and security.The RSS feed is http://blogs.technet.com/ma... I must confess that the level of detail sometimes leaves me floundering so I jump to the end to find out the answer, but what is really fantastic is that he does take the time to patiently explain how he managed to solve the ...
If you work in or around web applications or web servers and you do not know what fiddler is, than I feel really sorry for you. This tool is one of the first utilities I launch when I see something that makes me suspect issues with cookies, server redirects, or any other odd behaviors where I hear "It worked fine on my machine". The developers I work with are more then sick of hearing, "did you launch fiddler?" They know to have it up and running before asking me, "do you have a sec? " With fiddler ...
We all have old code snippets in our code base. Whether it’s a method that’s no longer used, or a few lines that we’ve replaced - our code has sections commented out. When should we remove them? How should we comment them out? If you’re not careful, commented out code can cause future problems. Read on. Code Gaffe #1: Sneaky Commented out code Commented out code should be, well, really commented out. Really comment it out Don't put a /* at the top and */ at the bottom of code you want to remove: ...
Yes, it's time for some ASP 3/Classic content. Okay, I confess, this post is mostly just a reminder for myself in the future...but I assume at some point someone will come across this via google.... I was wondering what the easiest way to traverse a recordset was (not most performant, necessarily...just simplest in terms of me saving time) I commonly see people actually writing out the table and then explicitly defining which column goes where. You know, something like: objRs(0) objRs(1) Which, really, ...
Just moved my blog out of the blogger spot and couple of other places.. so let me start with something simple. Introduction AJAX stands for Asynchronous Javascript and XML, Although the Term AJAX was introduced in 2005, The power to call server side code without having to post the entire page has been around since 1999. We now have handfull of framework and ideas floating around, check out the ajaxpatterns.org for more information. Microsoft recently started focusing on AJAX with its ATLAS (still ...
source: http://weblogs.asp.net/scot... ASP.NET Topics Sending Email in ASP.NET 2.0: This is a great article from Scott Mitchell that demonstrates how to use the new System.Net.Mail APIs in .NET 2.0 to send email from an ASP.NET application. Sending Email in ASP.NET 2.0: HTML-Formatted Emails, Attachments, and Gracefully Handling SMTP Exceptions: This is a great follow-up article on email from Scott Mitchell that discusses some more advanced ...
Last year I had written that I was having issues with Visual Studio’s XSLT debugger. That turned out to be an issue with not having installed the “Professional” edition when I downloaded beta 2. I have since corrected that problem and have been thoroughly enjoying the new features. I thought it was time to set the record straight. Although I’m not doing as much hard-core XSLT development as I had in the past, I’ve been able to make enough use of VS to point out some ...
I am using Web Application Project(WAP) for development of DotNetNuke modules. The general approach is discussed in DNN forum thread here. My VS solution consists of main WAP Project and one or more User Control Libraries similar to described in Tutorial 6: Creating and Using User Control Libraries. The main WAP Project basically includes one DNNDebug.aspx file (as well as web.config and global.asax), that allows me to load and test my user controls. The User Control Libraries(DNN modules) are physically ...
To start remote debugging an ASP.NET 2.0 app (assuming the app is up and running on the remote server): On the remote server start the Visual Studio 2005 Remote Debugger. For this you need to have the VS2005 Tools installed (not necessarily the full VS2005). On your local machine, within VS2005 select Debug - Attach to Process... In the Qualifier field (in the Attach to Process screen) enter the name of the remote server and press ENTER. Select the IIS worker process (w3wp.exe) that is running your ...
SQL Server 2000 Performance Tuning Tools original article: http://www.sqlteam.com/item... This article comes to us from Brad McGehee at www.sql-server-performance.... SQL Server 2000 includes several tools you may find useful when performance tuning your SQL Server applications. Query Analyzer Profiler Index Wizard Performance Monitor SQL Server 2000 Query Analyzer for developing and debugging Transact-SQL code for performance tuning Transact-SQL code. Show Execution Plan Whenever you ...
[Edited Aug 7/06]Remember this post by Chris Williams asking the question about why geeks are sometimes stubborn, or full of themselves, etc.? Well check out the email the leader of the Winnipeg .NET User Group received from a Mr. Right (I've changed his name obviously): [Email Begins]Your next meeting as given on your web-site is six weeks ago. Also, when I hit your web-page, I get an error: Line 599: Object Expected.This isn't on your default main page. It is at the tail end of a script that ends ...
Resume – Senior, Hands-On, .NET, C#, VB, ASP, XML, SQL, SharePoint, Crystal, Reporting Services Developer, Team Leader, Hard-Core Coder Rodney Vinyard, 29 Windermere Road, Montclair, NJ 07043 rodney.vinyard@gmail.com · Seeking North NJ/Manhattan .NET/SQL developer job. · Hands-on .NET, C#, VB, SQL, ASP, XML, XSLT, Reporting Services, Crystal. · 30 years of productive, software engineering experience. · Inventive, focused, hands-on software designer, engineer & coder. · Effective leader, writer ...
What is Atlas? The Atlas features of ASP.NET are not just another AJAX script library for writing client-centric Web applications. Atlas builds on the .NET Framework 2.0 and adds support for better utilizing the capabilities of client-side JavaScript and the XMLHttpRequest object. It includes server-based features that make it easy to enrich existing ASP.NET applications, as well as a client script library that is used by the Atlas controls and services. The architecture diagram in Figure 1 shows ...
I recently took a look at using Windows Workflow Foundation to create a simple Human Workflow to manage a procurement process on SharePoint Portal Server. So I set about integrating SharePoint Portal Server (SPS), InfoPath and Windows Workflow Foundation to achieve this goal was it easy … well yes. Here are the blog entries I can remember which really helped me out. Which Style of Workflow When Windows Workflow + SharePoint 2003 + BizTalk Scenario Built Out (Unfortunately SharePoint Portal Server ...
Peter has a post giving an overview of some tools that are essential to him as a developer. http://jonesie.net.nz/Essen... I would say that I use most of them but not all and I would like to add a few to the list because i mainly do webdevelopment and that's a different story then winforms.Obviously I made the choice to go for The asp.net 2.0 atlas framework so I won't sum up any other ajax frameworks. That is reserved for a separate post. AJAX/Web development: Internet Explorer : Fiddler ...
Today, I found an interesting change in Visual Studio 2005 JScript debugging. In Visual Studio 2003, to dubug JScript we need to clear the Disable Script Debugging checkbox from Internet Explorer, Tools->Advance Options. But in Visual Studio 2005, we also have to add the key word "debugger" in JScript code. For more details, http://support.microsoft.com/default.aspx?scid=kb;en-us;816173&%20f=11
Cycle Time Counter Prior to Vista, the kernel accounted for CPU time based on the interval clock timer which had a resolution of between 10-15ms. This timing interval was not always fair or accurate since threads where charged for interrupts that occurred while they were running and a thread might not get a turn to execute or could get up to three turns to execute. Vista changes this timing mechanism by reading the Time Stamp Counter (TSC) at each context switch. This allows the CPU to charge the ...
Today one of my friends faced this problem and asked me what’s wrong it may be. This is a frequently asking question. And I know not only him but you also have faced this problem at least once in your asp.net life.So here is the article from Microsoft which provides a list of articles that describes some of the most common problems you may encounter when you are debugging asp.net applications in visual studio 2003. http://support.microsoft.co... ...
In previous posts, I have talked about the "What All Great .NET Developers Should Know" as well as my own list of questions. This time I'm looking for questions that Great BizTalk Developers Should Know. Naveen Karamchetti had created a list off CodeProject entitled "BizTalk 2004/2006 Interview questions that every developer must know...". Unfortunately for us he already had the answers posted, but if you stay here for just a minute, you can ponder the questions on your own. I'm adding some to his ...
ASP.NET 2.0 web configuration supports the <deployment> tag which has the retail attribute. The retail attribute when set to true will disable tracing, debugging and detailed errors. This is a very cool tool for the site admins to turn off the settings with the use of a single switch. You can use the deployment option like below: <deployment retail = "true" /> powered by IMHO 1.3 ...
At the June Capital Area Microsoft Integration and Connected Systems User Group (MICSUG) meeting on the 22nd, I will be presenting on how to use Extensions to perform custom tasks such as migrating users from one SharePoint Web Site to another, transforming identity information, etc. I found a useful link on MSDN which contains some of the code samples that come with the MIIS installation. Under the Using Microsoft Identity Integration Server 2003 page, listed are the following of note at least to ...
Yes, it truly is Le Editeurè du mappè! Excuse my horribly broken French, but I am in fact referring to the map editor for my contest entry, Admiral Overalls. So far the map editor is basically the modified game's source, with a bigger resolution, scrollable via the arrow keys, and able to edit the map with the mouse buttons (left for place tile/sprite, right for delete tile/sprite). It's so easy it should be illegal. It very likely is. As you can see the interface is quite simple. Since time is the ...
We have a lot of old COM code we interop with, and its ugly debugging the contents of a recordset from within .NET.... but now theres a much nicer way to do it in 2005 :) All you need to do is load your ADO Recordset into a DataSet, and then use the new visualizer stuff in visual studion 2005 to have a proper look at the contents of that recordset... Heres how to get the recordset into a DataSet: DataSet ds = new DataSet(); System.Data.OleDb.OleDbData... adapter = new System.Data.OleDb.OleDbData... ...
Windows services pose unique debugging and deployment challenges that can infuriate you. Fortunately, David Talbot can help by shining the light on a few simple under-documented tricks. This article was originally written for .NET 1.1, but it's still a good solid reference. Read Debugging and Deploying Windows Services ...
The following error may occur when trying to run/debug an ASP.NET 2.0 web app, when the web server is not configured properly: "Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information." This is usually caused because of one or both of the following problems: The directory the web app resides in has not been registered as a web application. The correct ...
My application still using VbExpress generated code even if the authors do not do any development/support. When moving to DNN with URL rewriting I had to modify VBeXpressWebForms.VBeXpress... . I've commented out in GenerateJScript 'mnf 26/5/2006 strOut = strOut & "<script Language=""JavaScript"" src=""JScript/Calendar.js""... & vbCrLf Added <Assembly: WebResource("Calendar.js", "application/x-javascript")... , added the “Calendar.js“ file as ...
I still am not ready to post any code. (crossing my fingers for this weekend). But here are some screenshots of the progress I have been making. Currently, I have a few of the menu options hooked up. Basically, when the game starts, you can select Storymode or Freeplay. Going into storymode immediately starts you at the first level, but selecting Freemode gives you the ability to select a particular "level" or gametype you want to play. Currently two of the "levels" are just about playable. Follow ...
Just so I dont forget this. Build your tasks as required then drop (or copy on a post build) the dll and pdb that have your custom tasks into c:\Program Files\nant\bin, you can then set the project properties for debugging in Visual studio to start nant with the appropriate command line args and working directory.
A couple minor changes (or not so minor when it comes to control schemes). Tonight I took some time to play Geometry Wars Evolved for a while (the game Spaceballs is based on) and I came to a decision. One of the difficulties is translating the control scheme to the PC as the console gamepad has the two joysticks that are both used to control the ship in Geometry Wars. As of earlier today, I was using a combination of the mouse and the keyboard (nearly Quake-style controls). You "dragged" the ship ...
I finally got a chance to take the certification last friday, and I PASSED, It wasnt easy, needs to have lot of development experience on BizTalk, It’s been in my mind since last year but due to the hectic schedule couldn’t make it, FYI: This is now considered as a ‘Microsoft Certified Technology Specialist’ certification, note: this is not mentioned in the list of exams on the MCTS page (http://www.microsoft.com/l... Credential: ‘Microsoft Certified Technology Specialist’ ...