Work in Server08 | IIS7. I have a website project and I'm used to manually editing Global.asax.cs on a deployed site many times in the past. I recently discovered that only the Global.asax file is present and has only:
<%@ Application Codebehind="Global.asax.cs" Inherits="myDomain.MvcApplication" Language="C#" %>
There are simply no Global.asax.cs files available / visible for any of my active, functioning websites.
I checked here Global.asax cannot find the code class below and here where are the Global.asax codes in mvc3? I’m not going anywhere. The second link contains a comment: "This is because it is a compiled web application. You will need to view it in Visual Studio as a project. '
But since my project has always been a website - and I haven’t converted it (intentionally), I am puzzled by the changed behavior.
But when I enter VS12 and look at the context menu for the WebProject solution, it represents "Convert to Web Application". Folder structures on sites do not contain App_Data or App_Start. In my opinion, these two facts, which are installed in VS, consider the project as a website, why is Global.cs compiled to / bin then?
I will close by repeating - in the past I edited these things - I'm not sure, but you can probably say that this is the first time I tried to do this after installing VS12. And thinking about it is more difficult - only recently I implemented the "One Click Publishing" service so that it could enter the game.
check? I would like to I need to edit a simple update without fully redeploying.
THX
source share