When compiling I get ‘Could not copy temporary files to the output directory’ or ‘The process cannot access the file because it is being used by another process’ error messages. Why?
Visual Studio .NET is unable to copy your DLLs from Bin directory to a temporary ASP.NET files folder. This is due to having a trailing backslash in root web application, or in a virtual directory with child directories marked as Web applications.
Whenever I browse to one of my ASP.NET web pages, Internet Explorer keeps on asking me if I want to download it, or it just displays the ASPX source. Why?
IIS does not have the correct mapping for the ASPX file extension. This can happen if you install IIS after installing the .NET Framework, or if you uninstalled and reinstalled IIS. To repair IIS mappings for ASP.NET, you can run the Aspnet_regiis.exe utility. For more information check out KB306005
Why do I get the error message ‘Compiler Error Message: CS1595’
This problem occurs because the C# compiler does not have permission to access the folders in the path to the mscorlib.dll assembly To resolve this problem, modify the compiler definition for the C# compiler to include the /nostdlib option. The /nostdlib option prevents the import of the mscorlib.dll assembly, which defines the entire System namespace. To include the /nostdlib option in the C# compiler definition on a computer, follow these steps: Open the Machine.config file, and then locate the section. In the definition for C#, add the compilerOptions attribute with a value of /nostdlib. For example: <compiler language=’c#;cs;csharp’ extension=’.cs’ type=’Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ warningLevel=’1′ compilerOptions=’/nostdlib’ /> For more details refer PRB: ‘Compiler Error Message: CS1595’ Error Message When You Use the C# Compiler to Compile an ASP.NET Resource
How can I resolve the error message ‘Cannot access file ‘…’ because it is being used by another process’
You receive this error message if the following conditions are true: The assembly that is specified in the error message is a signed assembly and is not installed in the Global Assembly Cache (GAC); instead, the assembly is in the Bin directory of the ASP.NET Web application. -and- Your ASP.NET Web application has just been restarted. For more details refer PRB: ‘Can not Access File ’AssemblyName’ Because It Is Being Used by Another Process’ Error Message in ASP.NET
Why do I get the error message ‘aspnet_wp.exe (PID: XXXX) was recycled because it was suspected to be in a deadlocked state ‘
This problem might occur because ASP.NET limits the number of worker threads and completion port threads that a call can use to execute requests. For more details refer PRB: Contention, poor performance, and deadlocks when you make Web service requests from ASP.NET applications You could control the deadlock detection by changing machine.config setting in <processModel responseDeadlockInterval=’…’ … />