So I'm working on an augmented reality mobile app, it's real basic, I just want to see monitoring wells in place. Anyway I am using my monitoring well dataset in AGOL and I am having trouble accessing the data, below is the C# code that is attempting to access the data.
_portal = await ArcGISPortal.CreateAsync(baseAddress, cred);
_envWorkingData = await PortalItem.CreateAsync(_portal, "####");
// build a URL to the first layer in the service
var welluri = new Uri(_envWorkingData.Url + "/1");
// create a new service feature table referencing the service
var wellTable = new ServiceFeatureTable(welluri);
// create a new feature layer from the table
await wellTable.LoadAsync(); <- Here is where the access error shows up
if(wellTable.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)
_wellsLayer = new FeatureLayer(wellTable);
I get error #403 "You do not have permissions to access this resource or perform this operation.", even though I have a publisher level AGOL account. Any ideas?