Article ID: 313105 - View products that this article applies to.
This article was previously published under Q313105
This article has been archived. It is offered "as is" and will no longer be updated.
When you compile a Web form, the compilation may fail in ASP.NET, and you may receive the following error message (or similar):
This error can occur if the following conditions are true:
Compiler Error Message: CS2001: Source file
'\\server\sharename\webform1.aspx.cs' could not be found.
This problem occurs because the compiler is started with the identity of a worker process, and the worker process may not be able to read the remote share. Because ASP.NET uses the impersonation token to read the page, ASP.NET reads the page successfully.
To resolve this problem, use one of the following methods:
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in ASP.NET (included with the .NET Framework) 1.1 and the .NET Framework 1.1.
Steps to Reproduce Behavior
Contact us for more help
Connect with Answer Desk for expert help.