Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection string in Web.Config
Message
De
04/07/2007 09:11:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Connection string in Web.Config
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01237732
Message ID:
01237732
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform