One-Click Publish

Discussion in 'ASP.NET 4.0 RC Beta [Closed]' started by ast1, Mar 19, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. trying to deploy an SL4 RC app using VS10 RC, gives an error:

    Error 1 Web deployment task failed.((3/19/2010 10:11:00 PM) An error occurred when the request was processed on the remote computer.)

    (3/19/2010 10:11:00 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. Bruce

    Bruce DiscountASP.NET Staff

    I think you need the latest version of VS.NET RC installed
     
  3. need to edit .proj file

    It's a simple fix. See this forum post at

    http://community.discountasp.net/showthread.php?t=9560

    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
     
  4. can publish now, but get the following error (line 17 is red) trying to run app from server:

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

    Source Error:


    Line 15: </assemblies>
    Line 16: </compilation>
    Line 17: <roleManager enabled="false" />
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    put the app in the site root. you do not allow you to make directory as approot in the sandbox env.
     
  6. yup -- that worked; how would we have known?
     
  7. mjp

    mjp

    Well, lab or sandbox accounts do not traditionally come with documentation. They cater more to people who like to tinker and discover (and break things) on their own. So generally speaking you won't ever get the same level of help, support or assistance on the lab servers as you do on a production server.

    But you got the answer here. ;)
     
  8. this issue really has nothing to do with support; I was just curious if this "gotcha" was either posted somewhere, well-known, or obvious to all
     
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