Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-96

Issue with precompile (aspnet_compile) of Web Apps with Global.asax file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0
    • Maven Plugins
    • 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.

      https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=425074&wa=wsignin1.0

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sernacio sernacio
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: