Starting new Visual Studio project from scratch, ASP.NET MVC.
By running the web with F5 (IIS Express) google chrome i get an error:
So far only thing i’ve changed (or should i say added) is 2 classes in Models folder (Student and University), 1 class in ViewModels folder (StudentUneiversityViewModel) and added a blank form of StudentController to Controllers.
Note that i tried creating new blank project and the error is still the same. Cant run with IIS Express. Also, i can somehow run my friend’s project that he sent me, without a problem. Any ideas why is this happening?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Go to Solution properties > Web > Servers
Under servers there is project url field. It was https://localhost:44328/ and
all i had to do is change https to http.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0
