2011-07-18 56 views
0

我將嘗試解釋我的問題。導致Web配置加載類型錯誤的虛擬目錄映射

作爲我們學習管理系統的一部分,安全功能是,在登錄時,我們創建一個虛擬目錄,然後保存映射到我們內容的虛擬目錄,從而只允許個人訪問在商業邏輯。

我們的內容符合scorm,實質上是一段學習內容,其中包含了它需要運行的所有內容。這是HTML頁面的形式。因此,爲了運行內容,我必須使用iframe。

我遇到的問題是,iframe中加載好下手,但是當我通過AJAX發送一個新的鏈接,我會在我的自定義角色提供指向一個web.config錯誤;

Event code: 3008 
Event message: A configuration error has occurred. 
Event time: 7/18/2011 3:17:31 PM 
Event time (UTC): 7/18/2011 2:17:31 PM 
Event ID: 2c1fa37e609746ff8ec3a9e305a2769b 
Event sequence: 3 
Event occurrence: 1 
Event detail code: 0 
Application information:  
Application domain: /LM/W3SVC/2/ROOT/vCont-10-129554722508037456  
Trust level: Full  
Application Virtual Path: /vCont  
Application Path: ..\learninglounge.com.solar.restricted\  
Machine name: NAVSERVER 
Process information:  
Process ID: 6808  
Process name: w3wp.exe  
Account name: NT AUTHORITY\NETWORK SERVICE 
Exception information: 
Exception type: System.Configuration.ConfigurationErrorsException  
Exception message: Could not load type 'learninglounge.com.solar.datastore.loungeRoles'. (..\web.config line 53) 
Inner exception information (level 1):  
Exception type: System.Web.HttpException  
Exception message: Could not load type 'learninglounge.com.solar.datastore.loungeRoles'. Request information:  
Request URL: http://navserver/vCont/fc7b7a04-df84-40df-8d31-b3a4d526763a/2063654718-My-first-scorm/shared/launchpage.html?content=playing  
Request path: /vCont/fc7b7a04-df84-40df-8d31-b3a4d526763a/2063654718-My-first-scorm/shared/launchpage.html  
User host address: fe80::e51d:5910:556e:aac4%10  
User: Is authenticated: False  
Authentication Type: 
Thread account name:Admin 
Thread information:  
Thread ID: 8  
Thread account name: Admin  
Is impersonating: True  
Stack trace: at System.Web.Security.Roles.Initialize() at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

所請求的URL的VCONT部分是我使用所有的虛擬目錄存儲在我的應用程序的虛擬應用程序。我可以在iis中看到v-dirs被正確創建並且有內容路徑。

我知道它與虛擬目錄有關,因爲如果我在我的應用程序中創建一個文件夾並硬編碼它的路徑,它應該如此。

作爲一個虛擬目錄需要一個物理路徑,我將它映射到一個名爲drive的文件夾:.. \ learninglounge.com.solar.restricted。所有內容都存儲在驅動器中:.. \ learninglounge.com.content。我甚至嘗試將vCont的物理路徑設置爲具有相同問題的此目錄。

任何人都可以幫我嗎?

回答

0

我發現答案是與IIS7集成管道做。

我改變了VCONT頂級虛擬應用程序,以經典管道模式和正常工作。

相關問題