hi,
I changed my connectionstrings in my web.config file and I have some problems I hope you can help me with. I get lots of errors :" 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. I have no idea how to fix this. This is what I have in my config file, and what follows is the error message.
<!--
<configuration xmlns="<appSettings/>
<connectionStrings>
<add name ="subConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\ServeDB\is\personnel\testFE.mdb" providerName="System.Data.OleDb"/>
</connectionStrings>
"ServeDB" is the name of the server"
What am I doing wrong?
Error Messages:
Line 625: private void InitConnection() {
Line 626: this._connection = new System.Data.OleDb.OleDbConnection();
Line 627: this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["TEST"].ConnectionString;
Line 628: }
I changed my connectionstrings in my web.config file and I have some problems I hope you can help me with. I get lots of errors :" 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. I have no idea how to fix this. This is what I have in my config file, and what follows is the error message.
<!--
<configuration xmlns="<appSettings/>
<connectionStrings>
<add name ="subConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\ServeDB\is\personnel\testFE.mdb" providerName="System.Data.OleDb"/>
</connectionStrings>
"ServeDB" is the name of the server"
What am I doing wrong?
Error Messages:
Line 625: private void InitConnection() {
Line 626: this._connection = new System.Data.OleDb.OleDbConnection();
Line 627: this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["TEST"].ConnectionString;
Line 628: }