Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
854 views
in Technique[技术] by (71.8m points)

asp.net - IIS express not working in visual studio 2012

Iam not able to run the Visual Studio Application with IIS Express. Iam getting an Error “Unable to launch IIS Express” for the first time. After multiple times debugging, Iam getting the below error, enter image description here

If I run IIs express manually through command prompt,iam getting the below error, enter image description here

I have reinstalled IIS Express but there is no change. I have also modified the application host config file of IIs express by deleting all the site names of application but there is no change.

Iam not able to know the issue. So, plz suggest any solution for fixing this issue.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had the same problem and the problem is related to the app pool definition which you can find in users{your username}mydocumentsIISexpressconfigapplicationhost.config.

Find the tag

<add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%configaspnet.config" autoStart="true" />

and change the managedruntimeversion from "v4.0" to "v4.0.30319" for .net 4.5

<add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0.30319" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%configaspnet.config" autoStart="true" />  

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...