I have developed a simple map chart, by loading usa_st map. It worked fine, when i tested in IDE and in the IIS of development machine.
When I copied the binaries to a Windows 2003 Server R2 x64 machine, the map chart is not displayed. I checked that the usa_st file is in ClientBin folder, where .xap file is there.
I had spent lot of time, on this and still dont know wat is the problem. Why it works in development machine and IIS and not working in another machine.
Other charts like doughnet, bar charts are working fine in both machine. Only map is not loading. I thought of this as access violation. But the images in clientbin are loading fine.
Is there something with Shapefilereader? I am unable to catch any exception, if the URI is invalid. Please help me.
unfortunately when dealing with IIS there are a lot of different variables so you may need to collect more information than you have now to diagnose the problem. For example, if you enter the full path to the shp file, does it download? Can you examine the IIS logs and see if there is a 404 error or other error for the shp file?
Can you post what your ClientBin directory structure looks like and also what the uri looks like on the shapefilereader?
-Graham
I mean enter the full path to the shp file in the browerser btw: e.g. http://servername/mapsite/ClientBin/Shapefiles/usa_st.shp
ya. i am seeing 404 3 (MIME map policy prevents this request.) in log files,
2010-01-18 17:52:43 W3SVC1 127.0.0.1 GET /explore/ClientBin/divisions.shp - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 3 502010-01-18 17:52:43 W3SVC1 127.0.0.1 GET /explore/ClientBin/divisions.dbf - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 3 50
and when i used full path with .xap, it worked. But for these dbf and shp files I got 404 file not found error.
How I can resolve this?
no problem.
good lord. You saved my day. Millions of thanks Graham.
It fixed the problem.
Ah, actually, see Devin's blog for more info:
http://blogs.infragistics.com/blogs/devin_rader/archive/2009/04/30/configuring-mime-types-in-iis-for-use-with-xamwebmap.aspx
some IIS versions and configurations result in files with unknown mime types not being served. You may need to configure the mime types for the shp and dbf extenstions for more info see: http://support.microsoft.com/kb/326965
This help?