Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 在虚拟目录中部署ASP MVC_Asp.net_Asp.net Mvc_Iis_Web Deployment - Fatal编程技术网

Asp.net 在虚拟目录中部署ASP MVC

Asp.net 在虚拟目录中部署ASP MVC,asp.net,asp.net-mvc,iis,web-deployment,Asp.net,Asp.net Mvc,Iis,Web Deployment,我有现有的silverlight应用程序作为IIS应用程序。我需要在虚拟目录中部署ASP MVC应用程序作为其中的一部分(不要问我为什么),而不是像新的IIS应用程序那样。 我使用iis6。 我在现有iis应用程序中创建新的虚拟目录,并使用ASP项目文件夹的路径作为此虚拟目录的物理路径。但我有一个错误 Configuration Error Description: An error occurred during the processing of a configuration file

我有现有的silverlight应用程序作为IIS应用程序。我需要在虚拟目录中部署ASP MVC应用程序作为其中的一部分(不要问我为什么),而不是像新的IIS应用程序那样。 我使用iis6。 我在现有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应用程序?
如何做到这一点

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

为了证明这一点,您可以修改该文件夹的权限,以允许“所有人”进行写访问。如果这样做有效,请找出进程运行的帐户,并授予该读/写/任何权限,然后删除“Everyone”访问权限


这将修复您的部署情况。我无法谈论这两个应用程序将如何并行运行。我需要更多的信息。

你在什么地方硬编码过
'C:\Users\Alina\Desktop\MVCApp'
?或者应用程序真的在你的桌面上?它实际上在我的桌面上。它解决了我的问题。谢谢。现在我可以通过浏览器访问此文件夹。但它的工作原理类似于资源管理器(我只能看到项目文件夹中的文件)。但它不像web应用程序那样工作。