Article ID: 313105 - Last Review: March 26, 2003 - Revision: 2.3 FIX: Cannot Compile Code-Behind Files That Use Src Attribute on a UNC ShareThis article was previously published under Q313105 On This PageSYMPTOMS
When you compile a Web form, the compilation may fail in ASP.NET, and you may receive the following error message (or similar):
Compiler Error Message: CS2001: Source file '\\server\sharename\webform1.aspx.cs' could not be found.
CAUSE
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.
RESOLUTION
To resolve this problem, use one of the following methods:
STATUSMicrosoft 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.
MORE INFORMATIONSteps to Reproduce Behavior
| Article Translations
|
Back to the top
