2016-11-15 118 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/ –