Select to view content in your preferred language

Error in ArcGIS API 3.0 silverlight templates MainPage.xaml file in Visual studio

1198
4
08-14-2012 03:40 AM
PhanindraKuchipudi
Emerging Contributor
I am trying to develop a silvelight map application using 3.0 API and silverlight 5. I have downloaded example templates from template gallery and when I try to open them in visual studio 2010(professional edition) MainPage.xaml designer is showing method not found error. When I try to reload the designer, it is opening for fraction of seconds and going to error again. I couldn't find out the problem behind it. If there is an error, designer should not load after clicking reload also....but why it is opening for a fraction of seconds and why it is going to error then. When I debug, application is getting opened in browser without error.

I am really confused how to make changes in MainPage.xaml design. Can anyone help to find out what method is missing to load the designer properly?

[ATTACH=CONFIG]16923[/ATTACH]

System.MissingMethodException
Method not found: 'System.String System.Environment.UnsafeGetFolderPath(SpecialFolder)'.
   at System.Windows.Application.CleanInBrowserAppDataCache()
   at System.Windows.Application.Application_Exited(Object sender, EventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)


Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException
An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
0 Kudos
4 Replies
TanyaOwens
Frequent Contributor
0 Kudos
dmacq
by
Occasional Contributor
I have the Blend SDK installed, SL 5 Tools, etc.  I've compiled, cleaned, recompiled.  I still get this error when loading MainPage.xaml. The installed templates (Showcase and Standard) load just dandy.

Any other suggestions?
0 Kudos
dmacq
by
Occasional Contributor
Figured out the issue.  The Image resources weren't being recognized as resources in the solution.  I tried excluding/including them and removing/adding them with no luck.  I finally just put the URI right in the image tag on MainPage.xaml.
0 Kudos
dmacq
by
Occasional Contributor
Sorry for the hijack, and all the self-replies.

I'm getting a ton of Unhandled Exception Errors with the 3.0 api and Silverlight 5.0.  If I remove references in my older application (2.4/4.0) it still works, or I get actual errors. Using this template with the newer stuff, everything is unhandled.  What am I doing wrong here?
0 Kudos