简体   繁体   English

删除时的JQuery-File-Upload 404错误

[英]JQuery-File-Upload 404 Error on Delete

I installed JQuery-File-Upload (and Backload) using NUGET into my VS2013 MVC 4.5.1 project. 我使用NUGET将JQuery-File-Upload(和Backload)安装到了VS2013 MVC 4.5.1项目中。

The file upload works great and I successfully uploaded 3 files. 文件上传效果很好,我成功上传了3个文件。

However, when I attempt to delete any of the files, nothing appears to happen on the page and Fiddler reports a 404 error. 但是,当我尝试删除任何文件时,页面上似乎什么都没有发生,并且Fiddler报告404错误。

Moreover, all the files exist and the folder and files within them have been set to EVERYONE with full control. 此外,所有文件都存在,并且其中的文件夹和文件已完全控制为所有人。

Also note, the message below specifies a path for backload's handler, but, the path doesn't exist ... should it? 另请注意,以下消息为backload的处理程序指定了一条路径,但是该路径不存在……应该吗?

C:\\Projects\\AustinTexasKarate\\Web\\Backload\\UploadHandler doesn't exist. C:\\ Projects \\ AustinTexasKarate \\ Web \\ Backload \\ UploadHandler不存在。

Below are the results from Fiddler. 以下是Fiddler的结果。

Note the error code: 0x80070002. 请注意错误代码:0x80070002。

Does anyone know why delete doesn't work on my system or could provide clues? 有谁知道为什么删除在我的系统上不起作用或无法提供线索? Did I miss something? 我错过了什么?

HTTP Error 404.0 - Not Found HTTP错误404.0-找不到

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. 您要查找的资源已被删除,名称已更改或暂时不可用。

Most likely causes: •The directory or file specified does not exist on the Web server. 最可能的原因:•Web服务器上不存在指定的目录或文件。 •The URL contains a typographical error. •URL包含印刷错误。 •A custom filter or module, such as URLScan, restricts access to the file. •自定义过滤器或模块(例如URLScan)限制对文件的访问。

Things you can try: •Create the content on the Web server. 您可以尝试以下操作:•在Web服务器上创建内容。 •Review the browser URL. •查看浏览器URL。 •Check the failed request tracing log and see which module is calling SetStatus. •检查失败的请求跟踪日志,并查看哪个模块正在调用SetStatus。 For more information, click here. 欲了解更多信息,请点击这里。

Detailed Error Information: 详细错误信息:

Module IIS Web Core IIS Web核心模块

Notification MapRequestHandler 通知MapRequestHandler

Handler StaticFile 处理程序StaticFile

Error Code 0x80070002 错误代码0x80070002

Requested URL 要求的网址
/Backload/UploadHandler?fileName=youth_lineup.jpg&uploadContext=C:%5CProjects%5CAustinTexasKarate%5CWeb%5Cfiles%5Cphotos /Backload/UploadHandler?fileName=youth_lineup.jpg&uploadContext=C:%5CProjects%5CAustinTexasKarate%5CWeb%5Cfiles%5Cphotos

Physical Path 物理路径
C:\\Projects\\AustinTexasKarate\\Web\\Backload\\UploadHandler C:\\ Projects \\ AustinTexasKarate \\ Web \\ Backload \\ UploadHandler

Logon Method Anonymous 登录方法匿名

Logon User Anonymous 登录用户匿名

Request Tracing Directory 请求跟踪目录
C:\\Users\\Roy\\Documents\\IISExpress\\TraceLogFiles\\WEB C:\\ Users \\ Roy \\ Documents \\ IISExpress \\ TraceLogFiles \\ WEB

More Information: This error means that the file or directory does not exist on the server. 更多信息:此错误意味着文件或目录在服务器上不存在。 Create the file or directory and try the request again. 创建文件或目录,然后重试该请求。 View more information » 查看更多信息»

Per the Backload FAQ , you can tweak your Web.config to enable DELETEs without 404ing: 根据Backload FAQ ,您可以调整Web.config以启用不带404处理功能的DELETE:

<system.webServer>
  <handlers accessPolicy="Read, Write, Execute">
      <remove name="WebDAV" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,POST,PUT,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,POST,PUT,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,POST,PUT,DELETE" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    ...
</system.webServer>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM