AmosFiveSix.com

Experience, Knowledge, Creativity

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

Web.config Hierarchy and Security

E-mail Print PDF
ASP.NET Configuration File Hierarchy and Inheritance
http://msdn.microsoft.com/en-us/library/ms178685.aspx

ASP.NET Configuration Scenarios
http://msdn.microsoft.com/en-us/library/dtbwsx8s.aspx

How to: Configure Specific Directories Using Location Settings
http://msdn.microsoft.com/en-us/library/ms178692.aspx

How to: Lock ASP.NET Configuration Settings
http://msdn.microsoft.com/en-us/library/ms178693.aspx

Securing ASP.NET Configuration
http://msdn.microsoft.com/en-us/library/ms178699.aspx
 

Continuous Integration and Build Servers

E-mail Print PDF

Best Way of Automating Daily Build - Stack Overflow
http://stackoverflow.com/questions/53766/best-way-of-automating-daily-build

CI Feature Matrix - ThoughtWorks
http://confluence.public.thoughtworks.org/display/CC/CI+Feature+Matrix

TeamCity
http://www.jetbrains.com/teamcity/


CruiseControl.Net
http://www.cruisecontrolnet.org/

Bamboo
http://www.atlassian.com/software/bamboo/overview

Jenkins - An extendable open source continuous integration server
http://jenkins-ci.org/

Visual Build - $295+
http://www.kinook.com/VisBuildPro/

Apache Continuum - Continuous Integration and Build Server
http://continuum.apache.org/

The Build Server: Your Project's Heart Monitor - Coding Horror
http://www.codinghorror.com/blog/2006/10/the-build-server-your-projects-heart-monitor.html

The Road To Build Enlightenment
http://zutubi.com/products/pulse/articles/buildenlightenment/

 

.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;
 

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

 

.Net Assembly References

E-mail Print PDF
Determining .NET Assembly and Method References - AssemblyRefs and MethodRefs Utility
http://msdn.microsoft.com/en-us/magazine/cc164610.aspx

SYSK 27: What you need to know about referenced assemblies in VS2005
http://blogs.msdn.com/b/irenak/archive/2005/12/13/503105.aspx
* "Visual Studio 2005 provides the Specific Version property of the assembly reference."

Stack Overflow: .net reference specificversion true or false?
http://stackoverflow.com/questions/1063459/net-reference-specificversion-true-or-false

Visual Studio 2008 – Project Reference Oddness
http://dvanderboom.wordpress.com/2007/12/11/visual-studio-2008-project-reference-oddness/

Stack Overflow: How to change the loading path of references in .NET?
http://stackoverflow.com/questions/806383/how-to-change-the-loading-path-of-references-in-net
* "When you create an AppDomain you can define a path for loading assemblies. Set AppDomainSetup.PrivateBinPath and pass to AppDomain.Create domain."
* "you can try handling the Appdomain.AssemblyResolve event that is raised anytime .net cant locate an assembly. there you can implement custom logic to locate and load assemblies from anywhere. the AssemblyResolve eventhandler jsut returns either the assembly that is beeing looked for or null, so you could return the already loaded Core.dll from available from the AppDomain.GetAssemblies() method."

Stack Overflow: When are referenced Assemblies loaded?
http://stackoverflow.com/questions/2785520/when-are-referenced-assemblies-loaded
* "When you enter a method that references a type in another assembly."

Stack Overflow: How do I determine the dependencies of a .NET application?
http://stackoverflow.com/questions/227886/how-do-i-determine-the-dependencies-of-a-net-application

When to Change File/Assembly Versions
http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57148.aspx

Inside .NET assemblies (part 1)
http://www.yetanotherchris.me/home/2010/7/12/inside-net-assemblies-part-1.html
* Includes "Definitions of .NET acronyms"

Inside .NET Assemblies (part 2)
http://www.yetanotherchris.me/home/2010/7/29/inside-net-assemblies-part-2.html
* Includes "Changing referenced assembly versions" and "Adding search paths for the CLR to look in"

MSDN: <bindingRedirect> Element
http://msdn.microsoft.com/en-us/library/eftw1fys.aspx

.NET assembly dependency analyser
http://drewnoakes.com/code/dependency-analyser/
* Creates graphical trees

Assembly Identity
http://blogs.msdn.com/b/suzcook/archive/2003/07/21/assembly-identity.aspx

Loading Multiple Versions of same Assembly
http://www.infosysblogs.com/microsoft/2007/04/loading_multiple_versions_of_s.html
    
.NET Framework: Building, Packaging, Deploying, and Administering Applications and Types Part 2
http://msdn.microsoft.com/en-us/magazine/cc301389.aspx
* Warning: Framework 1.x

Using Assemblies in Microsoft .NET and C#
http://www.akadia.com/services/dotnet_assemblies.html
* Warning: Framework 1.x
   
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »


Page 1 of 2

Subscribe

Subscribe by e-mail:

Site Search

Google Ads