Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJavon Luke
Courses Plus Student 1,377 PointsWebsite for EntityFramework
Is there any way to get the web app to run through local host because mine will just run through CMD
2 Answers
Steven Parker
231,236 PointsThe whole point of a "web app" is that it runs on a server.
So to run it locally, you'd have to set up a server and install the app on your server.
mattmilanowski
15,323 PointsI feel like Javon Luke is asking something different then what Steven Parker's answer suggests. I struggled with this a bit. When I ran the Visual Studio project that I downloaded from the teacher's notes, it started up with the command line interface. I couldn't figure out why the teacher's app started and loaded a web page and mine was just a cmd prompt. Then I realized that the app was set to start with ComicBookLibararyManager. That is the Cmd interface.
To run the Web part of the program you need to right click ComicBookLibraryManagerWebApp in the Solution Explorer window of Visual Studio, then choose - Set as Startup Project. Now when you start debug you'll see the browser load the correct project, just like the teacher's example.
Also note - If you installed all the Glimpse stuff before changing the start up project, you've probably installed Glimpse in the wrong place. I had to go back again to nuget and install Glimpse stuff all over again, within the correct project this time.
I'm over 4 months too late but I hope this helps people in the future!
Javon Luke
Courses Plus Student 1,377 PointsJavon Luke
Courses Plus Student 1,377 PointsThank you for the answer