Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8621945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:56:05+00:00 2026-06-12T06:56:05+00:00

Running under Server08 | IIS7. I have a website project and am in the

  • 0

Running under Server08 | IIS7. I have a website project and am in the habit of hand editing the Global.asax.cs at the deployed site many times in the past. Recently I’ve found that only the Global.asax is present and has only:

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

There are simply no Global.asax.cs files present/visible for any of my active, functioning websites anymore.

I’ve checked here Global.asax can't find code-behind class and here where is the codes in Global.asax in mvc3? without getting anywhere. The second link contains the comment: ‘That’s because it’s a compiled web application. You’ll have to view it in Visual Studio as a project.’

But since my project has always been a website – and I’ve not converted it (intentionally) I’m puzzled by the changed behavior.

But when i step into VS12 and look at the context menu for the solution’s WebProject it presents ‘Convert to Web Application’. The sites’ folder structures do not contain App_Data or App_Start. To my mind, these 2 fact establish at VS is treating the project as a website, why then, is the Global.cs compiled down to the /bin?

I’ll close by repeating – I’ve hand edited these things in the past – I’m not positive but it’s probably accurate to say that this is the first time I’ve tried to do so after installing VS12. And, coming to think on it harder – it’s only recently that I’ve implemented the ‘One Click Publishing’ service so that could be coming into play.

verify? I’d like I need to edit a simple update without full re-deployment.

thx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:56:07+00:00Added an answer on June 12, 2026 at 6:56 am

    I think the ‘One Click Publishing’ is most likely the culprit here. I created a sample Web Site project to experiment, and when I use the publish feature in Visual Studio, the files generated are indeed missing the Global.asax.cs file. Instead, a bin folder is created with a compilation called “App_global.asax.dll” even though it is a Web Site and not a Web Application. I am guessing this might be similar to what is happening for you as well.

    If not, I found a link which might be useful to you in order to once again be able to edit a class on the server. Particularly, have a look at the second answer (the one not accepted as the best answer) to recreate a class file for the global code: Where is the Global.asax.cs file?

    I tried this solution, and verified that the class file is editable on the server, and that it is dynamically compiled at run time (the modifications I made to the file worked immediately).

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have MVC3 web application running under IIS 7. During initialization in global.asax application
I have a web application running under IIS7. I am storing my global variables
I have a site running on IIS7. The application pool is running under a
I have Selenium running under Cruise Control to test our site once a day.
I have many MySQL statements that are running under MySQL 4, but not MySQL
I have a server application running under Cent OS. The server answers many requests
I have an ASP.net website running under IIS6. In one .aspx page the user
I have a website that is currently running under .NET 3.5. I am thinking
I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory.
I have some C# code that is giving a StackOverflowException when running under IIS7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.