Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection string in Web.Config
Message
From
04/07/2007 09:11:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Connection string in Web.Config
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01237732
Message ID:
01237732
Views:
63
I am trying to use Access data in a web application. I get an error trying to navigate to the website once all the precompiled files are up.

First the error message isn't very helpful as it suggests my web.config file has the following setting:
" customErrors mode = "Off" " and suggesting it should be:
" customErrors mode = "RemoteOnly" defaultRedirect = "MyCustomErrorPage.aspx" "

My Web.config file does not have this set to off so why do I get this message?

The real problem I think is the connection string for Access. The obvious problem is I have this in the "value=" section

source=C"\DevelopWebs\.........etc.

I have the access table SWHT.mdf in the App_Data folder under the root of the website. Can I just simply change it to this?
source=\App_Data

I tried this and it didn't fix my problem, so perhaps I have another issue, but need to verify it is OK to set it up this way.
Thanks
Tim
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform