We have an ASP.NET 1.1 Web Application we are trying to debug in Visual Studio 2003. When we run the application in debug mode, the following error occurs:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'MTS.Application.UI.Global'.
Source Error:
|
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="MTS.Application.UI.Global" %> |
Source File: C:\Inetpub\wwwroot\Application\global.asax Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
We have narrowed down the problem to the VSWebCache folder, but do not know how to proceed.
Whenever we build the project for the first time (assuming an empty VSWebCache folder for the application) the Web Site Assembly, PDB and resources files are all built and placed into VSWebCache\[computername]\[appname]\obj\Debug. Since this folder is empty the first time we attempt to launch the application from visual studio, it works fine, it will run, we can debug, etc. Any subsequent executions from visual studio will generate the error listed above.
After further investigation, we noticed that during subsequent launches of the application from visual studio, it does a build and only updates the application assembly and pdb files, not the resources files. The only time the assembly, pdb and resources files get updated is when we run a ReBuild (not a Build). To make a long story short, our work around is to remove the temp folder from under Debug, this (for some crazy reason) triggers a complete rebuild during the debug launch process which then we no longer get the "Could not load type" Error.
Has anyone run into this or found a solution to this very odd VS issue?