I have just created a new asp.net 3.5 web application. I went to the application property and changed the platform target to x64. I didn’t write any code and i have not changed anything. Next i hit start debugging in Visual Studio. The following error occured:
Could not load file or assembly
“SOLUTION NAME”, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null’
or one of its dependencies. An attempt
was made to load a program with an
incorrect format.
Any one have an idea how to solve this?
Thanks.
Edit:
I have these warnings:
Warning 1 Assembly generation —
Referenced assembly
‘System.EnterpriseServices.dll’
targets a different processor
Warning 2 Assembly generation —
Referenced assembly ‘mscorlib.dll’
targets a different processor
Warning 3 Assembly generation —
Referenced assembly ‘System.Web.dll’
targets a different processor
Warning 4 Assembly generation —
Referenced assembly ‘System.Data.dll’
targets a different processor
Configuration manager:

I have found the problem.
It seems that Visual Studio and Cassini run as 32-bit applications. If i try to host my 64-bit ASP.NET application using Microsoft’s Cassini, i will get an exception.
So i deployed my solution on IIS, changed it to 64-bit, debugged it and every thing is working perfectly.