Hi,
I have a xammap with a couple of shape files. Following the instructions from infragistics, I created a folder called Shapefile under the ClientBin folder on my web app.
This contains my shape files.
In the front end, my code is simply:
<ig:MapLayer x:Name="UKLayer" Imported="UKLayer_Imported" Foreground="Black" IsClickable="False"> <ig:MapLayer.Reader> <ig:ShapeFileReader Uri="Shapefiles/UK/UK" /> </ig:MapLayer.Reader></ig:MapLayer>
When I run the system in the development environment, it works fine, my uk shape file appears over the map background.
However, when I load the same system onto my web server, the shape file fails to load. I can only assume somehow the relative folder is different when running on the server, though I don't know why that would be.
I've tried coding with a non relative URI (ie c:\ etc), but this doesn't work on either my local pc OR the server.
I've also tried copying the Shapefile folder into basically every folder in the web app on the server in the hope it will find it somewhere (ie root, bin, bin/clientbin, clientbin etc etc), but it doesn't seem to find the shape file whatever I do.
I can't see anything anywhere that states you should expect something different when running it on the server, I assumed there may be an issue as the silverlight app is running on the client, but even if I open the page on the server itself, which obviously does have the files available, I still don't see the shape file.
Hi dalereed,
Please take a look at the following forum posts:http://community.infragistics.com/forums/p/37001/213854.aspx#
http://community.infragistics.com/forums/p/43381/243113.aspx#
An alternative approach is to mark the shapefile with Build Action: Content and Copy to Output Directory: Copy always, which would include the shapefile in the .xap file.
Hope that helps,Milana Zhileva
HI,
I am just following up on this thread.
Please let me know if you need further assistance.
Sincerely,
Matt DSE