2013-03-18 86 views
0

我瘋了!我希望你能幫助我一個建議。在Visualstudio中運行存儲在網絡驅動器上的Web應用程序

Inside Virtualbox我運行Windows Server 2008 R2。在這臺機器上,我嘗試調試Visualstudio 2010中的web應用程序.webbapplication存儲在網絡驅動器上。 那麼網絡驅動器真的是我的硬盤的一個分區。由於共享文件夾,虛擬機會將其識別爲網絡驅動器,但在我看來,我並不關心實際問題。

當我嘗試啓動applition一個獲得類似這樣的錯誤:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'E:\Testing\In Work\5.1 SP1\SitefinityWebApp'.

Source Error:

[No relevant source lines]

Source File: E:\Testing\In Work\5.1 SP1\SitefinityWebApp\web.config Line: 0

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034

我媒體鏈接嘗試使用通過caspol得到fulltrust到應用程序如下:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\CasPol.exe -m -ag 1 -url "file:////\\VBOXSVR\d_drive\Testing\In Work\5.1 SP1\SitefinityWebApp*" FullTrust -exclusive on 

或本

C:\Windows\Microsoft.NET\Framework\v4.0.30319\CasPol.exe -machine -addgroup All_Code -url "E:\Testing\In Work\*" FullTrust 

但沒有什麼幫助!

有沒有人解決?

p.s. 如果我在虛擬硬盤上運行相同的項目,它工作正常!

回答

0

似乎網絡驅動器不能被Windows監控用於像本地驅動器那樣的文件更改,所以事實上它關係到您放置源代碼的位置,以便您的WebApp可以在更改時自動重新加載 - here可能但可能已過時解決方案給出。

相關問題