Select to view content in your preferred language

Upgrade ArcGIS Silverlight Project from version 2.1 to 3.0

851
7
06-20-2012 10:38 PM
SantoshV
Emerging Contributor
Hi,
I want to upgrade my ArcGIS Silverlight project from version 2.1(Silverlight 4) to 3.0(Silverlight 5), but when I installed the API it threw me lots of error when I tried opening my project (for example Scalebar gave me an error)

How do I upgrade my project do I need to Change the code also or is there a converter to do it..

Please guide....
0 Kudos
7 Replies
DominiqueBroux
Esri Frequent Contributor
The ScaleBar has been removed from the Client assembly and replaced by the ScaleLine in the Toolkit assembly.
You'll find the removed items and the complete list of changes here.
0 Kudos
PLadd
by
Frequent Contributor
I'm having a similar problem.  I've removed all references to the ScaleBar element but at runtime I am still getting XamlParseException:

"The type 'ScaleBar' was not found. [Line: 5 Position: 36]"

I've done a search for ScaleBar on the entire solution but can't find any references.  I've closed solution and re-opened.  I've checked all XAML pages at line 5.  I've deleted the ScaleBar.xaml in my UserControls folder.

How do I really, really clean out all reference to ScaleBar so I can migrate to 3.0?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Old templates were using the ScaleBar inside the Navigator custom control.
Check your Navigator Style.
Check also that app.xaml or generic.xaml doesn't still reference the old scalebar.
0 Kudos
PLadd
by
Frequent Contributor
In generic.xaml I had a reference to ScaleBar.xaml as a ResourceDictionary, but I had already removed that.  The app.xaml page reference NavigationStyle.xaml.  I went through that with a fine-toothed comb but came up empty.  And then I removed the entire template for <Style TargetType="esri:Navigation" x:Name="NavigationStyle"> but continue to get the same error.

I just don't see any other templates that could possibly be related to ScaleBar.

Got any other suggestions?
0 Kudos
deleted-user-ATjHIWsdQYmT
Deactivated User
Do you have a reference to the old pre 3.0 assembly in your XAML?
0 Kudos
PLadd
by
Frequent Contributor
No.  All assembly references are good.
0 Kudos
MiguelRueda
Emerging Contributor
I'm having a similar problem.  I've removed all references to the ScaleBar element but at runtime I am still getting XamlParseException:

"The type 'ScaleBar' was not found. [Line: 5 Position: 36]"

I've done a search for ScaleBar on the entire solution but can't find any references.  I've closed solution and re-opened.  I've checked all XAML pages at line 5.  I've deleted the ScaleBar.xaml in my UserControls folder.

How do I really, really clean out all reference to ScaleBar so I can migrate to 3.0?


The funny thing is that i got same error in same line and position, i think is because the compiler is not cleaning right my app... but i don't find the solution either =(
0 Kudos