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 859097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:37:58+00:00 2026-05-15T08:37:58+00:00

So we’re having some issues deploying an ASP.NET MVC app to a client site.

  • 0

So we’re having some issues deploying an ASP.NET MVC app to a client site. Basically when we try to test the app from localhost, we get the dreaded Global.asax parser error indicating it could not load the application global.

Research indicates there are basically 4 possible reasons for this exception we’re seeing:

  1. The solution hasn’t been built. This clearly isn’t the case since we can deploy it here and it runs fine on any machine we deploy to AND we had to build and publish the darn thing to deploy it anyway.

  2. The Global.asax namespace inheritance does not match the application global code file. Again we double checked this and since it runs just fine here that can’t be the issue.

  3. Miscellaneous non-descript IIS/VS.NET mischief. Basically something get’s wonky in IIS or VS.NET and the web server won’t behave correctly for this application. We’ve done cleans and rebuilds, we’ve deleted virtual dir and recreated, and performed all of the IIS munging that we’ve found elsewhere online. Various combinations of IIS bounces, server reboots, virtual dir/application recreation, etc.

  4. Code level permissions issue. We’ve verified full trust in machine/web config in the framework directory, we’ve set .NET trust to full in IIS, we’ve granted Everyone full control on the directories just to hit it with the security hammer, etc. etc.

The pertinent detials:
Windows Server 2008 x64
IIS 7, 32 bit compatible app pool (app was written on 32 bit OS compiled for any cpu)
App pool identity set to NetworkService
Microsoft ASP.NET MVC 1.0
XCopy deployment

We deployed another read-only app just fine. The significant difference in this app is the use of NHibernate and Log4Net which require full trust.
Additionally, the actual project name of the web project differs from the default namespace however the Inherits namespace in Global.asax and the Global.asax.cs files match so this shouldn’t be an issue.

Anybody have any bright ideas? We’re officially down to just the dim ones.

EDIT
Exception is Could not load type <MyDefaultNamespace>.<Global.asax.cs class name>

There is no code snippet as the app won’t load at all. It fails immediately with no time lag on first request after install.

It’s the same thing all these folks over here are having trouble with

  • 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-05-15T08:37:58+00:00Added an answer on May 15, 2026 at 8:37 am

    If you have changed the solution platform, try changing it back to Any CPU.

    I had mine set to x86 (one I had created to allow code changes during debugging on x64 computer). When I changed it back to Any CPU the the problem you described went away.

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

Sidebar

Related Questions

No related questions found

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.