我嘗試上傳website.I不知道如何配置上傳時間的數據庫(web.config文件)。我使用Somee.com,任何熟悉somee.com的人或知道如何配置數據庫請幫助我。無法上傳服務器上的網站
webconfig文件代碼
<configuration>
<connectionStrings>
<add name="abc" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Jai-Ganesh\Documents\Visual Studio 2010\WebSites\testinmg\App_Data\Database.mdf;Integrated Security=True;User Instance=True"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="RemoteOnly" ></customErrors>
</system.web>
</configuration>
注:我不知道什麼是服務器中的數據源的路徑。
鏈接頁面: [http://www.imureditor.somee.com/add_value.aspx] [1]
thnx Dotnetdreamer ....但有同樣的問題,他們提供此連接字符串; ;工作站ID = testtest.mssql.somee.com;數據包大小= 4096;用戶ID = vmagic089_SQLLogin_1; pwd = hmeq8v2nro;數據源= testtest.mssql.somee。 com; persist security info = False; initial catalog = testtest – 2013-03-05 06:33:13
thnx Mr.DotNet Dreamer help.i解決了這個問題。更多的事情,我必須知道我怎樣才能將我的數據庫上傳到不同的服務器。 – 2013-03-05 10:19:15
你必須先備份你的數據庫然後恢復它。或者生成一個sql文件並在服務器上執行它。或者試試youtube.com – 2013-03-05 10:31:32