Select to view content in your preferred language

.Net SDK works on select machines

6117
12
01-15-2015 02:25 AM
JaredWheatley
Deactivated User

Hi all,

We have a problem where when downloaded and installed, the SDK will only show the hello world map/function on 2 of the machines. They are all fresh installs of visual studio and all on the same network with the same permissions. We have tried using a local map source also.

They are all replica machines with the same hardware and are fairly new.

Any ideas would be appreciated

thanks.

0 Kudos
12 Replies
JaredWheatley
Deactivated User

Hi,

Tried using that method of calling the files, still nothing, code at the moment is this:

public MainPage()

{

this.InitializeComponent();

//adding layer to map

var bkgLayer = new ArcGISLocalTiledLayer(@"ms-appx:
\Assets\OSBasemapPackage.tpk");

bkgLayer.ID = "MainLayer";

MyMap.Layers.Add(bkgLayer);

}

Note: Also used forward slashes in directory path.

0 Kudos
AnttiKajanus1
Deactivated User

Please, try to use ms-appx:///Assets/OSBasemapPackage.tpk and you have checked that the file is copied into the deployment folder? 

0 Kudos
dotMorten_esri
Esri Notable Contributor

Just to add to that: Make sure the tpk is added to your project, and the build action for the windows store project is set to "Content"

0 Kudos