如题:
系统是2000.程序在2003下运行没问题.
首页中放置了个搜索新闻的东西.
访问地址是http://localhost/时,每次点搜索时就出现"HTTP 405 - 资源被禁止"
但是输入直接的地址:http://localhost/index.aspx时就没有问题.
权限设置过了.就是不知道为什么没有直接输入所在的网址网页就有这种问题发生??
系统是2000.程序在2003下运行没问题.
首页中放置了个搜索新闻的东西.
访问地址是http://localhost/时,每次点搜索时就出现"HTTP 405 - 资源被禁止"
但是输入直接的地址:http://localhost/index.aspx时就没有问题.
权限设置过了.就是不知道为什么没有直接输入所在的网址网页就有这种问题发生??
解决方案 »
- GridView添加CheckBox控件实现多选删除,有问题,求教?
- 框架套嵌问题,请大家帮忙!!!!! 急!!!!!!!!
- ajax错误
- 怎样在DropDownList中指定位置插入一个options
- 如何将ASPX的所有控件(服务器控件、客户端控件)解析出来并动态转换成HTML控件,在一个HTML文件中表现出来?
- 请问2003中的session_out 事件在VS2005中跑哪里去了
- VS2005 如何连接 SQL Server 2000?
- 自定义组件参数问题?
- 如何判断非主键字段是否重复的问题
- 怎么判断服务器是否有 “创建目录”的权限?
- 请问Image控件如何缩图?
- 一个页面效果实现的问题?
IIS中该网站文件的属性->执行权限,权限设置一下,把"无"改成其他两种
http://localhost/
http://localhost/index.aspx
其实这两个文件都一样.但是我提交搜索时就一个出现"HTTP 405 - 资源被禁止"一个正常..郁闷啊~~是不是2000就有这个问题?我在2003都不会有这种问题
你所说的问题应该是这个问题
?
这是因为iis里没有.htm的映射,默认只允许get.要 post,则按照下面的做法添加映射Go to "Control Panel"-"Administrative Tools"-"Internet Information Services".
Expand the tree to "COMPUTERNAME"-"Web Sites"-"Default Web Site".
Right-click on "Default Web Site" and select "Properties". (Alternately, select "Default Web Site" and press Alt+Enter.)
Select the "Home Directory" tab.
Click the "Configuration" button.
From the "Mappings" tab, select the "Add" button.
Click the "Browse..." button, choose "Dynamic Link Libraries *.dll" from the "Files of Type" dropdown, and select c:\WINDOWS\System32\inetsrv\asp.dll.
Type ".html" (without quotes) in the "Extension" box.
Select the "Limit to:" radio button, and type in "GET, POST" (without quotes) in the box next to it.
Click the "OK" button and close all the dialogs. (If the "OK" button is greyed out, then make sure all the entries are correct and try clicking in the file name box.)
参见
http://www.somacon.com/p126.php
请问这个的作用是什么?
我用的是.ASPX的文件.需要.HTM的映射吗?
还有.我之前所说的
http://localhost/
http://localhost/index.aspx
这两个都是同一个文件.结果使用http://localhost/这个时.查询出来的结果就是"HTTP 405 - 资源被禁止"
如果我是使用http://localhost/index.aspx查询出来的结果是没有问题的.
我在WIN2003系统下执行两个都没有问题.在2000下就出了这个问题.