IIS6:使用ASP.NET网站作为ASP Classic网站中的虚拟目录. [英] IIS6: Using a ASP.NET website as a Virtual Directory in a ASP Classic website.

查看:52
本文介绍了IIS6:使用ASP.NET网站作为ASP Classic网站中的虚拟目录.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在C#ASP.NET中开发了一个小型应用程序,该应用程序必须在IIS6服务器上的ASP经典网站的虚拟目录中运行.像这样:

+-www.somesite.com:ASP Classic网站的IIS根.
+-www.somesite.com/newsite:新ASP.NET网站的虚拟目录.

现在,如果我在服务器的浏览器中请求"www.somesite.com/newsite",则会显示:

Hi,

I have developed a small application in C# ASP.NET which has to run in a virtual directory of a ASP classic website on a IIS6 server. Like this:

+- www.somesite.com: IIS Root of the ASP Classic site.
+- www.somesite.com/newsite: Virtual Directory to the new ASP.NET site.

Now if I request "www.somesite.com/newsite" in the browser of the server, it says:

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. 



但是:在虚拟目录的当前web.config中,



BUT: The section:

<customErrors mode="Off"/>

部分已设置为OFF.并且在父目录中没有web.config文件,因为它是ASP经典网站.

我查看了服务器的错误日志,发现关于安全设置不适用于服务器的错误:

is already set to OFF in the current web.config of the virtual directory. AND there are no web.config files in the parent directory(''s), because it is a ASP classic website.

I''ve looked in the error log of the server and found a error about the security settings not being right for the server:

Failed to start monitoring changes to ''D:\Websites\www.somesite.com\web.config'' because access is denied. 

Application virtual path: ''/newsite''.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


因此,我将虚拟目录文件夹的安全设置更改为与当前ASP Classic网站相同.没有工作.

有人可以帮忙吗?


So I changed the security settings of the folder of the virtual directory to be the same as the current ASP Classic website. Didn''t work.

Can anyone help?

推荐答案

有人将服务器复制到了另一个IP地址.所以我更新了错误的服务器.哎呀...
Somebody else copied the server to a different IP adres. So I was updating the wrong server. Oeps...


这篇关于IIS6:使用ASP.NET网站作为ASP Classic网站中的虚拟目录.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆