I get this error that stops me from using XAML PowerToys
You may need to put Csla.dll, and probably your business assemblies, into the GAC.
It sounds like the tool is spinning up a secondary AppDomain - and take it from me, that is a really bad idea in general. It is nearly impossible for such an AppDomain to find and load assemblies from the primary development environment, and they probably didn't figure out how to do it.
Ha! I say that, but I never figured out how to do it reliably either, so my solution only worked around 90% of the time...
The typical answer is to put the assemblies into the GAC, because then the type loader can resolve them from that location.
Everything I'm saying here is assuming you are encountering the failure in Visual Studio.
If you are encountering the failure at runtime the GAC may still help - but in that case there is a very well known solution that they should implement in their tool, because any dynamically loaded assembly will fail without this workaround.
I just installed the newly released XAML 4.0 power toys
yesterday afternoon and I haven’t seen a problem yet. I haven’t done much but
so far out of the box it seems to be okay. Are you using 4.0?
From: RockfordLhotka
[mailto:cslanet@lhotka.net]
Sent: Thursday, February 12, 2009 8:20 PM
To: jaddington@alexandergracie.com
Subject: Re: [CSLA .NET] XAML PowerToys is not working with CSLA
You may need to put Csla.dll, and probably your business assemblies, into
the GAC.
It sounds like the tool is spinning up a secondary AppDomain - and take it
from me, that is a really bad idea in general. It is nearly impossible for such
an AppDomain to find and load assemblies from the primary development
environment, and they probably didn't figure out how to do it.
Ha! I say that, but I never figured out how to do it reliably
either, so my solution only worked around 90% of the time...
The typical answer is to put the assemblies into the GAC, because then the
type loader can resolve them from that location.
Everything I'm saying here is assuming you are encountering the failure in
Visual Studio.
If you are encountering the failure at runtime the GAC may still help - but
in that case there is a very well known solution that they should implement in
their tool, because any dynamically loaded assembly will fail without this
workaround.
Yes I am using ver. 4.0
I guess that it must be something with the project I am working on because all the developers on the project get the same problem.
Try to see if you can run the menu "Create form, ListView or Grid ..." and let me know. If you are having the same problem then I will contact Karl.
What is your BO like that you are trying to build from? I’ll
try the same sort of thing
jack
From: mhnyborg [mailto:cslanet@lhotka.net]
Sent: February-14-09 6:23 AM
To: jaddington@alexandergracie.com
Subject: Re: [CSLA .NET] RE: XAML PowerToys is not working with CSLA
Yes I am using ver. 4.0
I guess that it must be something with the project I am working on because
all the developers on the project get the same problem.
Try to see if you can run the menu "Create form, ListView or Grid
..." and let me know. If you are having the same problem then I will
contact Karl.
I found that I can right click and generate the BusinessForm if
I click on the original version of the class I want to use. If I click on
the linked version I get a reflection error – but not the one you are
getting.
From: mhnyborg
[mailto:cslanet@lhotka.net]
Sent: Saturday, February 14, 2009 3:35 PM
To: jaddington@alexandergracie.com
Subject: Re: [CSLA .NET] RE: RE: XAML PowerToys is not working with CSLA
Silverlight with linked files and objectfactory
Copyright (c) Marimer LLC