2010-01-07 66 views
0

我想將我的.NET webservice部署到提供程序(somee.com)上。我發佈了web服務並將該文件夾複製到託管站點。我也複製了我的App_data文件夾。我可以訪問服務網頁。但是,當試圖訪問該網站時,我收到以下錯誤。我的本地機器上有sqlserver express。SQL錯誤26 =錯誤locatig服務器。 ASP.NET

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我應該改變我的web.config文件。

請幫

+0

Web服務器是否安裝了SQL Server? – SLaks 2010-01-07 23:07:45

+0

是的,安裝了sql server – Jacob 2010-01-07 23:16:19

回答

0

您必須修改您的ASP應用程序使用由somee爲您提供的數據庫(見http://somee.com/MSSqlDefault.aspx),而不是一個在app_data文件。您還需要上傳您的部署腳本並配置somee提供的數據庫,然後才能開始運行ASP應用程序。