Select to view content in your preferred language

Blend 4 and 2.1 release candidate?

1228
6
11-09-2010 01:32 PM
JMcNeil
Deactivated User
Hey everyone,

I have a silly hopefully easy question.  I just installed the 2.1 api and opened up V.S. 2010 repointed my refs and built my application.......Everything is GOOD and Running FINE! 😄

But when I open my project in Blend 4 I'm getting this error.....see screen shot attachment.

This particular project was started origianal built with 2.0 and I started out with the Frosted Tabs template but made a lot of changes to the look, feel, and functionality. 

So if I go to line Line 0, Position 0 in my xaml it is:

<UserControl x:Class="FrostedTabs.MainPage"

Like I said before everything is good in V.S. and the applicaition compiles and runs fine.....did I need something for blend or do I need to move the refs/dll somewhere for blend to find them currently I think they are at (C:\Program Files\ESRI SDKs\Silverlight\v2.1\ESRI.ArcGIS.Client.dll)

Thanks
J
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
Unfortunately we cannot view your attachment. Can you attach an image instead for the screenshot?

I believe the installation already takes care of updating Windows registry so Blend can point to the correct file location.
0 Kudos
JMcNeil
Deactivated User
Wow, Jennifer that was a fast response.  Umm you can't see my jpeg...let me try again...I convert it to a PNG and zip it:
0 Kudos
JenniferNery
Esri Regular Contributor
I can't view the StackTrace though 😛
0 Kudos
JMcNeil
Deactivated User
D'OH

So sorry....late in the day!  Have I mentioned you are extremely fast 😮
0 Kudos
JenniferNery
Esri Regular Contributor
Okay, I'll slow down 😛

It seems like the error message only happens in Design view. I'm pretty sure that if you open the MainPage Design view in VS 2010, it would also show some error. Blend and VS may not always report the same design-time error.

I could look into this further but you also mentioned that you did a lot of code change so I may not replicate the same issue.

For now, what I did was download FrostedTab from TemplateGallery. In VS 2010 Design view when I reload the designer, I get "Undefined CLR namespace error". In Expression Blend 4 Design view MainPage still loaded (unlike yours where you have a StackTrace) but the results include "Invalid XAML" error. Regardless of these two errors, the project compiled and run fine from VS and Blend.
0 Kudos
JMcNeil
Deactivated User
Hey Jennifer,

Thanks for the research - to answer your first question/comment
" I'm pretty sure that if you open the MainPage Design view in VS 2010, it would also show some error."
It does not show the same error message and I am able to view the project in VS design viewer and not blend Design because of that StackTrace.

While you were doing your reseach I did basically the same thing you described;)  I also started fresh with a new unchanged FrostedTabs template and it worked in blend and VS.

Then I remembered back in day I wanted to add a add shapefile graphic thing and I remember hearing/reading about this tool at http://esrislcontrib.codeplex.com/

So I built the library/dll add a bunch of code to make it work and my end users and myself really didn't care for it.  I took all the code out but I guess I left the referrence to the DLL (Vishcious.ArcGIS.SLContrib.dll).  :eek:  Once I delete the ref from my project it worked in blend.  I'm guessing since I built the library ref/dll in 2.0 it was breaking.  I don't need it so I'm good now and if I want it in the future I will rebuild with a 2.1 project and hope for the best.

Thanks again for your time and help.
J.
0 Kudos