Unable to deploy since upgrading to VS2010 RC1

Discussion in 'ASP.NET 4.0 RC Beta [Closed]' started by Jo8n, Feb 13, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Since I've upgraded to VS2010, I've been getting the following error when trying to deploy. I am unclear whether the application with the incorrect version is my code (which I just built in VS2010 RC1 (Rebuild All)) or something on the server.

    Any info or ideas would be greatly appreciated.

    Error 1 Web deployment task failed.((2/13/2010 10:22:23 PM) An error occurred when the request was processed on the remote computer.)

    (2/13/2010 10:22:23 PM) An error occurred when the request was processed on the remote computer.
    The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0.30128'. This application requires 'v4.0'.
     
  2. WORKAROUND for anyone else that might experience this problem:

    I used this entry in my csproj file in the first property group:
    <IgnoreDeployManagedRuntimeVersion>True</IgnoreDeployManagedRuntimeVersion>

    For full details, this is where I came across this option:
    managedRunTimeVersion in MSDeploy package
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    sweet. thanks for posting the workaround.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page