开发者

how to connect sqldatasource in asp dot net with .mdf file in hosting server

开发者 https://www.devze.com 2023-04-01 16:10 出处:网络
I am new in asp net . I have created a website i开发者_运维百科n asp dot net i want it to be connect through mdf file(tradingcalls.mdf) to my website .

I am new in asp net .

I have created a website i开发者_运维百科n asp dot net i want it to be connect through mdf file(tradingcalls.mdf) to my website .

I want it to connect the mdf file contain in the App_Data folder in my hosting server

I am using this connection string for my database to be connect

I am getting error when i am using this string

The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty.

You can check this link by checking this you would understand the error ,

http://www.mcxnsecalls.com/insert-calls.aspx

Can anyone help me from getting out of this

There would be a great appreciation if someine could help me.

Thanks In Advance.


That means that you have an error in the way you put the connection string in your web.config. Please post the relevant section of the web.config in here. The connection string should have the name "ConnectionString" like in the example below:

    <connectionStrings>
        <add name="ConnectionString" connectionString="yourConnectionString" providerName="System.Data.SqlClient" />
    </connectionStrings>

Update: as I said above, looking at your web.config I can see that you have to change the name of your connection string from "trdagingcallsConnectionString2" to "ConnectionString"

0

精彩评论

暂无评论...
验证码 换一张
取 消