publish usign vs2010

Discussion in 'General troubleshooting' started by 0009851, Jan 7, 2011.

  1. i get these error when i go to publish my website using visual studio 2010

    Error 1 The "IsCleanMSDeployPackageNeeded" task failed unexpectedly.
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Deployment, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.Web.Deployment, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    at Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded.Execute()
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    0 0 finalv2


    what is this error for and how to get over it ?
     
  2. Ray

    Ray

    Make sure you carefully follow these steps to setup web deploy to publish sites to our web server.

    http://support.Winhost.com/KB/a854/publishing-your-web-project-using-web-deploy.aspx

    Web deploy by default alters the applications root direct ACL to Read only and set App_Data with Read and Write only. We have contacted Microsoft about this matter and they have informed us that this is by there design.
    To prevent web deploy from altering the ACL on your account you will need to navigate to your project folder and find the project file. It will end with the extension .vbproj for applications written in Visual Basic or .csproj for applications written in C #. In the project file add this element in the section...

    <propertygroup condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></propertygroup>

    ...the line to add before the </propertygroup> tag is...

    <includesetaclproviderondestination>False</includesetaclproviderondestination>

    If you have already published your site using web deploy, we will have to reset your ACL to its default state so that your applications ASPNet IUSR will have the proper permissions. Please bear in mind if you do not incorporate these modifications in your project file, the next time you publish web deploy your applications root direct ACL will be set to Read only and your App_Data folder will have Read and Write only permission.

    Deploying through FTP does not affect the accounts ACL on the server.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page