PresentationCore and System.Printing copied to Bin Folder, causing errorPresentationCore and System.Printing copied to Bin Folder, causing error
Old forum URL: forums.lhotka.net/forums/t/7327.aspx
Smartie posted on Thursday, July 23, 2009
Hey,
So I've recently gotten a new pc, with vista 64bit.
I'm trying to continue work on my project in visual studio 2005, referencing the clsa 3.0.4.0 but the files PresentationCore.dll and System.Printing.dll are consistantly being copied into my projects bin folder, causing this error when I try to run the site in my browser:
"Could not load file or assembly 'PresentationCore' or one of its dependencies. An attempt was made to load a program with an incorrect format."
If I open explorer, go to my projects bin folder and delete the files, it works. I really, really do not want to have to do this each time I make a change and try and preview it in the browser.
I have opened the csla project up, and found this is the only place that references them, hence posting here about it. The references to those two files have copy local set to true, I don't seem to be able to change this, and if I could, personally I have no idea if it would fix it. My knowledge is quite limited on these things..
Has anyone any idea's why this is happening, the project has not changed since I ran it on my old pc with win xp 32bit.
Thanks
ajj3085 replied on Thursday, July 23, 2009
Its been a while, but I think for the 3.0x series there's a compiler directive you can set so that Csla won't compile the wpf stuff. Smartie replied on Thursday, July 23, 2009
Would it be possible to explain how you do that please?
Copyright (c) Marimer LLC