Web部署仅在VS2012中导致“请求"过长 [英] Web deploy results in Request too long only in VS2012

查看:236
本文介绍了Web部署仅在VS2012中导致“请求"过长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

花了很多时间在IIS 7.5上配置Web部署.我确保已安装了具有所有功能的Web Deploy 3.5,并且Web Management Service和Web Deployment Agent都在运行.

Spent quite a bit of time configuring web deploy on IIS 7.5. I've made sure that Web Deploy 3.5 was installed with all features, and that both the Web Management Service and Web Deployment Agent is running.

在Visual Studio中,我可以使用发布向导并验证与服务器的连接.另外,我可以在最后一步单击预览"以查看文件列表.如果我只选择要发布的文件,它会像正常情况一样启动该过程,然后挂起.

In Visual Studio I'm able to use the publishing wizard and validate my connection to the server. Additionally I can click on 'preview' on the last step to see a list of files. If I choose only one to publish it kicks off the process like normal and then hangs.

Web deployment task failed. (Web Deploy experienced a connection
problem with the server and had to terminate the connection.Learn more at: 
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.)

使用Wireshark,这是我开始部署后对话的结束

Using Wireshark here's the end of the conversation once I started the deploy

<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Request Too Long</h2>
<hr><p>HTTP Error 400. The size of the request headers is too long.</p>
</BODY></HTML>

已发送的请求标头长度为18846个字符.

The request header length that was sent was 18,846 characters.

我也一直在这里尝试一切都没有运气. Visual Studio 2010 Web部署任务失败

I've also been trying everything in here with no luck. Visual Studio 2010 Web deployment task failed

更新: 这是已发送请求的开始:

Update: Here's the beginning of the request that was sent:

OST /MSDEPLOYAGENTSERVICE HTTP/1.1
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 9.0.1762.0
MSDeploy.RequestUICulture: en-US
MSDeploy.RequestCulture: en-US
Version: 9.0.0.0
MSDeploy.Method: Sync
MSDeploy.RequestId: 5686a2d6-a28a-4a0e-80bb-3c3c92369c85
MSDeploy.sid: 414bbf3d-22d7-413f-b235-f28c01face66
User-Agent: Unknown;sid=414bbf3d-22d7-413f-b235-f28c01face66;op=Sync
MSDeploy.PassId: 1
Content-Type: application/msdeploy
MSDeploy.ProviderOptions: H4sIAAAAAAAEA....

更新2: 尝试在VS2013中发布,它的魅力十足.

Update 2: Tried publishing in VS2013 and it worked like a charm..

推荐答案

通过将服务器更改为 https://myserver.com来解决而不是 http://myserver.com

Solved by changing the server to to https://myserver.com instead of http://myserver.com

这篇关于Web部署仅在VS2012中导致“请求"过长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆