{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/191","repository_url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet","labels_url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/191/comments","events_url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/191/events","html_url":"https://github.com/Azure/azure-documentdb-dotnet/issues/191","id":200734789,"number":191,"title":"Deploy AzureRm App Service VSTS task fails after upgrading to Microsoft.Azure.DocumentDb nuget 1.11.1 from 1.9.5","user":{"login":"Jacob-McKay","id":6945571,"avatar_url":"https://avatars.githubusercontent.com/u/6945571?v=3","gravatar_id":"","url":"https://api.github.com/users/Jacob-McKay","html_url":"https://github.com/Jacob-McKay","followers_url":"https://api.github.com/users/Jacob-McKay/followers","following_url":"https://api.github.com/users/Jacob-McKay/following{/other_user}","gists_url":"https://api.github.com/users/Jacob-McKay/gists{/gist_id}","starred_url":"https://api.github.com/users/Jacob-McKay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jacob-McKay/subscriptions","organizations_url":"https://api.github.com/users/Jacob-McKay/orgs","repos_url":"https://api.github.com/users/Jacob-McKay/repos","events_url":"https://api.github.com/users/Jacob-McKay/events{/privacy}","received_events_url":"https://api.github.com/users/Jacob-McKay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-13T21:27:18Z","updated_at":"2017-01-20T19:40:27Z","closed_at":null,"body":"I updated my docdb sdk so I could make use of async document queries.  The first hurdle was needing to change all my web apps and iis express instances to run in 64 bit.\r\n\r\nHowever, when I went to deploy my webapp after the first successful deployment, I get file lock issues during deployment.  Here is the output of my deploy task:\r\n\r\n\r\n2017-01-13T20:27:32.4280842Z ##[section]Finishing: Download Artifacts\r\n2017-01-13T20:27:32.4320845Z ##[section]Starting: Deploy AzureRM App Service: CONFIDENTIAL\r\n2017-01-13T20:27:32.4800852Z ==============================================================================\r\n2017-01-13T20:27:32.4800852Z Task         : Azure App Service Deploy\r\n2017-01-13T20:27:32.4800852Z Description  : Update Azure App Service using Web Deploy / Kudu REST APIs\r\n2017-01-13T20:27:32.4810830Z Version      : 2.1.8\r\n2017-01-13T20:27:32.4810830Z Author       : Microsoft Corporation\r\n2017-01-13T20:27:32.4810830Z Help         : [More Information](https://aka.ms/azurermwebdeployreadme)\r\n2017-01-13T20:27:32.4810830Z ==============================================================================\r\n2017-01-13T20:27:33.4837534Z CONFIDENTIAL exists true\r\n2017-01-13T20:27:36.4226911Z Got connection details for Azure App Service:'CONFIDENTIAL'\r\n2017-01-13T20:27:36.4576921Z Running command: \"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\" -verb:getParameters -source:package=\"C:\\a\\r1\\a\\CONFIDENTIAL.zip\" > \"C:\\a\\r1\\a\\parameter.xml\"\r\n2017-01-13T20:27:37.7526618Z Running command: @echo off \r\n2017-01-13T20:27:37.7526618Z \"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\"  -verb:sync -source:package=\"C:\\a\\r1\\a\\CONFIDENTIAL.zip\" -dest:auto,ComputerName='https://CONFIDENTIAL.net:443/msdeploy.axd?site=CONFIDENTIAL',UserName='********',Password='********',AuthType='Basic' -setParam:name='IIS Web Application Name',value='CONFIDENTIAL' -enableRule:DoNotDeleteRule -userAgent:VSTS_CONFIDENTIAL_release_11_1272_3643_1 2>error.txt\r\n2017-01-13T20:27:37.7536620Z if %errorlevel% neq 0 exit /b %errorlevel%\r\n2017-01-13T20:27:37.7556609Z [command]C:\\Windows\\system32\\cmd.exe /C C:\\a\\r1\\a\\msDeployCommand.bat\r\n2017-01-13T20:27:38.4146621Z Info: Using ID 'CONFIDENTIAL' for connections to the remote server.\r\n2017-01-13T20:27:41.0598530Z Info: Adding ACL's for path (CONFIDENTIAL)\r\n2017-01-13T20:27:41.0598530Z Info: Adding ACL's for path (CONFIDENTIAL)\r\n2017-01-13T20:27:41.0628531Z Info: Using ID 'CONFIDENTIAL' for connections to the remote server.\r\n2017-01-13T20:27:46.1265841Z Info: Updating file (CONFIDENTIAL).\r\n2017-01-13T20:27:48.1225406Z ##[error]Failed to deploy App Service.\r\n2017-01-13T20:27:48.1255405Z ##[error]Error Code: ERROR_FILE_IN_USE\r\n2017-01-13T20:27:48.1255405Z More Information: Web Deploy cannot modify the file 'DocumentDB.Spatial.Sql.dll' on the destination because it is locked by an external process.  In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.\r\n2017-01-13T20:27:48.1265401Z Error count: 1.\r\n2017-01-13T20:27:48.1265401Z \r\n2017-01-13T20:27:49.4330113Z Successfully updated deployment History at https://CONFIDENTIAL/deployments/12721484339268116\r\n2017-01-13T20:27:49.4330113Z ##[error]Error: Error: C:\\Windows\\system32\\cmd.exe failed with return code: 4294967295\r\n2017-01-13T20:27:49.4460098Z ##[section]Finishing: Deploy AzureRM App Service: CONFIDENTIAL\r\n2017-01-13T20:27:49.4490179Z ##[section]Finishing: Release\r\n \r\nI have tried using the 'take app offline' option in this deploy task, still no avail.  Any suggestions?"},"comment":{"url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/comments/274161167","html_url":"https://github.com/Azure/azure-documentdb-dotnet/issues/191#issuecomment-274161167","issue_url":"https://api.github.com/repos/Azure/azure-documentdb-dotnet/issues/191","id":274161167,"user":{"login":"rnagpal","id":13354131,"avatar_url":"https://avatars.githubusercontent.com/u/13354131?v=3","gravatar_id":"","url":"https://api.github.com/users/rnagpal","html_url":"https://github.com/rnagpal","followers_url":"https://api.github.com/users/rnagpal/followers","following_url":"https://api.github.com/users/rnagpal/following{/other_user}","gists_url":"https://api.github.com/users/rnagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/rnagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnagpal/subscriptions","organizations_url":"https://api.github.com/users/rnagpal/orgs","repos_url":"https://api.github.com/users/rnagpal/repos","events_url":"https://api.github.com/users/rnagpal/events{/privacy}","received_events_url":"https://api.github.com/users/rnagpal/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T19:40:27Z","updated_at":"2017-01-20T19:40:27Z","body":"@Jacob-McKay I believe it's related to the ASP.NET bits installed on your system. Try downgrading it to 1.9.5(that you had earlier) and see it you still get this file lock issue which would confirm ASP.NET issue. I'm not too much familiar with this particular feature of ASP.NET. \r\n@vijayrkn Can you please help unblock Jacob?\r\nDocumentDB.Spatial.Sql.dll is one of the native dlls that we package in our Nuget package and binplace it along with our main Client dll as it's needed at runtime in some of the scenarios."}}
{"actor":{"display_login":"rnagpal"}}