Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot read web.config file Asp.net core web application

I am trying to run some sample code for ASP.NET Core and Angular 2.

I cloned the project from https://github.com/PacktPublishing/ASPdotNET-Core-and-Angular-2 and changed the sdk version in the global.json to the current version I have installed (1.0.0-preview2-1-003177). When I run the web application I get the following error page:

enter image description here

I grepped the project looking for the config file path but came up with nothing. I also contacted support but they aren't helpful.

Does anybody know how to change the config file path?

like image 536
Simon Theodore Avatar asked Jan 10 '17 23:01

Simon Theodore


1 Answers

You must open hidden .vs folder in root of your solution folder, then find applicationhost.config file in the config folder. ... and change

<virtualDirectory path="/" physicalPath="......" 

to the proper path.

like image 160
Imme Pak Avatar answered Oct 31 '22 10:10

Imme Pak