Recently I faced a Virtual Provider issue on which I spent considerable amount of time but to no avail. The issue is reported multiple times in google and also in Microsoft Bug 307978 and is even marked as closed but it still comes up.
The error message is:
The VirtualPathProvider returned a VirtualFile object with VirtualPath set to '/MasterPageDir/SharedMasterPage.master.cs' instead of the expected '//MasterPageDir/SharedMasterPage.master.cs'.
All the posts mentioned that its a compilation error but how to find it out. I tried a lot of code but did not help. So the solution is:
Use EventViewer. Under Application the error will be logged as a ASP .NET 2.0 error. Looking at the details you can figure out the details of the compilation issue. :)
No comments:
Post a Comment