Visual Studio 2015 RC - Cant add virtual directory

橙三吉。 提交于 2020-01-04 06:53:14

问题


I recently upgraded my machine which meant I had to install VS 2015 RC community

opened a previous project and had to recreate all my previous virtual directories only to find when I try I get the following error message:

'The operation could not be completed'

when simply selecting Add Virtual Directory, enter the name and path and press enter.

Anyone else had that or got an idea how I get round that?


回答1:


Maybe editting your applicationhostfile will help. The virtual paths must be part of the site

<!--path of your site-->
<site name="[NAMEOFSITE]" id="[SITEID]">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="[PATHTOSITE]" />
    </application>
    <!-- virtual path-->
    <application path="[VIRTUAL_PATH]" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="[PHYSICAL_PATH_OF_VIRTUAL]" />
     </application>
     <bindings>
         <binding protocol="http" bindingInformation="*:[PORTNUMBER]:localhost" />
     </bindings>
</site>


来源:https://stackoverflow.com/questions/30702577/visual-studio-2015-rc-cant-add-virtual-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!