Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6212365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:30:10+00:00 2026-05-24T06:30:10+00:00

I have a PivotViewer app I am working on, but, I cannot get it

  • 0

I have a PivotViewer app I am working on, but, I cannot get it to run.

I have a good .cxml file (I used Pauthor to generate the related deep-zoom files). I have tried running it from inside VS 2010 int debug and even built it and tried running it from my localhost. I’ve checked it in both Firefox and IE. I’ve made sure it is in a container with set width and height. I’ve made sure I have the most current silverlight.js, I’ve set the appropriate MIMEs on IIS.

My XAML:

    <UserControl x:Class="DomPivot.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
      mc:Ignorable="d"
      d:DesignHeight="400" d:DesignWidth="400" Loaded="UserControl_Loaded">

      <Grid x:Name="LayoutRoot" Background="White" Width="400" Height="400">
        <pivot:PivotViewer x:Name="myPivot" Height="350"></pivot:PivotViewer>
      </Grid>
    </UserControl>

My error:

    Error: Unhandled Error in Silverlight Application Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 11 Position: 52]   
    at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
    at DominionPivot.MainPage.InitializeComponent()
    at DominionPivot.MainPage..ctor()
    at DominionPivot.App.Application_Startup(Object sender, StartupEventArgs e)
    at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
    at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

Source File: DomPivotTestPage.aspx
Line: 0

Line 11 Position 52 of the main.xaml is now the equal sign for the Height property of the pivotviewer. Interesting that BEFORE I added the height property, the project threw this error at the equal sign for the x:Name property.

I don’t understand why I’m getting this error and would appreciate some help. I’ve investigated the other topics here but none of those answers either worked or pertained to my situation.

UPDATE:

I’ve attempted to make sure it isn’t some kind of other error cascading into an inability for the control to load by attempting to load a .CXML file from a public source. Same result. I don’t think the control itself is loading, so, I can’t even debug the code that loads the collection.

Googling “Unhandled Error in Silverlight Application Set property ‘System.Windows.FrameworkElement.Style’ threw an exception.” is no help. It returns 24 hits. Half of those are unrelated. The other half is another person with what appears to be the same problem posting to half-dozen or more forums and getting no answer either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:30:12+00:00Added an answer on May 24, 2026 at 6:30 am

    OK….so here are a number of issues that a lot of frustrating googling and futzing revealed:

     Loaded="UserControl_Loaded"
    

    I’m not entirely sure how this parameter ended up in my UserControl tag, but, it is unnecessary and eliminated the error referenced in my question.

    I also moved the LoadCollection method out of its own event and into the UserControl_Loaded event and got things to progress.

    Next I found that if you are using Visual Studio to run the project, make sure you specify the port number both in your code and in your web project settings. These obviously need to be changed when you post to a live server.

    Lastly, I was led to believe that you HAD to use either the freely available Pauthor tools or the Excel plug-in to transform your collection into a Deep Zoom. Which also requires futzing with IIS to allow .dzi and .dzc.

    Not so. There is a freely available Microsoft Deep Zoom Composer tool. In that tool you can compose your deep zoom and export the collection. You’ll end up with several xml files and image folders. I found that all you have to do is then reference the output_dzc.xml file in your collection.cxml as your ImgBase and make sure your IDs match between the two files. That’s all.

    I hope this saves someone the frustration I’ve experienced the last few weeks trying to use this awesome but pathetically under-documented control.

    I would also recommend this blog entry:

    http://indiandotnet.wordpress.com/2011/02/12/pivot-viewer-example-cricket-world-cup-2011/

    It contains a link to a very simple pivotviewer VS 2010 solution file you can use to examine and familiarize yourself with file and directory structure as well as the necessary XML file structure and solution settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a proof-of-concept PivotViewer application up and running, but I can't
Have their been any studies related to the importance of how good a software
Have you ever tried working with a XAML file which contains thousand tons of
I have deployed a Silverlight 5 PivotViewer web app that runs successfully on the
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have you managed to get Aptana Studio debugging to work? I tried following this,
Have any one run into trouble when running dotLess and having hacks on your
Have a simple console app where user is asked for several values to input.
Have looked so long for a library specialized in dealing with iPhone Accelerometer but
Have you used NPanday to integrate Visual Studio with Apache Maven ? If so,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.