I have an existing solution with two projects..
I noticed I didn't have the Office/SharePoint workload installed so I launched the installer while the
current project was open.
The installer went through its thing installing the Office workload and then prompted me to restore files from the current project I had open.
I found this odd and selected to restore the files.
Visual Studio then rebooted to the start page.
I opened my original solution, and only one of the projects, the data layer, was visible. I right clicked on the solution and added 'existing' project to get the other project back.
I attempted to run Index.cshtml in debug mode and was greeted with: A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
The original solution ran IIS Express on this port http://localhost:51306/Home/Index The new solution now runs it on this http://localhost:51375/ i.e. there is a change of port number from 51306 to 51375, which I think is the cause of the problem.
I can right click on the file in solution explorer and elect it to run in the browser, and it works on the old port 51306.
But I can't run it at all in debug mode from the debug menu.
Could you please tell me the version of the VS you have used now? VS2017 or VS2015?
How you install the workload? From the VS2017 installer?
If you could post more details information, it will be more easily for us to reproduce your issue and find out the solution.
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Hi Brando,
I am on VS 2017 and I launched the workload update from within VS. I think I should have closed the current solution before proceeding.
Thanks
Member
109 Points
375 Posts
Added Office Workload - Solution no longer works
Nov 15, 2018 10:54 PM|Madog|LINK
I have an existing solution with two projects..
I noticed I didn't have the Office/SharePoint workload installed so I launched the installer while the current project was open.
The installer went through its thing installing the Office workload and then prompted me to restore files from the current project I had open.
I found this odd and selected to restore the files.
Visual Studio then rebooted to the start page.
I opened my original solution, and only one of the projects, the data layer, was visible. I right clicked on the solution and added 'existing' project to get the other project back.
I attempted to run Index.cshtml in debug mode and was greeted with:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
The original solution ran IIS Express on this port http://localhost:51306/Home/Index
The new solution now runs it on this http://localhost:51375/
i.e. there is a change of port number from 51306 to 51375, which I think is the cause of the problem.
I can right click on the file in solution explorer and elect it to run in the browser, and it works on the old port 51306.
But I can't run it at all in debug mode from the debug menu.
Thanks for considering
Star
9831 Points
3120 Posts
Re: Added Office Workload - Solution no longer works
Nov 19, 2018 09:09 AM|Brando ZWZ|LINK
Hi Madog,
Could you please tell me the version of the VS you have used now? VS2017 or VS2015?
How you install the workload? From the VS2017 installer?
If you could post more details information, it will be more easily for us to reproduce your issue and find out the solution.
Best Regards,
Brando
Member
109 Points
375 Posts
Re: Added Office Workload - Solution no longer works
Nov 22, 2018 08:15 AM|Madog|LINK
I am on VS 2017 and I launched the workload update from within VS. I think I should have closed the current solution before proceeding.
Thanks