Not able to update global.asax file in production environment
-
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..
-
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..
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?
-
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?
I have created a global.asax file not gloabal.asax.cs file.it works well with IIS 7 but not on IIS 6 Version. :)