我们在Server2003上使用IIS6。我们有几个使用经典ASP的网站。现在我们有一个使用ASP.NET的网站,这个asp.net网站和经典的asp网站在同一台服务器上。
直到最近,我们的用户都有他们的书签(我们有很多用户都有书签)
http://www.myasp.com/weather和http://www.myasp.com/weather/default.asp将加载。
在利用IIS6在服务器2003上创建该ASP.NET ("http://www.myNet.com/weatherNet")网站之后,
用户转到(典型的asp) http://www.myasp.com/weather,他们得到错误消息:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>当用户输入"http://www.myasp.com/weather“或将其加入书签时,如何加载经典的asp "http://www.myasp.com/weather/default.asp”?
另外,如何使"http://www.myNet.com/weatherNet“加载(ASP.NET) "http://www.myNet.com/weatherNet/default.aspx"?
我检查了IIS和ASP已经被允许,并且ASP.Net v4.0.30319被允许。
发布于 2013-06-25 21:29:20
您需要在IIS上为该网站/虚拟目录设置default.asp(x)页面。
详情如下:
设置或更改默认的document
因此,添加default.asp(x)页面作为默认文档就可以了。
发布于 2013-06-27 22:26:41
看起来你的"default.aspx“页面比"default.asp”页面更受欢迎。在IIS的默认文档选项卡中,删除所有文档名称,只添加"default.asp“。重新启动IIS,然后重试。
这些设置也可以在IIS中的文件夹/应用程序级别进行。只是你需要为每个文件夹重复这个过程,将"default.asp“或"default.aspx”设置为你的默认文档。
https://stackoverflow.com/questions/17298368
复制相似问题