I have an older ASP.NET MVC 4 project in our solution. I just installed Visual Studio 2017 RC Community Edition (VisualStudio/public.d15rel/15.0.26020.0). We have been using VS2015 successfully.
When I load the solution in VS2017RC, I get the error:
The application which this project type is based on was not found.
I've re-installed ASP.NET MVC 4 after installing VS2017RC, but it didn't help.
I plan to upgrade that to a newer version of ASP.NET MVC, but I'm hoping to use VS2017 in the mean time.
ASP.NET MVC 4 includes ASP.NET Web API, a new framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices. ASP.NET Web API is also an ideal platform for building RESTful services.
Find the code (may be different):<ProjectTypeGuids> {E3E379DF-F4C6-4180-9B81-6769533ABE47}; {349c5851-65df-11da-9384-00065b846f21}; {fae04ec0-301f-11d3-bf4b-00c04f79efbc} </ProjectTypeGuids>
Delete the section {E3E379DF-F4C6-4180-9B81-6769533ABE47};
Not all MVC4 attributes (f.e. Viewbag) are recognised in Views. But at least you can open and run the project until a patch is released.
RC is a "Release Candidate"; it may have known issues until the full release is ready. Your problem is one of them.
MVC4 Projects are not supported
You can keep up to date through the release notes.
They say it's fixed, pending release (at the moment).
Here's the UserVoice ticket: https://developercommunity.visualstudio.com/content/problem/2865/cannot-load-mvc4-web-project-in-vs-2017-rc.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With