Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
9601
Description
There seems to be an issue with the aspnet_compiler and precompiling Web Apps that have Global.asax files. You are supposed to use the -u switch when compiling these apps, which NPanday does, but the compiler does not do what it is supposed to do. Using the -u switch makes no difference for the asax files.
Microsoft has it documented that it should act differently. There is an issue that was opened with MS last week about this behavior at the link below.
I am attaching an example application. It does not run when executed in IIS as compiled. If you delete the App_global.asax.compiled and the App_global.asax.dll the application runs properly.
This is a bug in the Microsoft compiler and/or the Microsoft documentation.
As a result I feel we should take the aspnet_compiler step out of the system till Microsoft fixes this issue. Not sure if we can make this step optional?
But try to compile the attached project with just the aspnet_compiler from the command line with and without the -u switch and you will see that the behavior with the asax file does not change as documented at the link below.
http://msdn.microsoft.com/en-us/library/ms229863(VS.80).aspx