Web application didn't run after update to vs 2008

Web application didn't run after update to vs 2008

Old forum URL: forums.lhotka.net/forums/t/4586.aspx


hanami279 posted on Sunday, March 30, 2008

Hi all,

I have some problem with old csla poject. I had a CSLA based project with CSLA on .Net framework 2.0. The application run perfectly but customer want to apply new change and i need to maintain this project.

This application is written with VS 2005, but now i use VS 2008 to modify it. When i open, a dialog box appear to ask for update solution. I choose update but do not change framework target (remaining .Net framework 2.0). After that i build solution and test in debug mode. When i browser for url of web application i get message:

"Could not load file or assembly 'PresentationCore' or one of its dependencies. An attempt was made to load a program with an incorrect format."

I could not understand what was happen with my project.

I have install .Net framework 2.0, 3.0 and 3.5.

I use CSLA version 3.0.2 on Windows XP x64 edition with Visual Studio 2008

Thanks so much.

hanami279 replied on Sunday, March 30, 2008

Hi,

After few hour to search by Google i found out that, this is a problem with .Net framework, not CSLA.

I go to "bin" directory of web project and delete two file:

PresentationCore.dll and System.Printing.dll

And everything is back to normal.

As i want to share exp with others peopel maybe in same situation like me.

Thanks.

Copyright (c) Marimer LLC