Hello,
My application uses SQL Server 2008 spatial and works fine in IIS6, but the mapping breaks in IIS7. Are there any issues i should be aware of that would cause the app to break in IIS7?
Thanks,
Jason
Jason,
This is most often due to missing mime types for the shape file extensions, see:
http://community.infragistics.com/blogs/devin_rader/archive/2009/04/30/configuring-mime-types-in-iis-for-use-with-xamwebmap.aspx
Let me know if that helps!
-Graham
Ah sorry, I just missed you are using SQL spatial data.
Web service configuration can look quite different in IIS7 than previous versions. Can you browse to the info page for the web service you are hosting without error?
Yes, the service seems to work fine. I am also using XamWebBulletGraph control that is being built dynamically using the same service on the same page and it's working just fine.
Does your aynchronous callback method from fetching the spatial data fire? Can you place a breakpoint there and examine the data returned from the service before it is fed to the SqlShapeReader?
Graham,
Thanks for helping me out with this. Unfortunately my development environment is different(IIS6) and I am not able to debug on production server.
Can't you debug just the Silverlight client portion and point it at the production web service? You are interested in whether the spatial data response makes it back to the Silverlight client, it wouldnt require debugging the web service.
You may want to try using an http inspection tool to inspect the communications going between the client and the server or turn on WCF tracing on the server side and capture a trace log.
I got it figured out. I added Microsoft.SqlServer.Types.dll to the bin folder and it solved the issue.
Thanks for your help!
The application works fine on my box with the service from production.