ASP MVC应用程序中的404错误

时间:2022-11-29 15:41:20

My folder structure looks like this:

我的文件夹结构如下所示:

main
 |
 ———site1
 |
 ———site2
 |
 ———site3
 |
 ———common

site1.com points to main/site1, site2.com points to main/site2, and site3.com points to main/site3. I am using IIS 6.

site1.com指向main / site1,site2.com指向main / site2,site3.com指向main / site3。我正在使用IIS 6。

The main folder is an application that runs on the DefaultAppPool (.NET 2.0 framework). I created another app pool for the common folder so it now runs on .NET 4.0. I have configured the urls so that site1.com/common, site2.com/common, and site3.com/common would point to the common folder. It works perfectly for site1 and site2. However, it produces a 404 error (page not found) for site3. The only difference is that site1 and site2 use any of the unassigned ip addresses, while a static ip address is configured for site3.

主文件夹是在DefaultAppPool(.NET 2.0框架)上运行的应用程序。我为公共文件夹创建了另一个应用程序池,因此它现在可以在.NET 4.0上运行。我已配置网址,以便site1.com/common,site2.com/common和site3.com/common指向公共文件夹。它适用于site1和site2。但是,它会为site3生成404错误(找不到页面)。唯一的区别是site1和site2使用任何未分配的IP地址,而为site3配置静态IP地址。

What may be the cause of the 404 error on site3?

可能是site3上404错误的原因是什么?

1 个解决方案

#1


0  

There can be a security issue when you used static ip for site3. Create a virtual directory in site3 to locate common folder. It will allow you access common within site3.

使用static ip for site3时可能存在安全问题。在site3中创建一个虚拟目录以查找公用文件夹。它允许您访问site3中的common。

#1


0  

There can be a security issue when you used static ip for site3. Create a virtual directory in site3 to locate common folder. It will allow you access common within site3.

使用static ip for site3时可能存在安全问题。在site3中创建一个虚拟目录以查找公用文件夹。它允许您访问site3中的common。