Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.ASAX Error Message
Message
De
25/08/2004 10:41:18
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:
00936305
Vues:
16
It has the "protected void Application_Start(Object sender, EventArgs e)", but when I copy in the code below, "App = new AppWeb();", it throws an error "The name app does not exist".


Bill

NEVER MIND - I GOT IT FIXED!!!

Kevin,

I created a new project, and used that Global.asax file as a model. That worked. For the life of me, I can't figure out how the Global.asax file got changed. I didn't make any changes to it!

Well, anyway, I'm up and running.

Thanks!




>{


>Bill,
>
>>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()
>
>It looks like something else has happened to your Global.asax.cs file...does the Application_Start method contain the following code that instantiates the application object?
>
>
protected void Application_Start(Object sender, EventArgs e)
>{
>	App = new AppWeb();
>}
>
>Regards,
Bill Benton
Senior Systems Analyst
Nuvell Financial Services
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform