Cannot create/shadow copy when that file already exists

The .Net Framework has a feature called Shadow Copy. Shadow copy is enabled on every appdomain created by ASP.NET by default. By default assemblies loaded will be copied to a shadow copy cache directory, and will be used from that location. But this may create problem sometimes.

Error catching in Global.asax

The following code snippet will help you to catch an error in the global.asax file, Turn off the custom error mode in web.config file first, <customErrors mode="Off"> And add this code in your global.asax file to catch the error, void Application_Error(object sender, EventArgs e) { HttpContext context = ((HttpApplication)sender).Context; if (context.Error != null) { Exception ex = context.Error; string msg = string.Empty; while (ex != null) { if (!string.IsNullOrEmpty(ex.Message)) msg += ex.ToString() + "<br /><br />"; ex = ex.InnerException; } context.Response.Clear(); ...

Add another application as child of BlogEngine.net

I have been getting good response for my post Integrating blog engine into existing site. One of the guy asked me this question on how can we do the opposite? He had a BlogEngine as parent site and needed some other site to be child of BlogEngine. So He posted on that and this is the answer he got for his question. You need to make this change in your web.config file. If you want to have a website as child of BlogEngine <location path="." inheritInChildApplications="false"> <system.web> ..... existing content ..... </system.web> </location> <location path="." inheritInChildApplications="false"> ...

Server Application Unavailable

Many a time while developing a web application you may come accross “Server application unavailable” When you get this error in Windows XP make sure you have given ASPNET user sufficient rights on your physical application folder, it mainly requires read permission. When you get this error in Windows 2003 server you can right click your virtual directory – permission – grant aspnet user sufficient rights there.

Visual Studio 2010 IDE Overview

Understanding existing, and writing new, code As the complexity of applications grows so does the challenge of understanding the code that you’re working on. With Visual Studio 2010 the IDE provides integrated support for understanding what is happening in the code section that you’re viewing. The editor in Visual Studio 2010 has been rebuilt using the Windows Presentation Foundation (WPF) technology. WPF enables the editor to richly present information about the code in the context of presenting the actual source. This ability enables features such as the “Document Map Margin” to render a...
Page 1 of 1012345Last »