Showing posts with label VSTS. Show all posts
Showing posts with label VSTS. Show all posts
VSTS - Automation for Azure Function issue
VSTS - Automation for Azure Function issue
I create build Azure function project using VSTS and run successfully. But when I run Release it worked fine for first time, But when I run release next time for the same build definition, it gave me below error.Error:
Web Deploy cannot modify the file 'DemoApp.DemoFunctions.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. Error count: 1.
Solution:
1. Login to Azure portal
2. Goto function app and open your function app
3. Click on "Application settings" from Overview tab.
4. Goto "Application settings" section on "Application settings" page.
5. Add MSDEPLOY_RENAME_LOCKED_FILES = 1
6. Save settings from top left corner.
7. Redeploy your Azure function, it will work.
Hope this will help you and save your time.
Enjoy !!!
:)
Exclude folders from VSTS Build
Exclude folders from VSTS Build
We can exclude folder contents using VSTS automatic build, here are steps to exclude folders from build,
1. Open build definition
2. Select build solution option from left panel
3. Update MSBuild arguments
Phase 1 => Build Solution => MSBuild Arguments
Append below code of line in "MSBuild Arguments" textbox
/p:ExcludeFoldersFromDeployment="Content\dist\css\skins;Content\dist\js"
Subscribe to:
Posts (Atom)
-
Code First Migration in ASP.Net Core Generally we create database first and then we create data model classes in project, and while we pu...
-
Insert - Update SQL Database using Powershell Script Here is example of SQL Server database insert and update transaction using Powershel...
-
Git remote: HTTP Basic: Access denied and fatal Authentication Sometimes, I am facing issue with Git and getting error that - "Git...