在虚拟目录中部署ASP MVC

时间:2014-01-29 14:22:57

标签: asp.net asp.net-mvc iis web-deployment

我有现有的Silverlight应用程序,可用作IIS应用程序。我需要在虚拟目录中部署ASP MVC应用程序作为其中的一部分(不要问我为什么),而不是像新的IIS应用程序。 我使用IIS 6。 我在现有的iis应用程序中创建新的虚拟目录,并使用ASP项目文件夹的路径作为此虚拟目录的物理路径。但我得到错误

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 'C:\Users\Alina\Desktop\MVCApp' because 
access is denied.

Source Error: 
[No relevant source lines] 

是否可以在虚拟目录中部署ASP MVC应用程序? 怎么做对了?

1 个答案:

答案 0 :(得分:1)

是的,那应该是可能的。我猜你的部署过程正在运行的任何服务帐户,因为没有写入C:\ Users \ Alina \ Desktop \ MVCApp的权限。

为证明这一点,您可以修改该文件夹的权限以允许“Everyone”写访问权限。如果可行,请确定您的流程运行的帐户,并授予读/写/其他权限,并删除“所有人”访问权限。

这应该可以解决您的部署情况。我无法谈论两个应用程序如何并排运行。我需要更多信息。