HTTP 403将表单数据提交到url重写的网页

时间:2013-02-20 16:13:51

标签: c# asp.net url-rewriting

我目前正在开发一个使用web.config中的规则重定向的网站:

<rule>
   <url>profiels/set(.*).html</url>
   <rewrite>profielen.aspx?id=$1</rewrite>
</rule>

如果您请求网址:“/ profiels/set1.html”网页工作正常。

但现在问题是:在重定向的网页上,有一个表格将信息发布到同一个网页:

<form action='/profiels/set1.html' method='post'>
    <select name='provincie'>
       <option value='' selected='selected'></option>
       <option value='ZH' selected='selected'></option>
       <option value='NH' selected='selected'></option>
    </select>
    <input type='submit' name='pl' value='zoeken' />
</form>

在开发时,这就像一个魅力,但是一旦我将它上传到服务器,在提交下拉值后页面就会出现此错误:

The page cannot be displayed

You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please try the following:

Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

有人有个主意吗?

IIS配置已设置为“Scripts and Executables”。

0 个答案:

没有答案