B
baerland
Hi all!
I have browsed through houndreds of threads with problems conserning
web.config, but not yet found a solution to this problem.
I have a test server running .NET 1.0, 1.1 and 2.0
I have a web application (virtual directory with application set), with
a web.config file.
The asp.net properties of this application is set to use .NET 1.0 in
IIS
web.config file:
<appSettings>
<add key="DBstring"
value="SERVER=x.x.x.x;DATABASE=db;UID=uid;PWD=pwd;application
name=somename;Max Pool Size=75000"/>
</appSettings>
<system.web>
in aspx file:
Imports System.Configuration
Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
DBString = ConfigurationSettings.AppSettings("DBstring")
This however returns null and produces this error:
The ConnectionString property has not been initialized
Any help would be greatly appreciated.
-Erlend
I have browsed through houndreds of threads with problems conserning
web.config, but not yet found a solution to this problem.
I have a test server running .NET 1.0, 1.1 and 2.0
I have a web application (virtual directory with application set), with
a web.config file.
The asp.net properties of this application is set to use .NET 1.0 in
IIS
web.config file:
<appSettings>
<add key="DBstring"
value="SERVER=x.x.x.x;DATABASE=db;UID=uid;PWD=pwd;application
name=somename;Max Pool Size=75000"/>
</appSettings>
<system.web>
in aspx file:
Imports System.Configuration
Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
DBString = ConfigurationSettings.AppSettings("DBstring")
This however returns null and produces this error:
The ConnectionString property has not been initialized
Any help would be greatly appreciated.
-Erlend