Could not load type 'xxxx.Global' Error on ASP.Net 1.1

by dcurtis 1/16/2009 2:20:00 PM

I had an application that worked fine on the development server; however, when I pushed the dll to the main server, the site gave the following error: 

Parser Error

Description: An error occurred during the parsing of a resource required to service this request.  Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'xxxxx.Global' 

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="xxxxx.Global" %>

I poked around for a solution, but couldn't find one.  I restarted IIS, but the error persisted.  Finally, I opened the IIS properties page, clicked the remove button to remove the application and then clicked the Create button to re-create the application.  After that, everything worked great!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

IIS 6 | ASP.NET 1.1

IIS 6 "Down for Maintenance" Page

by dcurtis 7/18/2008 7:15:00 AM

I recently had a customer that needed a database moved from one server to another.  As part of the move process, the customer wanted a way to bring all of the sites down and display a "site is down for maintenance" page for all requests until the new database was up and running.  I wanted to have the solution be a catch-all for the site and all of the microsites on the server without having to do anything at the individual application level. 

After a search on the net I found a pretty good solution here that involves creating a new site on the server using the same IP settings, but a different application pool.  You stop the existing site, turn on the new site and voila--problem solved--right?  Well, not exactly.  It worked great if you went directly to the URL, but if you tried to reference a specific page, it displayed the 404 error page.  I tried to modify the Custom Errors in IIS for 404 errors to point to the same maintenance page; however, no matter what I tried, it didn't work (can someone explain why?) and I couldn't figure out a work-around.  I even tried to put a web.config file with a Custom Errors section to help perform the redirects; however, that didn't work either.

Finally, I thought, "If I can't point to the custom error page I want, why don't I just modify the existing 404 error page to look like the maintenance page?"  So, that is what I did--and it worked perfectly!  Now, I realize that won't work if you don't have access to the standard IIS help pages to modify them, but if you do, here is another option for you.  Hope this helps.  If you know of a better way...

Currently rated 3.3 by 6 people

  • Currently 3.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5



Powered by BlogEngine.NET
Theme by Mads Kristensen

About the author

Derek Curtis Derek Curtis
President, Plaid Pony Technology Solutions LLC

E-mail me Send mail


<<  June 2018  >>

View posts in large calendar


    Recent comments



    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2018

    Sign in