Hello all you people,
Thanks for reading this. I hve a strange thing which annoys me noend.
I am using VS.NET with MS-Access DB, framework version 1.1,Windows XP Pro, IIS 5.1.
In my webforms I have added a System.Data.Oledb.OledbConnection,I have set the "Dynamic Properties > connectionstring" to aconnection string which I store in my Web.Config, this worksgreat when I move my whole app to another server and I only haveto change the Web.Config.
But... sometimes the connection is removed from Dynamicproperties and is a direct connection string. This happens whenI open a file and work with the dataconnection and then save andclose the file and then rebuilt the project, but the strangething is NOT ALWAYS......
In other words in my behind file this:
"Me.connDB.ConnectionString =CType(configurationAppSettings.GetValue("connDB.C onnectionString", GetType(System.String)), String)"
Is (without my permission) replaced into this:
"Me.connDB.ConnectionString="Provider=Microsoft.Je t.OLEDB.4.0;Data Source=J:\InetPub\wwwroot\Somesite\DBDir\NameOfDB. mdb;PersistSecurity Info=False""
It does happen not always, only sometimes and its veryannoying...
Any help and or suggestions would be greatly appreciated!!!
--------------------------------
From: Ronald Colijn
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>W2RFGJuyZ0WI9F98Ziliqg==</Id>