VS2013 publish Web deployment task failed The file is in use

前端 未结 5 2080
北荒
北荒 2020-12-13 13:35

I am using VS2013 Premium to publish a site to Windows Server 2012. All files publish ok except these: SqlServerTypes\\x64\\msvcr100.dll

SqlServerTypes\\x64\\SqlSer

5条回答
  •  感动是毒
    2020-12-13 14:14

    Watch out you don't have one of those new-fangled cloud backup services running that is taking file locks - and also you don't have things open in explorer or a DLL inspection tool.

    I think it's kind of ridiculous that MS doesn't make better provisions for this problem. I find that 9 times out of 10 my deployment works just fine, but then as our traffic increases that can become 1 in 10 times.

    I am going to solve the problem with :

    • two applications MySite.A and MySite.B, where only one is running at a time.
    • I always then deploy to the dormant site.
    • If there's a problem during the deployment it will never cause the whole site to go down.
    • If there's a major problem after deployment you can revert back very easily.

    Not quite sure how I'm implementing it, but I think this is what I need to do.

提交回复
热议问题