Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Trouble found me when I was web deploying from Visual Studio 2010 sp1 the c# WCF service I was creating as instructed in: <a href="http://technologyriver.blogspot.fi/2012/02/prerequisites-check-windows-7.html" rel="nofollow">http://technologyriver.blogspot.fi/2012/02/prerequisites-check-windows-7.html</a></p> <p>I got the error: Error 1 Web deployment task failed. (The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v2.0'. This application requires 'v4.0'.) 0 0 WcfService3</p> <p>As I do not have full IIS but the IIS Express I cannot go to the manager. After some dates with mr. Google and ms. Bing I found the solution, staring at my face.</p> <p>The fix is to use the explicitly correct web service name instead of the default used in the example.</p> <p>Solution: First open the IIS Express config file %userprofile%\documents\IISExpress\config\applicationhost.config</p> <p>Check the default site that you have in there, in my case it was:</p> <pre><code>&lt;site name="WebSite1" id="1" serverAutoStart="true"&gt; &lt;application path="/" applicationPool="Clr4IntegratedAppPool"&gt; &lt;virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" /&gt; &lt;/application&gt; &lt;bindings&gt; &lt;binding protocol="http" bindingInformation=":8080:localhost" /&gt; &lt;/bindings&gt; &lt;/site&gt; </code></pre> <p>Ensure that the application pool for the site is correct, in my case "Clr4IntegratedAppPool"</p> <p>In the deployment phase, as instructed in the linked blog, there is used as Site/application some "Default Web Site/MyApp".</p> <p>For me the correct setting, as seen in the site config, would be "WebSite1" and also the service url in the deployment needs port binding and would be in my case "localhost:8080"</p> <p>If you feel that you want more definition, create a completely new site with its own pool in the config and use that in the deployment. Some examples to that direction can be found here: <a href="http://www.philliphaydon.com/2012/06/multiple-iisexpress-sites-profiled-with-dottrace/" rel="nofollow">http://www.philliphaydon.com/2012/06/multiple-iisexpress-sites-profiled-with-dottrace/</a></p> <p>Hope this helps any of you avoiding the frustrating dates with search machines.</p> <p>Best regards, Petteri Kujala</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload