i have some c# code running OK inside Visual Studio 2005 but has error when it's run in web server. here is the error msg:
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.NullReferenceExcept
ion: Object reference not set to an instance of an object.
Source Error:
Line 17: protected override void InitializeCulture()
Line 18: {
Line 19: string culture = (HttpContext.Current.Profi
le as ProfileCommon).Preferences
.Culture;
Line 20: this.Culture = culture;
Line 21: this.UICulture = culture;
Source File: c:\Inetpub\wwwroot\beercs\
App_Code\B
asePage.cs
Line: 19
anyone can give me some hints? thanks in advance.
Start Free Trial