« Previous Next »

Thread: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Last post 07-21-2009 2:55 AM by raskado. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 07-20-2009, 5:07 AM

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    I am using 2 networked PC on the same domain equipped by IIS 5.1 and web development tools and remote service is running on both computers.

    Its couple of days I am trying to get some of the synchnorization command into work but I have failed such as folloin two commands:

    msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:metakey=lm/w3svc/1,computername=\\pnt-mahdi,username=momazia,password=Di5gui$eD
    Action: Adding MSDeploy.metaKey (MSDeploy.metaKey)
    Action: Adding metaKey (/lm/w3svc/1)
    Error:  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Error count: 1


    msdeploy.exe -verb:sync -source:conten
    tPath=C:\kia,includeAcls=true -dest:contentPath=D:\arash,computerName=\\pnt-mahd
    i,username=momazia,password=Di5gui$eD

    Action: Adding MSDeploy.contentPath (MSDeploy.contentPath)
    Action: Adding contentPath (D:\arash)
    Action: Adding dirPath (D:\arash)
    Error:  Logon failure: unknown user name or bad password.

    Error count: 1

    (I run the command as Administrator,username & password are Windows login user ans pass, Anonymous accsess is enabled on IIS)

     I tried many syntax and configration but I can not think of any solution anymore. Please assist me with this.

    Thanks

    Kiarash

  • 07-20-2009, 11:27 AM In reply to

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    First, don't prefix your computer name with \\. Also, can you fully qualify your user name with a domain name. 

    msdeploy.exe -verb:sync -source:contentpath=c:\kia,includeAcls=true -dest:contentPath=d:\arash,computername=pnt-mahd,username=Domain\momazia,password=Dis5guised

    Also, run with -debug if an error happens again, and send the entire stack trace of the error.

    Thanks

  • 07-20-2009, 11:02 PM In reply to

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    I have also tried whithout prefix \\, and result is still error as follow:

    msdeploy -verb:sync -source:metakey=lm
    /w3svc/1 -dest:metakey=lm/w3svc/1,computername=pnt-mahdi,username=mol-dom\momazia,password=Di5gui$eD
    Error:  Request to remote agent URL 'http://pnt-mahdi/MSDEPLOYAGENTSERVICE' fail
    ed.
    Error:  The underlying connection was closed: An unexpected error occurred on a
    receive.
    Error:  Unable to read data from the transport connection: An existing connectio
    n was forcibly closed by the remote host.
    Error:  An existing connection was forcibly closed by the remote host
    Error count: 1

    PLease let me know if you have any idea how to overcome  the problem????????????????

  • 07-20-2009, 11:18 PM In reply to

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Can you rerun the command with -debug switch and give us the entire exception message that you see.

     

  • 07-21-2009, 12:10 AM In reply to

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Here is the stack trace:

    msdeploy -verb:sync -source:metakey=lm /w3svc/1 -dest:metakey=lm/w3svc/1,computername=pnt-mahdi,username=mol-dom\momazi a,password=Di5gui$eD -debug

    Microsoft.Web.Deployment.DeploymentException: Request to remote agent URL 'http: //pnt-mahdi/MSDEPLOYAGENTSERVICE' failed. ---> System.Net.WebException: The unde rlying connection was closed: An unexpected error occurred on a receive. ---> Sy stem.IO.IOException: Unable to read data from the transport connection: An exist ing connection was forcibly closed by the remote host. ---> System.Net.Sockets.S ocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s ize) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s ize) at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetriev edStream, Boolean probeRead) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at Microsoft.Web.Deployment.AgentClientProvider.GetResponse(HttpWebRequest re quest) --- End of inner exception stack trace --- at Microsoft.Web.Deployment.AgentClientProvider.GetResponse(HttpWebRequest re quest) at Microsoft.Web.Deployment.AgentClientProvider.RemoteDestSync(DeploymentObje ct sourceObject, DeploymentSyncContext syncContext) at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, Conten tRootTable contentRootTable) at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncO ptions) at MSDeploy.MSDeploy.Execute() at MSDeploy.MSDeploy.Main(String[] unusedArgs) Error count: 1

    (I have installed web deployment tools at both computers by following command LISTENURL=http://+:8081/MsDeployAgentService2/ [does it have any  thing to do with the errors????])

     I would be thankful if you could help me with it.

  • 07-21-2009, 12:28 AM In reply to

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Oh, so you changed the default agent URL.  If you do this, then you have to specify that URL when specifying computerName. 

    so:

    -dest:metakey=lm/w3svc/1,computername=http://pnt-mahdi:8081/msdpeloyagentservice2

    (By default, we assume you are running your agent on http://+:80/msdeployagentservice.  Thus when you just specify pnt-mahdi, we built a URL for you like you see in your exception message). 

    Let us know how that goes.  We want to solve your problem. 

  • 07-21-2009, 2:55 AM In reply to

    • raskado
    • Not Ranked
    • Joined on 07-13-2009, 10:08 PM
    • Posts 13

    Re: pushing to remote destination:Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    As you said the problem was the computername, now it works. Thank you verrrrry much for your help. 
Page 1 of 1 (7 items)
Microsoft Communities