0

i have created a vs 2008 solution that contain 3 projects i.e.

1. BLL

2. DAL

3. GUI (Website)

Language used C#

I have add references & connect it through vs 2008 inbuilt sql server & it is working fine on

localhost but when i upload it on internet it is giving error in web.config file i.e. customerrors.

Plz suggest some solution or there is a different way to do it.

thanks

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by deepanbecse
0

You question is not complete. First, what connection string you are giving when deploying your site on server? Is it same on local? Turn on custom error mode in web.config and see the exact error.

<customErrors mode="on"/>

0

Hi Vishul,
The connection string used may represent your database in the local system, So there would be an error.
Better use the Datadictionary to represent the path of the Database
Example:

<connectionStrings>
    <add name="systemLoginDB" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|loginDetails.mdb;Persist Security Info=True"/>
    </connectionStrings>

.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.