gpt4 book ai didi

visual-studio - Visual Studio 2013.3 通过 Web 部署验证连接发布到 azure 网站失败,没有错误代码

转载 作者:行者123 更新时间:2023-12-03 01:54:26 25 4
gpt4 key购买 nike

在 Visual Studio 2013.3 中,我创建了一个测试 .Net 4.5 C# MVC 5 项目以在 Azure 网站中运行。我创建了一个新的 Azure a/c 并在 VS 中登录到它。当我尝试发布项目(以管理员身份运行 VS)时,验证连接失败,没有错误代码。我已从 Azure 重新下载发布设置,以确保我拥有正确的发布设置。我收到的消息是:(2014-10-27 11:04:13) 在远程计算机上处​​理请求时发生错误。服务器在处理请求时遇到问题。请联系服务器管理员以获取更多信息。

当我尝试发布项目时,我收到以下消息:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270,5): Error : Web deployment task failed. ((2014-10-27 11:06:25) An error occurred when the request was processed on the remote computer.)

(2014-10-27 11:06:25) An error occurred when the request was processed on the remote computer. The server experienced an issue processing the request. Contact the server administrator for more information. Publish failed to deploy.

我已通过 MS Web Plaform Installer 5 安装了最新的 Azure SDK for Visual Studio 2013 2.4.1。在线 Azure 管理页面显示正在运行的默认网站。我运行的是 Windows 8.1。

我注意到的一件事是,如果我在发布设置中更改站点名称,我会得到:

Could not connect to the remote computer [...] The Remote name could not be resolved.

此外,当我尝试 ping 远程 url 即 [sitename].scm.azurewebsites.net:443 时,它超时了,但是,我可以通过浏览器访问它。

[更新]通过将输出更改为详细,我收到以下消息:

(2014-10-27 12:28:01) An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information.
at Microsoft.Web.Deployment.AgentClientProvider.GetHttpResponse(HttpWebRequest request)
at Microsoft.Web.Deployment.AgentClientProvider.PerformHeadRequestHelper(Boolean getVersionInfo, Version& maximumSupportedVersion, Version& minimumSupportedVersion)
at Microsoft.Web.Deployment.AgentClientProvider..ctor(DeploymentProviderContext providerContext, DeploymentBaseContext baseContext, String serverVersion)
at Microsoft.Web.Deployment.DeploymentManager.CreateObjectPrivate(DeploymentProviderContext providerContext, DeploymentBaseOptions baseOptions, DeploymentObject sourceObject, String serverVersion)
at Microsoft.Web.Deployment.DeploymentManager.CreateDestinationObject(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentObject sourceObject, String serverVersion)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
at CallSite.Target(Closure , CallSite , Object , Object , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Web.Publishing.Tasks.VSMSDeployObject.SyncTo(VSMSDeployObject destObject, Object syncOptions, IVSMSDeployHost _host)
at CallSite.Target(Closure , CallSite , VSMSDeployObject , VSMSDeployObject , Object , IVSMSDeployHost )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Web.Publishing.Tasks.BaseMSDeployDriver.InvokeMSdeploySync()
at Microsoft.Web.Publishing.Tasks.VSMSDeployDriverInCmd.StartSync()
at Microsoft.Web.Publishing.Tasks.BaseMSDeployDriver.SyncThruMSDeploy()
at Microsoft.Web.Publishing.Tasks.VSMSDeploy.Execute()
VSMSDeploy: Publish failed to deploy.
Done executing task "VSMSDeploy" -- FAILED.

提前非常感谢。会

最佳答案

我在尝试发布 Azure 移动服务时遇到了类似的问题。最后,我通过使用带有 -verb:delete 参数的 MSDeploy.exe 成功解决了这个问题。我无法为您提供适合您的情况的确切命令行,但就我而言,我已从 Azure 管理门户下载了 .publishsettings 文件,然后运行了以下命令:

set MSDeployPath=C:\Program Files\IIS\Microsoft Web Deploy V3\
"%MSDeployPath%"\msdeploy.exe -verb:delete -dest:ContentPath=<site name here>,PublishSettings=<path to downloaded .publishsettings file here>,AuthType='Basic'

如果没有 .publishsettings 文件,您就必须处理详细参数:计算机名、用户名和密码。

运行上述命令后,我可以从 VS 发布我的移动服务。

关于visual-studio - Visual Studio 2013.3 通过 Web 部署验证连接发布到 azure 网站失败,没有错误代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26584780/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com