Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.ASAX Error Message
Message
De
24/08/2004 11:29:23
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00935900
Message ID:
00935956
Vues:
16
>Bill,
>
>>I'm receiving the following error. This error just popped-up from nowhere. One minute the web app was working correctly, and the next minute, I'm getting this error message. HELP!
>>
>>Server Error in '/PMR' Application.
>>--------------------------------------------------------------------------------
>>
>>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 'PMR.Main.Global'.
>>
>>Source Error:
>>
>>
>>Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="PMR.Main.Global"
>
>The Global.asax file is a standard ASP.NET application class file (non MM .NET). The usual reason you get this error is because the namespace of your Global application class has been changed. To see if this has happened, do the following:
>
>
  1. In the VS .NET Solution Explorer, right-click Global.asax and select Open With... from the shortcut menu. In the Open With dialog, select HTML/XML Editor, and then click Open. You should see something like this:
    >
    >
    <%@ Application Codebehind="Global.asax.cs" Inherits="Acme.WebOrderSystem.Main.Global"
    >
    >The Codebehind attribute specifies the code-behind file associated with your global application class. The Inherits attribute specifies the fully qualified name of the class your global application object is derived from.
    >
    >
  2. Go back to the Solution Explorer, and see if the Global.asax file has a plus sign next to it. If it doesn't, go to the top of the Solution Explorer and click the Show All Files button. Expand the plus sign next to Global.asax.
    >
    >
  3. Double-click the Global.asax.cs or Global.asax.vb file. Make sure the namespace of the Global class is the same as that specified in the HTML element in step 1.
    >
    >For example:
    >
    >
    namespace Acme.WebOrderSystem.Main
    >{
    >	/// <summary>
    >	/// Summary description for Global.
    >	/// </summary>
    >	public class Global : System.Web.HttpApplication
    >	{
    >	}
    >}
    >
    >If it's different, either change the HTML element or the namespace declaration in the code-behind file.

>
>Regards,


Kevin,

I fixed the Global.Asax file, and now I am getting this error:

Server Error in '/PMR' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 45: //
Line 46: InitializeComponent();
Line 47: base.OnInit(e);
Line 48: }
Line 49:


Source File: c:\inetpub\wwwroot\PMR\UserLogin.aspx.cs Line: 47

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
OakLeaf.MM.Main.mmAppBase.get_LanguageMgr()
OakLeaf.MM.Main.Web.UI.mmBaseUserLogin.OnInit(EventArgs e)
OakLeaf.MMTemplate.UserLogin.OnInit(EventArgs e) in c:\inetpub\wwwroot\PMR\UserLogin.aspx.cs:47
System.Web.UI.Control.InitRecursive(Control namingContainer)
System.Web.UI.Page.ProcessRequestMain()




--------------------------------------------------------------------------------
Bill Benton
Senior Systems Analyst
Nuvell Financial Services
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform