Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Expression Blend 2 September Preview reports erorrs in Tangerine's XAMLs
posted

Hi,

I tried to design XAMLs in the Tangerine project, but Blend 2 refuses to visualize the XAMLs, instead of it tells some schema errors.

The interesting is:

- 1st time (before I installed Blend 2 and) VS 2005 didn't tell any error messages and perfectly run the app.

- After installing Blend 2: Blend and VS reports the same schema errors right after loading the solution, but both of them allow to build and run the app without any messages. But visual designer of XAMLs in Blend says: "Invalid XAML"...

So my questions are:

- which version of MS Blend is compatible with Tangerine

- is it possible that XAML's schema has benn changed since Tangerine?

 

Any comments are welcome

Thx in advance

BBL

  • 11674
    posted

    Hi BBL,

    I spent some time investigating this today.  I was able to replicate a problem with Blend not properly loading the Enterprise Library assemblies at design-time; specifically, it was reporting that it couldn't load the Common assembly. 

    It appears that there are known issues w/ Blend and project references.  They list not being able to add project references, but I suspect that the issue of not loading the EntLib assembly is related.  The EntLib assemblies are not referenced directly by the Presentation project (which is intentional in the solution design)--they are copied over as needed (in Visual Studio and by the .NET compiler, I think) because they are referenced by the referenced LiberMagnus.Enterprise project. 

    This can be seen in that if you build and run it, you'll note it runs and that the required EntLib assemblies are copied into the .\bin\Debug directory of the Presentation project as expected.  It appears, however, that Blend does not follow the same linking procedures in its designer as does the .NET compiler--I imagine it only loads directly-referenced assemblies (which seems to be the case given the following workaround).

    In any case, you can resolve the problem by copying these assemblies into the Expression Blend folder in Program Files:

    • Microsoft.Practices.EnterpriseLibrary.Common.dll
    • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
    • Microsoft.Practices.ObjectBuilder.dll

    Alternatively, you can modify the Presentation project in Blend to add references to those files, which can be found under the Tangerine solution root:  .\LiberMagnus.Enterprise\LiberMagnus.Enterprise\File References\Enterprise Library.

    Both of these resolve the EntLib design-time loading error in Blend.  I am going to look into logging this as a bug with the Blend folks.  Hope this helps.