Global.asax not being Published.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe

    Global.asax not being Published.

    Hello all!

    I added a Global.asax to my application. I'm using the
    Application_Beg inRequest event. Everything works fine in my development
    enviorment but when I publish the web site the Global.asax file doesn't get
    published. If I manually copy it the event doesn't seem to get called.

    Any idea what's going on here?

    Thanks,
    Joe


  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: Global.asax not being Published.

    The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
    server and see if it is published. If you used single assemblies, you will
    easily find it. If not, you might have to examine the cryptic naming scheme
    to actually find global.asax compiled bits.

    If it is not compiling, that is an issue. If it is compiling but not firing,
    that is another issue.

    If you want to copy the site out there, you can. It will compile page by
    page, into memory, rather than use precompile IL (ala publish).

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    or just read it:


    *************** *************** *************** ****
    | Think outside the box!
    |
    *************** *************** *************** ****
    "Joe" <jbassking@noem ail.noemailwrot e in message
    news:u1L0sKWoIH A.4928@TK2MSFTN GP04.phx.gbl...
    Hello all!
    >
    I added a Global.asax to my application. I'm using the
    Application_Beg inRequest event. Everything works fine in my development
    enviorment but when I publish the web site the Global.asax file doesn't
    get published. If I manually copy it the event doesn't seem to get called.
    >
    Any idea what's going on here?
    >
    Thanks,
    Joe
    >

    Comment

    • Joe

      #3
      Re: Global.asax not being Published.

      Hi Gregory,

      Thanks for your response. I did find the compiled file.

      -Joe

      "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
      message news:eIwGuYWoIH A.4620@TK2MSFTN GP06.phx.gbl...
      The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
      server and see if it is published. If you used single assemblies, you will
      easily find it. If not, you might have to examine the cryptic naming
      scheme to actually find global.asax compiled bits.
      >
      If it is not compiling, that is an issue. If it is compiling but not
      firing, that is another issue.
      >
      If you want to copy the site out there, you can. It will compile page by
      page, into memory, rather than use precompile IL (ala publish).
      >
      --
      Gregory A. Beamer
      MVP, MCP: +I, SE, SD, DBA
      >
      Subscribe to my blog

      >
      or just read it:

      >
      *************** *************** *************** ****
      | Think outside the box! |
      *************** *************** *************** ****
      "Joe" <jbassking@noem ail.noemailwrot e in message
      news:u1L0sKWoIH A.4928@TK2MSFTN GP04.phx.gbl...
      >Hello all!
      >>
      >I added a Global.asax to my application. I'm using the
      >Application_Be ginRequest event. Everything works fine in my development
      >enviorment but when I publish the web site the Global.asax file doesn't
      >get published. If I manually copy it the event doesn't seem to get
      >called.
      >>
      >Any idea what's going on here?
      >>
      >Thanks,
      >Joe
      >>
      >
      >

      Comment

      • Steven Cheng [MSFT]

        #4
        Re: Global.asax not being Published.

        Hi Joe,

        Yes, in ASP.NET 2.0 it by default use a dynamic compilation model for pages
        and components. For global.asax, this is not a file that will be directly
        visited by client browser, but be accessed by ASP.NET runtime internally.
        Thus, when you publish the webiste(perform precompilation) , the global.asax
        will be generated as a class in assmbly and the global.asax file is removed.

        here are some other reference about ASP.NET precompilation and global.asax
        in ASP.NET 2.0

        #Precompilation In ASP.NET 2.0


        #Fixing the Global.asax in ASP.NET 2.0


        Sincerely,

        Steven Cheng

        Microsoft MSDN Online Support Lead


        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.

        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        Gain technical skills through documentation and training, earn certifications and connect with the community

        ications.

        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.
        =============== =============== =============== =====
        This posting is provided "AS IS" with no warranties, and confers no rights.


        --------------------
        >From: "Joe" <jbassking@noem ail.noemail>
        >References: <u1L0sKWoIHA.49 28@TK2MSFTNGP04 .phx.gbl>
        <eIwGuYWoIHA.46 20@TK2MSFTNGP06 .phx.gbl>
        >Subject: Re: Global.asax not being Published.
        >Date: Sat, 19 Apr 2008 10:00:18 -0400
        >
        >Hi Gregory,
        >
        >Thanks for your response. I did find the compiled file.
        >
        >-Joe
        >
        >"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
        >message news:eIwGuYWoIH A.4620@TK2MSFTN GP06.phx.gbl...
        >The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
        >server and see if it is published. If you used single assemblies, you
        will
        >easily find it. If not, you might have to examine the cryptic naming
        >scheme to actually find global.asax compiled bits.
        >>
        >If it is not compiling, that is an issue. If it is compiling but not
        >firing, that is another issue.
        >>
        >If you want to copy the site out there, you can. It will compile page by
        >page, into memory, rather than use precompile IL (ala publish).
        >>
        >--
        >Gregory A. Beamer
        >MVP, MCP: +I, SE, SD, DBA
        >>
        >Subscribe to my blog
        >http://gregorybeamer.spaces.live.com/lists/feed.rss
        >>
        >or just read it:
        >http://gregorybeamer.spaces.live.com/
        >>
        >************** *************** *************** *****
        >| Think outside the box! |
        >************** *************** *************** *****
        >"Joe" <jbassking@noem ail.noemailwrot e in message
        >news:u1L0sKWoI HA.4928@TK2MSFT NGP04.phx.gbl.. .
        >>Hello all!
        >>>
        >>I added a Global.asax to my application. I'm using the
        >>Application_B eginRequest event. Everything works fine in my development
        >>enviorment but when I publish the web site the Global.asax file doesn't
        >>get published. If I manually copy it the event doesn't seem to get
        >>called.
        >>>
        >>Any idea what's going on here?
        >>>
        >>Thanks,
        >>Joe
        >>>
        >>
        >>
        >
        >
        >

        Comment

        • Steven Cheng [MSFT]

          #5
          Re: Global.asax not being Published.

          Hi Joe,

          Do you have any further question on this?

          Sincerely,

          Steven Cheng

          Microsoft MSDN Online Support Lead


          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.


          --------------------
          >X-Tomcat-ID: 28613149
          >Date: Mon, 21 Apr 2008 04:16:02 GMT
          >Subject: Re: Global.asax not being Published.
          >Hi Joe,
          >
          >Yes, in ASP.NET 2.0 it by default use a dynamic compilation model for
          pages
          >and components. For global.asax, this is not a file that will be directly
          >visited by client browser, but be accessed by ASP.NET runtime internally.
          >Thus, when you publish the webiste(perform precompilation) , the
          global.asax
          >will be generated as a class in assmbly and the global.asax file is
          removed.
          >
          >here are some other reference about ASP.NET precompilation and global.asax
          >in ASP.NET 2.0
          >
          >#Precompilatio n In ASP.NET 2.0
          >http://www.odetocode.com/Articles/417.aspx
          >
          >#Fixing the Global.asax in ASP.NET 2.0
          >http://rossnelson.blogspot.com/2005/...aspnet-20.html
          >
          >Sincerely,
          >
          >Steven Cheng
          >
          >Microsoft MSDN Online Support Lead
          >
          >
          >Delighting our customers is our #1 priority. We welcome your comments and
          >suggestions about how we can improve the support we provide to you. Please
          >feel free to let my manager know what you think of the level of service
          >provided. You can send feedback directly to my manager at:
          >msdnmg@microso ft.com.
          >
          >============== =============== =============== ======
          >Get notification to my posts through email? Please refer to
          >http://msdn.microsoft.com/subscripti...ault.aspx#noti
          f
          >ications.
          >
          >Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
          >where an initial response from the community or a Microsoft Support
          >Engineer within 1 business day is acceptable. Please note that each follow
          >up response may take approximately 2 business days as the support
          >professional working with you may need further investigation to reach the
          >most efficient resolution. The offering is not appropriate for situations
          >that require urgent, real-time or phone-based interactions or complex
          >project analysis and dump analysis issues. Issues of this nature are best
          >handled working with a dedicated Microsoft Support Engineer by contacting
          >Microsoft Customer Support Services (CSS) at
          >http://msdn.microsoft.com/subscripti...t/default.aspx.
          >============== =============== =============== ======
          >This posting is provided "AS IS" with no warranties, and confers no rights.
          >
          >
          >--------------------
          >>From: "Joe" <jbassking@noem ail.noemail>
          >>References: <u1L0sKWoIHA.49 28@TK2MSFTNGP04 .phx.gbl>
          ><eIwGuYWoIHA.4 620@TK2MSFTNGP0 6.phx.gbl>
          >>Subject: Re: Global.asax not being Published.
          >>Date: Sat, 19 Apr 2008 10:00:18 -0400
          >
          >>
          >>Hi Gregory,
          >>
          >>Thanks for your response. I did find the compiled file.
          >>
          >>-Joe
          >>
          >>"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
          >>message news:eIwGuYWoIH A.4620@TK2MSFTN GP06.phx.gbl...
          >>The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
          >>server and see if it is published. If you used single assemblies, you
          >will
          >>easily find it. If not, you might have to examine the cryptic naming
          >>scheme to actually find global.asax compiled bits.
          >>>
          >>If it is not compiling, that is an issue. If it is compiling but not
          >>firing, that is another issue.
          >>>
          >>If you want to copy the site out there, you can. It will compile page
          by
          >>page, into memory, rather than use precompile IL (ala publish).
          >>>
          >>--
          >>Gregory A. Beamer
          >>MVP, MCP: +I, SE, SD, DBA
          >>>
          >>Subscribe to my blog
          >>http://gregorybeamer.spaces.live.com/lists/feed.rss
          >>>
          >>or just read it:
          >>http://gregorybeamer.spaces.live.com/
          >>>
          >>************* *************** *************** ******
          >>| Think outside the box! |
          >>************* *************** *************** ******
          >>"Joe" <jbassking@noem ail.noemailwrot e in message
          >>news:u1L0sKWo IHA.4928@TK2MSF TNGP04.phx.gbl. ..
          >>>Hello all!
          >>>>
          >>>I added a Global.asax to my application. I'm using the
          >>>Application_ BeginRequest event. Everything works fine in my
          development
          >>>enviorment but when I publish the web site the Global.asax file
          doesn't
          >>>get published. If I manually copy it the event doesn't seem to get
          >>>called.
          >>>>
          >>>Any idea what's going on here?
          >>>>
          >>>Thanks,
          >>>Joe
          >>>>
          >>>
          >>>
          >>
          >>
          >>
          >
          >

          Comment

          Working...