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.