-1

I have a web application in my iis and i locate in :

C:\inetpub\wwwroot\blabla\Test\Web.aspx

And i have a domain , that i browse to the web page with this:

www.mydomain.com/Test/web.aspx

And i want to be able to connect the page without the domain too:

http://123.123.8.78/blabla/Test/Web.aspx

When i browse with the domain i get the page but when i try with the IP address i get:

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'App.Web'.

Source Error:


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Web.aspx.cs" Inherits="App.Web" %>


Source File: /blabla/test/web.aspx    Line: 1 

Any idea why i can't get the page?

4

1 回答 1

2

blabla 是网站指向的目录,这就是 /Test/web.aspx 起作用的原因。您需要在默认网站上安装一个指向 blabla 的虚拟目录,以便第二个 URL 请求能够正常工作。仅在 URL 中指定站点名称是行不通的。

默认网站选择目录 /blabla/Test/Web.aspx,但它用于动态编译的 bin 目录是默认网站的主目录,而不是 www.mydomain.com 站点。

于 2013-04-25T13:18:59.983 回答