I am trying to run the ConfigWithMap example. I have C:\Data\Configurations\Projects with San Diago.aprx valid in it.
The error I get is "System.NotSupportedException: 'The given path's format is not supported" in external code.
I put many break point but I cannot locate the problem.
I see the first screen and then when I need to see the screen with California map I get the error.
Similar problem when I ConfigWithStartWizard.
Pro 2.9
Thanks
Hi,
There is a problem with signing to portal. You need to move signing code from OnUpdateDatabase to OnApplicationReady. More info here:
https://community.esri.com/t5/arcgis-pro-sdk-questions/portal-login-programmatically/m-p/1000543
protected override void OnApplicationReady()
{
// get the login username from Portal
var portal = ArcGISPortalManager.Current.GetActivePortal();
if (portal != null && portal.SignIn().success)
{
ConfigWithMapModule.UserName = portal.GetSignOnUsername();
}
}