2016-11-15 116 views
0

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) TESTS FAILED!需要幫助:SQL Server實例名稱錯誤的Plesk主機服務器

Please see the picture

我怎樣才能解決這個問題,並告訴我如何上傳我的ASP.NET MVC(4.5版本)這個服務器,因爲我上這個託管服務器是新手。

+0

請幫我,我打 – Savvy

回答

0

檢查SQL Server實例名稱應該是這樣的:。

  • \ SQLSERVER
  • \ MSSQLSERVER2012
  • \ MSSQLSERVER2014

您可以在Plesk中數據庫頁面發現:

Plesk Microsoft SQL server connection

的Plesk網絡部署設置:

Plesk web deploy IIS

enter image description here

此按鈕給你的FTP設置文件到您的發佈工具與內容,如:

<?xml version="1.0"?> 
<publishData><publishProfile profileName="domain.tld - Web Deploy" publishMethod="MSDeploy" publishUrl="domain.tld" msdeploySite="domain.tld" userName="ftp1" destinationAppUrl="http://domain.tld" controlPanelLink="http://10.52.58.17:8880"/></publishData> 
+0

謝謝@OlegNeumyvakin,現在的消息是:成功:建立連接。斷開與服務器的連接。測試已成功完成!請告訴我如何在連接建立後在Plesk上用SQL數據庫顯示我的ASP .NET MVC站點。 – Savvy

+0

那麼它取決於您開發應用程序的方式,Plesk爲您提供FTP訪問以在服務器上上傳您的應用程序文件。我認爲你需要搜索或創建關於在共享主機上部署應用程序的單獨問題。 –

+0

@MuhammadAmir Plesk也可以提供Web Deploy發佈設置的文件,但它只是您的網站的FTP設置。這裏很好的指導:http://windowswebhostingreview.com/how-to-publish-using-web-deploy-with-plesk-control-panel/ –