Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Shape files don't load on server
posted

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.


 


Parents Reply Children
No Data