Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Deployment - 401 (Unauthorized)

Deployment - 401 (Unauthorized)

Lars Larsen
Lars Larsen
Reply

Hi

I am trying to use the new Deployment function under "Settings - Developer". I have set up a deployment destination and trying to transfer a package to another DW installation. My source destination is my local pc and the target destination is a DW9.2 website hosted on in our local network. My local pc is of course on the same network. But when I click the button "Transfer selected" the log says:

Response status code does not indicate success: 401 (Unauthorized).. 
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). 
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() 
at Dynamicweb.Deployment.RemoteDeploymentProvider.ImportPackage(String id, Package package) 
at Dynamicweb.Admin.Deployment._Closure$__54-0.VB$StateMachine___Lambda$__0.MoveNext()

I have double checked username (administrator) and password for the target destination. So what can cause this error?

Running DW9.2


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

That error should only occur if the destination settings are incorrect.

  1. Make sure that username/password is correct and that the user is an active administrator on the destination.
  2. Make sure that the URL is correct, e.g. "http://www.example.org/"

If you go to /admin on the destination site can you log in using the exact same credentials?

 

 
Lars Larsen
Lars Larsen
Reply

Hi Morten

Username (the user "administrator") and password are correct . I can login on the destination site with exactly the same username and password as I have registered on the deployment destination. The url is also correct (have copy/pasted it).

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Lars,

Thanks for sending me the deployment files.

If you take a look at the log file then it says "Invalid URI: The format of the URI could not be determined."

This is because you are missing the scheme part of the URL that is specified on your "Test" destination.

Instead of "domain.dk/" you should enter "http://domain.dk/".

We wil add some validation/hints to the form to make it more clear.

Let me know if you still get errors.

BR Morten

 
Lars Larsen
Lars Larsen
Reply

Hi Morten

I have already tried adding the schema part to the url. But still with no luck. It works if I transfer my package to another site which is located on my local pc (so source and destination is on local pc). I think the problem could be the routing to the site which I can't transfer to. I will look into that.

Thanks.

 
Lars Larsen
Lars Larsen
Reply

Hi Morten

The problem seems to have something to do with the routing. Because it does not work when working at home using the company VPN connection. But when I am at work and therefore connected directly to the company LAN it works! Any idea why this is the case?

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Lars,

I don't know what the issue it, but it sounds like it might be a problem with either a company firewall or your local VPN settings.

You could try changing the "use default gateway on remote network" setting on your VPN connection. It might help. It might not :)

 
Mikkel Toustrup Olsen
Reply

Hey Morten,

I have the exact same error on either my local network or through my company's VPN connection.

I've triple checked the user credentials for either applications and both of these users are of the accesstype "angel" .

Any thoughts?

BR

Mikkel

 

You must be logged in to post in the forum