The ConnectionString property has not been initialized

  • Thread starter Thread starter TPSreport
  • Start date Start date
T

TPSreport

I log on to the cookieless application, work within it
for awhile, jump to a URL outside the application, then
return to the application. As soon as a db call is
required, I get the error below. web.config also below.
Thanks in advance for your ideas!
TPS

error message:
The ConnectionString property has not been initialized.
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.InvalidOperationException: The
ConnectionString property has not been initialized.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The ConnectionString property
has not been initialized.]
System.Data.OleDb.OleDbConnection.Open() +203
web.crgrid.Page_Load(Object sender, EventArgs e) +236
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
my web.config file:
<configuration>
<system.web>
<compilation defaultLanguage="vb"
debug="true"><assemblies></assemblies></compilation>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="pweb_formsauth"
loginUrl="login.aspx" protection="All" timeout="30"/>
</authentication>
<authorization>
<deny verbs="GET, POST" users="?"/>
</authorization>
<trace enabled="false" requestLimit="10"
pageOutput="false" traceMode="SortByTime"
localOnly="true"/>
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="true" timeout="20"/>
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"/>
</system.web>
</configuration>
 
Hello,

Thanks for posting in the group.

I noticed that you have posted the same question in VSNET.general group. I
replied you there. If you have time, please check the reply there.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "TPSreport" <[email protected]>
!Sender: "TPSreport" <[email protected]>
!Subject: The ConnectionString property has not been initialized
!Date: Thu, 4 Sep 2003 02:25:49 -0700
!Lines: 69
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNyxoceXGAQ7cLsRwapgIb7VJgZMw==
!Newsgroups: microsoft.public.dotnet.general
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:107230
!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!X-Tomcat-NG: microsoft.public.dotnet.general
!
!
!I log on to the cookieless application, work within it
!for awhile, jump to a URL outside the application, then
!return to the application. As soon as a db call is
!required, I get the error below. web.config also below.
!Thanks in advance for your ideas!
!TPS
!
!error message:
!The ConnectionString property has not been initialized.
!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.InvalidOperationException: The
!ConnectionString property has not been initialized.
!
!Source Error:
!
!An unhandled exception was generated during the execution
!of the current web request. Information regarding the
!origin and location of the exception can be identified
!using the exception stack trace below.
!
!Stack Trace:
!
!
![InvalidOperationException: The ConnectionString property
!has not been initialized.]
! System.Data.OleDb.OleDbConnection.Open() +203
! web.crgrid.Page_Load(Object sender, EventArgs e) +236
! System.Web.UI.Control.OnLoad(EventArgs e) +67
! System.Web.UI.Control.LoadRecursive() +35
! System.Web.UI.Page.ProcessRequestMain() +731
!
!
!----------------------------------------------------------
!----------------------
!Version Information: Microsoft .NET Framework
!Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
!
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
!++++++++++++++++++++++
!my web.config file:
!<configuration>
! <system.web>
! <compilation defaultLanguage="vb"
!debug="true"><assemblies></assemblies></compilation>
! <customErrors mode="Off"/>
! <authentication mode="Forms">
! <forms name="pweb_formsauth"
!loginUrl="login.aspx" protection="All" timeout="30"/>
! </authentication>
! <authorization>
! <deny verbs="GET, POST" users="?"/>
! </authorization>
! <trace enabled="false" requestLimit="10"
!pageOutput="false" traceMode="SortByTime"
!localOnly="true"/>
! <sessionState mode="InProc"
!stateConnectionString="tcpip=127.0.0.1:42424"
!sqlConnectionString="data
!source=127.0.0.1;Trusted_Connection=yes"
!cookieless="true" timeout="20"/>
! <globalization requestEncoding="utf-8"
!responseEncoding="utf-8"/>
! </system.web>
!</configuration>
!
 
Back
Top