Initializing the applicationhost.config file failed. Cannot find IIS Express - c#

I recently installed the Visual Studio 2017 RC and created AngularJS SPA application. I had to uninstall the VS 2017 RC as it was hanging multiple times. Now, Whenever I try to open this SPA application using VS 2015 I get this error. Any help to resolve this would be helpful. Thank you.
Initializing the applicationhost.config file failed. Cannot find IIS
Express

I have got the same issue.
So I install the IIS Express from https://www.microsoft.com/en-us/download/details.aspx?id=48264
Then reload the solution. problem solved.

Follow this link :
https://drive.google.com/open?id=0B9Q8e7mRZ7_oaXRHX01yMUNPbUE
You need to modify the visual studio web services. The video shows how to modify VS. Modification depends on which type of template you are using that shows error.
If its WCF, then you make web service updates during modification of VS.

I couldn't fix this issue, But I managed to resolve by Uninstalling and reinstalling the Visual Studio 2015.

you can download IIS express from this link and install it
https://www.microsoft.com/en-us/download/details.aspx?id=48264

I had faced the same problem while trying to "Live Share" my web development project on the web browser.
I was using the latest version of Visual Studio still I got this issue.
Then I go to the Visual Studio Downloader to download the ASP.NET and web development Workloads which is available in the Workloads section.
Here I had attached the image in which you can see in the details it is clearly written that Live Share is available.
visual studio downloader where you can see the Live Share option

Related

Visual Studio 2017 Enterprise cannot start ASPNet Core application

I have the latest VS2017 Enterprise.
I have 'ASP.NET and web development' workload installed.
Also I have .NET Core SDK both versions 32/64 bits.
I create new ASP.NET Core Web Application from template.
When I try to 'Start without debugging' I got an error - "The Project doesn't know how to run the profile IIS Express"
At the same time this project can be run successfully from command line
dotnet run
I know that similar question exists but all suggestions from it are not helpful in my case
Visual Studio 2015 can't start IIS Express
I reinstalled my VS from scratch and now it works
try to remove the vs folder and try to run the project
The .vs is a hidden folder so you have to enable the Show hidden files
PS: close visual studio before removing the folder

"C# 2017 compiler could not be created" error message while opening project

I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.

Visual Studio 2015 Express for Web unable to find MVC 4

I understand there are various posts similar to this issue but there are none which match the problem I am having.
I have downloaded Visual Studio 2015 Express for Web, but I cannot create an MVC 4 web application as this option is not available when I create a new project.
I have tried to find the tools in the NuGet package manager but I have had no success.
Using the web platform installer I have managed to download an ASP.NET MVC 4 with language packs (2012) but that hasn't seemed to have any effect on my visual studio (I'm not even sure if its installed correctly).
Any help or guidance on this issue would be greatly appreciated.
EDIT: This is the options I have when I select "New Project":

Visual studio 2012 web deployment fails silently, did any one has workaround for this issue?

I am using VS 2012 Ultimate and I did web deployment using file system. It say publish success. but when I look the folder where I deployed doesn't have any files in it.
Have you tried going to the settings tab on the publish dialogue box and then changing the configuration to: Release - Any CPU.
I had the same issue as you and changing this fixed it.

Can't use WCF templates in Visual Studio Express

I've used the Visual Studio 2010 Express All-In-One to install Visaul C# and Visual Web Developer.
Once I opened Visual C# and tried to create a WCF Application, I couldn't find it.
After looking on internet I found a tip to do it on stackoverflow.
I have done exactly like the guy explained, and now I have WCFServiceProject.
Now everything seems to be correct, but when I try to create a WCF project I get this error
Any ideas ?
Using Visual Studio Express, you have to explicitly start Visual Web Developer Express to create a project of type WCF Service Application.
Visual C# Express even doesn't allow to add existing WCF projects to an existing solution.
If your installation doesn't offer this type of project from the (default) installed project types you should check your installation options.
I don't think you have the option to create a WCF Application in Visual Studio 2010 Express.

Categories