Object reference not set to an instance of an object
-
Hi, As i have downloaded a small asp.net ajax project and i added this project to my visual studio 2005 and when i execute the project the error message "object reference not set to an instance of an object". and also i modified the connection string. The ASPNET.MDF file in server explorer is having the cross mark. can anyone provide solution for this. Thank in advance..
-
Hi, As i have downloaded a small asp.net ajax project and i added this project to my visual studio 2005 and when i execute the project the error message "object reference not set to an instance of an object". and also i modified the connection string. The ASPNET.MDF file in server explorer is having the cross mark. can anyone provide solution for this. Thank in advance..
-
Hi, As i have downloaded a small asp.net ajax project and i added this project to my visual studio 2005 and when i execute the project the error message "object reference not set to an instance of an object". and also i modified the connection string. The ASPNET.MDF file in server explorer is having the cross mark. can anyone provide solution for this. Thank in advance..
Hi Samiullah, this has nothing to do with the connection string. The program is missing an object, where an object is expected it is null. Check the exception details for the line in the code where the exception is thrown. This will give you a hint which object is missing. Regards Sebastian
It's not a bug, it's a feature! Me in Softwareland.
-
Hi, As i have downloaded a small asp.net ajax project and i added this project to my visual studio 2005 and when i execute the project the error message "object reference not set to an instance of an object". and also i modified the connection string. The ASPNET.MDF file in server explorer is having the cross mark. can anyone provide solution for this. Thank in advance..
The error as follow... 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 720: private void InitConnection() { Line 721: this._connection = new global::System.Data.SqlClient.SqlConnection(); Line 722: this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["AdventureWorksConnectionString"].ConnectionString; Line 723: } Line 724: Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\products\7bb3ee42\1a34f12b\App_Code.3orrxfoa.2.cs Line: 722
-
The error as follow... 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 720: private void InitConnection() { Line 721: this._connection = new global::System.Data.SqlClient.SqlConnection(); Line 722: this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["AdventureWorksConnectionString"].ConnectionString; Line 723: } Line 724: Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\products\7bb3ee42\1a34f12b\App_Code.3orrxfoa.2.cs Line: 722