blueimp文件upload.net- 405方法不允许发布 [英] blueimp file upload.net- 405 method not allowed issue

查看:106
本文介绍了blueimp文件upload.net- 405方法不允许发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



首先,我的英语对此并不是很抱歉。然后我尝试将blueimp jquery upload.net实现到我的web应用程序中,将示例项目文件复制到我的项目,但我无法做到这一点,因为删除上传对象时,http 405-method不允许出现问题。之后打开新的Web应用程序项目并将示例项目文件复制到此项目但得到相同的错误。我不明白问题。新开的项目很清楚。没有额外的类或没有额外的引用只复制配置文件的所有文件



我在哪里缺少?这两天我很难解决这个问题。

解决方案

上传文件你可以访问这篇文章,它非常简单,工作顺利。



进行ASP.NET文件上传栏 [ ^ ]


okey我通过在我的配置文件中添加以下代码来解决问题



 <   system.webServer  >  
< modules >
< remove name = WebDAVModule / >
< / modules >
< 处理程序 accessPolicy = 读取,写入,执行,脚本 >
< remove 名称 = StaticFile / >
< remove 名称 = SimpleHandlerFactory-ISAPI-2.0 / >
< remove 名称 = WebDAV / >
< 删除 name = SimpleHandlerFactory-Integrated-4.0 / >
< remove name = SimpleHandlerFactory -Integrated / >
< add 名称 = SimpleHandlerFactory-Integrated path = * .ashx 动词 = GET,HEAD,POST ,DEBUG,PUT,DELETE type = System.Web.UI.SimpleHandlerFactory resourceType = 未指定 requireAccess = preCondition = integratedMode / >
< add name = SimpleHandlerFactory-Integrated-4.0 路径 = * .ashx 动词 = GET,HEAD,POST,DEBUG ,PUT,DELETE type = System.Web.UI.SimpleHandlerFactory resourceType = 未指定 requireAccess = precondition = integratedMode,runtimeVersionv4.0 / >
< ; add name < span class =code-keyword> = SimpleHandlerFactory-ISAPI-2.0 < span class =code-attribute> path = * .ashx 动词 = GET,HEAD,POST,DEBUG,PUT,DELETE modules = IsapiModule scriptProcessor = %windir%\ Microsoftoft.NET\Framework\v2.0.50727\aspnet_isapi.dll resourceType = 未指定 requireAccess = 脚本 preCondition = classicMode,runtimeVersionv2.0,bitness32 responseBufferLimit = 0 / >
< add 名称 = < span class =code-keyword> StaticFile path = * 动词 = GET,HEAD,POST,DEBUG,PUT,DELETE modules = StaticFileModule,DefaultDocumentModule,DirectoryListingModule resourceType = requireAccess = 读取 / >
< / handlers >
< 安全 >
< 授权 >
< 删除 < span class =code-attribute> users = * role = 动词 = / >
< < span class =code-leadattribute> add accessType = 允许 用户 = * 动词 = GET,HEAD,POST,PUT,DEL ETE,DEBUG / >
< / authorization > ;
< / security >
< / system.webServer >


Hi everybody

First my english not very well sorry about this. Then i tried to implement blueimp jquery upload.net to my web application in the way copy example project files to my project but i can't do this because http 405-method not allowed problem when delete uploaded object. After that open new web application project and copy example project files to this project but get same error. I don't figure out problem. The newly opened project is clear. No extra classes or no extra references only copy all files with config file

Where am i missing? I am struggle with this problem for two days.

解决方案

For uploading file you can visit this article it is very simple and working smoothly.

ASP.NET File Upload with Progress Bar[^]


okey i solve problem with add below code to my config file

<system.webServer>
  <modules>
    <remove name="WebDAVModule" />
  </modules>
  <handlers accessPolicy="Read, Write, Execute, Script">
    <remove name="StaticFile" />
    <remove name="SimpleHandlerFactory-ISAPI-2.0" />
    <remove name="WebDAV" />
    <remove name="SimpleHandlerFactory-Integrated-4.0" />
    <remove name="SimpleHandlerFactory-Integrated" />
    <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode" />
    <add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Write" preCondition="integratedMode,runtimeVersionv4.0" />
    <add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
    <add name="StaticFile" path="*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
  </handlers>
  <security>
    <authorization>
      <remove users="*" roles="" verbs="" />
      <add accessType="Allow" users="*" verbs="GET,HEAD,POST,PUT,DELETE,DEBUG" />
    </authorization>
  </security>
</system.webServer>


这篇关于blueimp文件upload.net- 405方法不允许发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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