.net - Web Management Service failing at random -


so have custom deploy script looks similar this

    msdeploy.exe ^       -source:manifest='path_to_manifest' ^       -dest:auto,computername="https://host:port/msdeploy.axd?site=sitename",username='domain\user',password='muhpass',includeacls='false',authtype='basic' ^       -verb:sync ^       -enablerule:donotdeleterule ^       -disablelink:apppoolextension ^       -disablelink:contentextension ^       -disablelink:certificateextension ^       -setparamfile:"path_to_the_file" ^       -allowuntrusted ^       -usechecksum ^       -retryattempts=2 ^       -presync:runcommand="path_to_script",waitinterval=60000 ^       -postsync:runcommand="path_to_script",waitinterval=60000 

i have removed of values, can assume they're correct, because scripts deploys app successfully, not every time. step fails:

    performing '-presync'...     info: using id '7bb88177-4329-4b66-a7b9-a563811edca3' connections remote server.     error: (7/17/2013 2:27:00 pm) error occurred when request processed on remote computer.     error: error occurred while communicating remote host. error code 0x80070006.     error: handle invalid. (exception hresult: 0x80070006 (e_handle))     error count: 1.     error during '-presync'. 

it completes withing seconds, every once in while take long time , error above. @ point have restart web management service on production server, fixes till next deploy. however, restarting service fails, after does, can @ least start service manually , that's it.

if go event viewer on production server has following error under microsoft web deploy (the time of error id of request match):

    user:      client ip: muh_ip     content-type: application/msdeploy     version: 9.0.0.0     msdeploy.versionmin: 7.1.600.0     msdeploy.versionmax: 9.0.1631.0     msdeploy.method: sync     msdeploy.requestid: 7bb88177-4329-4b66-a7b9-a563811edca3     msdeploy.requestculture: en-us     msdeploy.requestuiculture: en-us     serverversion: 9.0.1631.0     skip: objectname="^configprotecteddata$"     provider: auto, path:      tracing deployment agent exception occurred propagated client. request id '7bb88177-4329-4b66-a7b9-a563811edca3'. request timestamp: '7/17/2013 11:27:00 am'. error details:     system.web.httpexception: error occurred while communicating remote host. error code 0x80070006. ---> system.runtime.interopservices.comexception (0x80070006): handle invalid. (exception hresult: 0x80070006 (e_handle))        --- end of inner exception stack trace ---        @ system.web.hosting.iis7workerrequest.raisecommunicationerror(int32 result, boolean throwondisconnect)        @ system.web.hosting.iis7workerrequest.explicitflush()        @ system.web.httpresponse.flush(boolean finalflush)        @ system.io.bufferedstream.flushwrite()        @ system.io.bufferedstream.flush()        @ system.io.bufferedstream.dispose(boolean disposing)        @ system.io.stream.close()        @ system.io.streamwriter.dispose(boolean disposing)        @ system.io.streamwriter.close()        @ system.xml.xmltextwriter.close()        @ microsoft.web.deployment.traceeventstreamserializer.dispose(stream stream)        @ microsoft.web.deployment.deploymentagent.handlesync(deploymentagentasyncdata asyncdata, nullable`1 passid)        @ microsoft.web.deployment.deploymentagent.handlerequestworker(deploymentagentasyncdata asyncdata)        @ microsoft.web.deployment.deploymentagent.handlerequest(deploymentagentasyncdata asyncdata) 

to me looks there problem service, i'm out of ideas, appreciate suggestions may solve or @ least gather more information. thing driving me nuts. it's getting more frequent lately - used happen less once week, it's every time deploy. realize post getting long, wanted include relevant information.

server windows server 2008 r2 enterprise v6.1 sp1 iis 7.5.

tl;dr deploy script fails @ random, restarting web management service fixes temporary, wut do?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -