2013-04-25 84 views
-1

我有我的IIS的web應用程序,我在尋找:IIS服務器將不加載web應用程序

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

,我有一個域名,我瀏覽到的網頁與此:

www.mydomain.com/Test/web.aspx 

,我希望能夠在頁面不帶域也連接:

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

當我與域瀏覽我得到的頁面,但磨片ñ我嘗試與我得到的IP地址:

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 

任何想法,爲什麼我不能得到頁面?

回答

2

blabla是網站指向的目錄,這就是爲什麼/Test/web.aspx有效。您需要安裝一個虛擬目錄以指向默認網站上的blabla,以便使第二個URL請求生效。只需在網址中指定網站名稱即可。

默認網站正在拾取目錄/blabla/Test/Web.aspx,但其用於動態編譯的bin目錄是默認網站的主目錄,而不是www.mydomain.com網站。

+0

這是我需要在IIS服務器或網絡代碼中做的事情嗎? – MTA 2013-04-25 13:20:14

+0

在服務器上。將虛擬目錄添加到默認網站,然後進行設置。 – Josh 2013-04-25 13:20:51

相關問題