AmosFiveSix.com

Experience, Knowledge, Creativity

  • Increase font size
  • Default font size
  • Decrease font size
Home Blog
Blog

.Net PDB Files and Debug Info

E-mail Print PDF
PDB Files: What Every Developer Must Know - John Robbins' Blog
http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/05/11/pdb-files-what-every-developer-must-know.aspx
A .NET PDB only contains two pieces of information, the source file names and their lines and the local variable names. All the other information is already in the .NET metadata so there is no need to duplicate the same information in a PDB file.
How to read PDB files
http://sorin.serbans.net/blog/index.php/2010/08/10/how-to-read-pdb-files/

Converting a managed PDB into a XML file.
http://blogs.msdn.com/b/jmstall/archive/2005/08/25/pdb2xml.aspx

DebugInfo.com - Matching debug information (PDB to EXE/DLL)
http://www.debuginfo.com/articles/debuginfomatch.html

ChkMatch - Check matching between the executable and the debug information file.
http://www.debuginfo.com/tools/chkmatch.html

Deploying .PDB files in IIS. Any benefit?
http://stackoverflow.com/questions/381537/deploying-pdb-files-in-iis-any-benefit

Should one go to Production with a DEBUG Build?
http://www.hanselman.com/blog/CommentView.aspx?guid=495312ae-08a1-4712-b654-e392bf34bfd2

Debug vs. Release - The Best of Both Worlds
http://www.hanselman.com/blog/DebugVsReleaseTheBestOfBothWorlds.aspx

Making an Image Easier to Debug  
http://msdn.microsoft.com/en-us/library/9dd8z24x%28v=vs.80%29.aspx

Inside site precompilation and no-compile pages (ASP.Net)
http://www.developerfusion.com/article/84379/inside-site-precompilation-and-nocompile-pages/
 

ASP.Net Debug Modes

E-mail Print PDF
Detecting ASP.NET Debug mode - Rick Strahl
http://www.west-wind.com/weblog/posts/2007/Jan/19/Detecting-ASPNET-Debug-mode

Don’t run production ASP.NET Applications with debug=”true” enabled  - ScottGu
http://weblogs.asp.net/scottgu/archive/2006/04/11/442448.aspx

ASP.NET Memory: If your application is in production… then why is debug=true
http://blogs.msdn.com/b/tess/archive/2006/04/13/575364.aspx

/debug (C# Compiler Options)
http://msdn.microsoft.com/en-us/library/8cw0bt21.aspx

Debugger.IsAttached Property
http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.isattached.aspx

HttpContext.IsDebuggingEnabled Property
http://msdn.microsoft.com/en-us/library/6xkyw262%28v=vs.80%29.aspx

If you use Reflector to view the source for HttpContext.IsDebuggingEnabled you'll see that it looks in your current web.config using code more-or-less like this:
System.Configuration.Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
return ((SystemWebSectionGroup)config.GetSectionGroup("system.web")).Compilation.Debug;
 

DOM Content Events

E-mail Print PDF
IE onreadystatechange Event
http://msdn.microsoft.com/en-us/library/ms536957%28VS.85%29.aspx

Dean Edwards: Order of Events
http://dean.edwards.name/weblog/2005/02/order-of-events/

onLoad and onDOMContentLoaded
http://javascript.info/tutorial/onload-ondomcontentloaded

What external resources are loaded when window.onload event is fired and what is the loading order of the resources?
http://stackoverflow.com/questions/473628/what-external-resources-are-loaded-when-window-onload-event-is-fired-and-what-is

DOMContentLoaded Inconsistencies (in Browsers and JavaScript Libraries)
http://www.zachleat.com/web/domcontentloaded-inconsistencies/
 

SOAP Error Behavior in IIS and ASP.Net

E-mail Print PDF

How to Use HTTP Detailed Errors in IIS 7.0
http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/

HTTP Errors <httpErrors>
http://www.iis.net/ConfigReference/system.webServer/httpErrors

httpErrors Element [IIS 7 Settings Schema]
http://msdn.microsoft.com/en-us/library/ms690497%28v=vs.90%29.aspx

How to stop IIS 7 from blocking/stomping-on the response body generated by an ISAPI Filter
http://forums.iis.net/t/1146653.aspx

What to expect from IIS7 custom error module
http://blogs.iis.net/ksingla/archive/2008/02/18/what-to-expect-from-iis7-custom-error-module.aspx

Classic Pipeline
 * Error Responses : Custom Error Pages
    * 500 has been removed --> Returns HTTP 500 with a single line of text with the soap envelope tacked onto the end.
    * 500 : Insert content from static file into the error response --> Returns HTTP 500 with the contents of the HTML file with the soap envelope tacked onto the end.
    * 500 : Execute a URL on this site --> Returns HTTP 200 with the content of the file you specify and nothing else
    * 500 : Response with a 302 redirect --> Returns HTTP 302 with the content being a short HTML file with the soap envelope tacked onto the end.
 * Error Responses : Detailed errors
    * 500 : Insert content from static file into the error response --> Returns HTTP 500 with just the soap envelope (the file does not have to exist)
    * 500 : Execute a URL on this site --> Returns HTTP 500 with just the soap envelope (the URL does not have to exist)
    * 500 : Response with a 302 redirect --> Returns HTTP 500 with just the soap envelope (the URL does not have to exist)

My solution in my web.config:

<system.webServer>
        <!-- This ensures that soap data is passed back to the client when a 500 error occurs. Otherwise IIS will mangle it if custom error pages are turned on. -->
        <httpErrors existingResponse="PassThrough" />
</system.webServer>

 

Programmatically Updating Web References in .Net

E-mail Print PDF

How do I automatically update a web reference at build time?
http://stackoverflow.com/questions/159599/how-do-i-automatically-update-a-web-reference-at-build-time

.NET Web Services II... on DotNetJohn
http://www.dotnetjohn.com/articles.aspx?articleid=85

CmdHelper -  Generating the WSDL from a web service assembly (without the need to start a web server for that)
http://www.stephan-brenner.com/?page_id=82

Automatic updating web reference .NET
http://blogs.microsoft.co.il/blogs/oshvartz/archive/2008/05/24/automatic-updating-web-reference-net.aspx

Building a Better WSDL.EXE
http://sites.google.com/site/craigandera/craigs-stuff/xml-web-services/building-a-better-wsdl-exe

Generate proxy code for a web service dynamically
http://blogs.msdn.com/b/dhrubach/archive/2008/10/20/8623711.aspx

In Visual Studio, the Update Web Reference command in a Web Site "project" creates:
* ServiceName.disco
* ServiceName.wsdl
* ServiceName.discomap
* It does not create a CS file at this point

In Visual Studio, the Update a Web Reference command in other project types creates:
* ServiceName.disco
* ServiceName.wsdl
* Reference.map (same file type as .discomap)
* Reference.cs

Web Services Discovery Tool (Disco.exe) - http://msdn.microsoft.com/en-us/library/cy2a3ybs%28v=vs.80%29.aspx
  You pass it a URL and it creates these files:
  * ServiceName.wsdl
  * ServiceName.disco
  * results.discomap
  * It can create an XSD file also, but I don't have an example of this to work from ;-(

Web Services Description Language Tool (Wsdl.exe) - http://msdn.microsoft.com/en-us/library/7h3ystb6%28v=vs.80%29.aspx
  You pass it the path to a .disco file and it creates:
  * WhateverWeTellIt.cs

 


Page 2 of 9