Select to view content in your preferred language

Server URI changed by ServerInfo

504
2
05-17-2022 07:00 AM
mahj
by
Occasional Contributor

Hi,

the server URI is changed by the ServerInfo constructor in version 100.14. This did not happen in earlier versions.

 

var serverUrl = new Uri("https://arcgis.com/sharing/rest");
var serverInfo = new ServerInfo(serverUrl);
// serverInfo.ServerUri is now "https://arcgis.com/sharing"
// Passing that URI into e.g. ArcGISPortal.CreateAsync() throws an exception

 

This causes logins to saved servers (serialized ServerInfo objects for which the ServerURI now is changed when deserialized) in my application to fail.

0 Kudos
2 Replies
JoeHershman
MVP Regular Contributor

Please post the exception

Thanks,
-Joe
0 Kudos
mahj
by
Occasional Contributor

An Esri.ArcGISRuntime.Http.ArcGISWebException with the message "Invalid URL" is thrown, but I feel that is not the problem, only a symptom of the changed URL:s.

0 Kudos