English 中文(简体)
在IIS 7.5上张贴表单(使用CPSHOST.DLL)时,是什么导致HTTP 405“无效方法(HTTP谓词)”错误
原标题:What causes an HTTP 405 “invalid method (HTTP verb)” error when POSTing a form (using CPSHOST.DLL) on IIS 7.5

我正在将一系列经典的ASP网页从Windows2000服务器迁移到Windows2008R2服务器。其中一个页面使用CPSHOST.DLL(位于Scripts文件夹中)将文件上载到服务器。

有问题的页面在表单上使用POST方法,但在页面运行时始终返回“method Not Allowed”响应。我已经将方法从小写更改为大写,并配置了ISAPI和CGI限制以允许cpshost.dll运行。

有问题的页面提示用户ID输入文件格式类型(有三种可能的选项)和文件名。表格标题如下:

<form enctype="multipart/form-data" method="POST" action="http://dcnb/scripts/cpshost.dll?PUBLISH?http://dcnb/scripts/dcn_cnam_repost.asp?user_id=jsommer&telco_code=GRGS" id=image_upload name=image_upload >

我尝试更改follwup.asp例程,以防它抛出错误,但没有什么不同(即,我更改了代码,调用了与repot.asp页面不同的网页,但没有效果。

详细的错误信息告诉我:

模块:StaticFileModule,通知:ExecuteRequestHandler,处理程序:StaticFile,错误代码:0x800700001。

请求的URL为:

http://dcnb/scripts/cpshost.dll?PUBLISH?http://dcnb/scripts/dcn_cnam_repost.asp?user_id=jsommer&telco_code=GRGS

物理路径列为c:\inetpubwwwrootdcnsccriptscpshost.dll,这是正确的。登录方法和登录用户都是匿名的。

如有任何帮助,我们将不胜感激。我四处寻找用于上传文件的纯ASP解决方案(以消除cpshost.dll的使用),但还没有找到一个适用于IIS7环境的解决方案。如果有人在那里有什么建议,我洗耳恭听。

提前感谢您所能提供的任何帮助。我很感激!

问题回答

当您请求页面时,可以尝试运行Process Monitor吗。请确认进程是否能够访问cpshost.dll。如果一切正常,您可以尝试运行失败的请求跟踪,以获得有关请求失败阶段的一些好信息。





相关问题
How to import excel file in web page useing Classic ASP?

We are trying to open an existing excel file (2003) from server location in a web page and save it again in the same location using following syntax. Set ExcelReportApp = CreateObject("Excel....

What s the best method to do paging in my ASP page

What s the best method to do paging in my ASP page when displaying a list of items? I knew that there is no equivalent to MySQL s LIMIT clause present in SQL Server, either 2000 or 2005. How can I ...

Using Classes in a Dictionary in Classic ASP

I usually do C# but have inherited a classic ASP project. I have defined a class: Class clsPayment Public Name End Class Set objPayment = New clsPayment objPayment.Name = "...

Response.Redirect HTTP status code

Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently") would be more appropriate?

form inside form serialize problem

I am trying to submit a form inside another form because I will need first form s outcome in the second form. I tried using form serialize as advised in some other threads. Problem here is, I dont ...

热门标签