Precompiled Azure Function's dll will be lock on deployment #1105

Closed
guitarrapc opened this Issue Jan 10, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@guitarrapc

Precompiled AzureFunction is very useful for Intellisense friendly development. However, it's dll will be locked by w3wp.exe. This required me to kill w3wp then restart AppService to swap with new dll.

Repro steps

Provide the steps required to reproduce the problem

  1. Create Precompiled AzureFunctions.

  2. Deploy to AzureFunctions.

  3. Verify it works and modifies the source code, then re-deploy. New code will not be affected until you kill w3wp and restart AppService.

Expected behavior

New source code's dll should replace without kill w3wp and Restart AppService.

Actual behavior

dll is locked and new source code will not be work until kill, restart.

Known workarounds

Kill w3wp.exe and restart AppService.

Related information

Use https://github.com/guitarrapc/AzureFunctionsIntroduction for a sample.

@fabiocav fabiocav self-assigned this Jan 13, 2017

@christopheranderson christopheranderson added this to the January 2017 milestone Jan 20, 2017

@lindydonna

This comment has been minimized.

Show comment
Hide comment
@lindydonna

lindydonna Jan 31, 2017

Contributor

@guitarrapc To avoid the locked file problem, you can add the app setting MSDEPLOY_RENAME_LOCKED_FILES with value of 1. However, you still have to restart the Function App.

So, this is a duplicate of #1023.

Contributor

lindydonna commented Jan 31, 2017

@guitarrapc To avoid the locked file problem, you can add the app setting MSDEPLOY_RENAME_LOCKED_FILES with value of 1. However, you still have to restart the Function App.

So, this is a duplicate of #1023.

@guitarrapc

This comment has been minimized.

Show comment
Hide comment
@guitarrapc

guitarrapc Feb 1, 2017

@lindydonna Thanks. Yes, I do know it. But the core issue is Host restart required as you describe. I will keep watch duplicate issue.

guitarrapc commented Feb 1, 2017

@lindydonna Thanks. Yes, I do know it. But the core issue is Host restart required as you describe. I will keep watch duplicate issue.

@fabiocav

This comment has been minimized.

Show comment
Hide comment
@fabiocav

fabiocav Feb 1, 2017

Member

This is slightly different, though, so I'm reopening. The good thing is that both will be addressed by the same PR.

Member

fabiocav commented Feb 1, 2017

This is slightly different, though, so I'm reopening. The good thing is that both will be addressed by the same PR.

@guitarrapc

This comment has been minimized.

Show comment
Hide comment
@guitarrapc

guitarrapc Feb 1, 2017

It's awesome news!! Appreciate for greate work.

It's awesome news!! Appreciate for greate work.

@fabiocav fabiocav closed this in #1169 Feb 6, 2017

@fabiocav fabiocav removed the in progress label Feb 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment