user330375
user330375

Reputation:

Problems deploying Silverlight PivotViewer

I have a Silverlight PivotViewer application that is working perfectly in Visual Studio. My problems occur when I try to deploy the application. The application starts as usual with a "Loading" animation and the path to the CXML file in the upper left. The problem is when the Loading animation is finished, it simply disappears and nothing else appears on the screen. Only the path to the CXML file remains in the upper left.

I have done the following:

  1. Ensure that all files are in the same location on the server to in order to avoid any cross-domain issues
  2. Added a clientaccesspolicy.xml to the root
  3. Ensure that the path to the CXML file exists on the server
  4. Add the following MIME Types:
    • .cxml - text/xml
    • .dzc - text/xml
    • .dzi - text/xml

Nothing seems to help. Does anyone know how to get this working?

Upvotes: 4

Views: 1113

Answers (3)

Guru
Guru

Reputation: 181

Try viewing the CXML file from Desktop Pivot Viewer, try using this tool http://blogs.msdn.com/b/andrewcox/archive/2010/07/14/a-tool-to-help-diagnose-problems-setting-up-your-pivotviewer-app.aspx

Upvotes: 0

David Gray Wright
David Gray Wright

Reputation: 817

Add a handler to the Loading Fail event and look at the exception?

         PivotViewer.CollectionLoadingFailed += new EventHandler< CollectionErrorEventArgs >( PivotViewer_CollectionLoadingFailed );

Upvotes: 1

Monir Abu Hilal
Monir Abu Hilal

Reputation: 206

It sounds weird, I suggest you to do the following:

  • Try to access the CXML Link using your web browser ( to check the link is broken or not)

  • Did you try to open your pivot CXML with Pivot Desktop Viewer?

Maybe the CXML is not a Valid XML file, you can check it if it's valid or not by saving the cxml file.. rename it to .xml drag drop it over a Firefox window. If you get Yellow Screen that means the XML file is not well formed and you'll get the error details.

Hope that helps you to solve your issue.

Upvotes: 0

Related Questions