Advertisement

09.11.2007 at 02:11PM PDT, ID: 22821787
[x]
Attachment Details

C#, IE7

Asked by allan8964 in Microsoft Visual C#.Net, C# Programming Language, .NET Framework 2.x

Tags: ,

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.NullReferenceException: 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.Profile as ProfileCommon).Preferences.Culture;
Line 20:          this.Culture = culture;
Line 21:          this.UICulture = culture;
 

Source File: c:\Inetpub\wwwroot\beercs\App_Code\BasePage.cs    Line: 19

anyone can give me some hints? thanks in advance.Start Free Trial
[+][-]09.11.2007 at 03:00PM PDT, ID: 19872583

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, C# Programming Language, .NET Framework 2.x
Tags: ie7, profilecommon
Sign Up Now!
Solution Provided By: Justin_W
Participating Experts: 1
Solution Grade: C
 
 
[+][-]09.12.2007 at 06:30AM PDT, ID: 19876038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2007 at 10:22AM PDT, ID: 19878230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2007 at 06:26AM PDT, ID: 19883407

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.13.2007 at 10:19AM PDT, ID: 19885479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628