Sharepoint的 - 多文件上传 - HTTP“POST”动词不允许 [英] Sharepoint - Multiple document upload - HTTP 'post' verb not allowed

查看:168
本文介绍了Sharepoint的 - 多文件上传 - HTTP“POST”动词不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图上传任意数量的文件,包括非常小的文件,似乎succeed-但后来重定向到一个错误页面显示如下:

<$p$p><$c$c>/_layouts/error.aspx?ErrorText=The%20HTTP%20verb%20POST%20used%20to%20access%20path%20%27%2F%5Fvti%5Fbin%2Fshtml%2Edll%2FSiteCollectionDocuments%2FForms%2FUpload%2Easpx%27%20is%20not%20allowed%2E

用于访问路径/_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Uplo​​ad.aspx的HTTP谓词POST是不允许的。

任何想法,为什么HTTP POST将被拒绝此操作?

更新:

直接导航到/_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Uplo​​ad.aspx给出了:

XML页面无法显示
使用样式表无法查看XML输入。请更正错误,然后单击刷新按钮,或稍后重试。

这是无效字符在文本内容中发现。错误处理资源'的http://站点名称/ ...
MZ

在事件日志中的错误是这样的:

 严重错误已发生,但异常对象已经被清除当前URL:/_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Uplo​​ad.aspx
用户登录:XXXXXXX
用户进行身份验证:真性能计数器
%处理器时间总计:0
处理器队列长度:1
ASP.NET请求排队总计:1
.NET CLR例外,Exceps排名,抛出该异常:55PATH_INFO:/_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Uplo​​ad.aspx
PATH_TRANSLATED:C:\\ Program Files文件\\ Common Files文件\\ Microsoft共享\\ Web服务器Extensions \\ 12 \\ ISAPI \\ shtml.dll


解决方案

解决方案竟然是删除IIS中的通配符应用程序映射。

它通过HTTP POST / _ vti_bin / shtml.dll / SiteCollectionDocuments /表格/ Upload.aspx 已被错误地映射到 C:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\ ASPNET_ISAPI.DLL ,因而未能

更新:

此溶液趋向于破坏其它功能,如文件删除,并在测试期间被废弃。

事实证明,没有造成这个网址被错误处理的HTTP模块。我添加了一个旁路 / _ vti_bin / shtml.dll / SiteCollectionDocuments /表格/ Upload.aspx 这解决了这个问题,有没有副作用。

When attempting to upload any number of documents, including very small files, seems to succeed- but subsequently redirects to an error page indicating the following:

/_layouts/error.aspx?ErrorText=The%20HTTP%20verb%20POST%20used%20to%20access%20path%20%27%2F%5Fvti%5Fbin%2Fshtml%2Edll%2FSiteCollectionDocuments%2FForms%2FUpload%2Easpx%27%20is%20not%20allowed%2E

The HTTP verb POST used to access path '/_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx' is not allowed.

Any ideas as to why HTTP POST would be denied for this operation?

Update:

Navigating directly to /_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx gives:

The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

An invalid character was found in text content. Error processing resource 'http://sitename/... MZ

Error in event log looks like this:

Critical error has occured but the exception object has already been cleared

Current Url: /_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx
User Login: xxxxxxx
User is Authenticated: True

Performance Counters
% Processor Time Total: 0
Processor Queue Length: 1
ASP.NET Request Queued Total: 1
.NET CLR Exceptions, # of Exceps Thrown: 55

PATH_INFO: /_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx
PATH_TRANSLATED: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi\shtml.dll

解决方案

The solution turned out to be removing the wildcard application mapping in IIS.

The url which receives the document upload via HTTP POST /_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx was being incorrectly mapped to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll and thus failing.

Update:

This solution tended to break other functionality, such as document deletion, and was scrapped during testing.

As it turns out, there was an HTTP module that was causing this url to be processed incorrectly. I added a bypass for /_vti_bin/shtml.dll/SiteCollectionDocuments/Forms/Upload.aspx and this solved the issue with no side effects.

这篇关于Sharepoint的 - 多文件上传 - HTTP“POST”动词不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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