Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Not able to update global.asax file in production environment

Not able to update global.asax file in production environment

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpjavascriptcssannouncement
3 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    syedkhaleel
    wrote on last edited by
    #1

    Hi folks , we are trying to publish our website to production server.which includes changes to global.asax file's application_start.which registers a bundle to load/compress js/css files.it works fine with local solution. But when we deploy same application to server.all bundled resources are not loading after login to the page.i suspect the problem with global.asax as this file makes a call to the bundle class to register bundled resources. When i look at the global.asax file.Global.asax file is present in root directory of publised folder.and global.dll files are present in bin folder also. but after deploying to the server global.asax file is not updationg in deployment server. due this issue i am not able deploy it to the server. Any suggestions please..

    E 1 Reply Last reply
    0
    • S syedkhaleel

      Hi folks , we are trying to publish our website to production server.which includes changes to global.asax file's application_start.which registers a bundle to load/compress js/css files.it works fine with local solution. But when we deploy same application to server.all bundled resources are not loading after login to the page.i suspect the problem with global.asax as this file makes a call to the bundle class to register bundled resources. When i look at the global.asax file.Global.asax file is present in root directory of publised folder.and global.dll files are present in bin folder also. but after deploying to the server global.asax file is not updationg in deployment server. due this issue i am not able deploy it to the server. Any suggestions please..

      E Offline
      E Offline
      Erik Funkenbusch
      wrote on last edited by
      #2

      Your global.asax file won't update because it hasn't changed. This file only has a small amount of metatdata in it to point to the DLL. If you right click on the global.asax in your solution explorer, choose "view markup" and you will see only a single line of code that looks like this:

      <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication.Application" Language="C#" %>

      Since this file doesn't change, it won't be updated when you deploy. As such, this isn't the cause of your problems. More than likely, the cause is something else, but since you haven't included more details about your problem we can't really help more.

      -- Where are we going? And why am I in this handbasket?

      S 1 Reply Last reply
      0
      • E Erik Funkenbusch

        Your global.asax file won't update because it hasn't changed. This file only has a small amount of metatdata in it to point to the DLL. If you right click on the global.asax in your solution explorer, choose "view markup" and you will see only a single line of code that looks like this:

        <%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication.Application" Language="C#" %>

        Since this file doesn't change, it won't be updated when you deploy. As such, this isn't the cause of your problems. More than likely, the cause is something else, but since you haven't included more details about your problem we can't really help more.

        -- Where are we going? And why am I in this handbasket?

        S Offline
        S Offline
        syedkhaleel
        wrote on last edited by
        #3

        I have created a global.asax file not gloabal.asax.cs file.it works well with IIS 7 but not on IIS 6 Version. :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups