do the go in the web harness part of the project or the xaml part? and the URI what should that be?
<telerik:MapShapeReader DataSource="PhysicalLocations;/ClientBin/cb_2013_us_state_500k.dbf"
Source="PhysicalLocations;/ClientBin/cb_2013_us_state_500k.shp"
PreviewReadCompleted="MapShapeReader_PreviewReadCompleted">
</telerik:MapShapeReader>
4 Answers, 1 is accepted
You can include the shape-file (.shp and .dbf) to the Silverlight project as Resources. In this case you should set the Uri format like to the following:
/Assembly Name;component/Path/File Name.
Or can include the shape-file to the web project as Content. In a case, when the shape-file is placed on the web site then you can use the the following Uri format:
Path/File Name.
Regards,
Andrey Murzov
Telerik
You can include the shape-file (.shp and .dbf) to the Silverlight project as Resources. In this case you should set the Uri format like to the following:
/Assembly Name;component/Path/File Name.
Or can include the shape-file to the web project as Content. In a case, when the shape-file is placed on the web site then you can use the the following Uri format:
Path/File Name.
Regards,
Andrey Murzov
Telerik

I also have Copy to output directory set to copy always
DataSource="../ClientBin/cb_2013_us_state_500k.dbf"
Source="../ClientBin/cb_2013_us_state_500k.shp"
DataSource="~/ClientBin/cb_2013_us_state_500k.dbf"
Source="~/ClientBin/cb_2013_us_state_500k.shp"
DataSource="/ClientBin/cb_2013_us_state_500k.dbf"
Source="/ClientBin/cb_2013_us_state_500k.shp"
DataSource="ClientBin/cb_2013_us_state_500k.dbf"
Source="ClientBin/cb_2013_us_state_500k.shp"
When you use IIS Express for your web project then most often this problem occurs in a case when the MIME types for shape and dbf files are not defined on the web server.
You should define MIME types for using shape files:
Extensions: .shp and .dbf
MIME type: application/octet-stream
You can set it for example using the following commands of appcmd in the folder of the IIS Express (usually its location is C:\Program Files (x86)\IIS Express):
appcmd set config /section:staticContent /+[fileExtension='.shp',mimeType='application/octet-stream']
appcmd set config /section:staticContent /+[fileExtension='.dbf',mimeType='application/octet-stream']
Regards,
Andrey Murzov
Telerik