简体   繁体   中英

Error opening a project/solution on Visual Studio 2017 Community

I am trying to open a project/solution on Visual Studio 2017 Community and i get the next error:

在此处输入图片说明

I have been googling for this error but i haven't found any solution. Any suggestions?

I hope to have explained well my problem.

Update

I am using VS17 on a Virtual Machine with Windows7 32bits.

I tried the solution proposed by Andrii to delete all <site> inside the <sites> node under the applicationhost.config file but after restarting VS2017 and launch my project, I got the following error:

Unable to connect to web server 'IIS Express'

In the config file, I had to put back the application pool like the following:

<site name="MyApp" id="1">
    <application path="/" applicationPool="Clr4IntegratedAppPool"> <-- HERE
        <virtualDirectory path="/" physicalPath="C:\Git\MyApp\MyApp" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:61508:localhost" />
    </bindings>
</site>
<applicationDefaults applicationPool="Clr4IntegratedAppPool" /> <-- AND HERE

After that restart VS2017 and try again.

Also you might just look at the physicalPath folder specified in the config file... make sure it is writable. Some people specified they had the problem when the folder is encrypted. You can find some other possible solution here:

Creating a virtual directory failed with the error

I had the same issue few weeks ago. Solved it by opening applicationhost.config mentioned in the error and removing all <site> nodes under the <sites> and then reopening VS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM