I am creating a 64-bit application in visual studio 2008 with .NET framework 3.5 sp1. I have a web-reference added into my project. Due to this sgen.exe is called by the .net compiler in the release mode.That build is failed due to this SQLite dll with the following error:
Error 1 An attempt was made to load an assembly with an incorrect format: D:\MyProject\Libraries\ThridPartyControl\System.Data.SQLite.dll.
If I set "Generate Serialization Assembly" to off then no error comes in compilation and it compiles successfully. But I want to generate serialization assembly for my project.
Is there any way to exclude this dll from sgen.exe run from visual studio or can I get new 64 bit dll that is compilable with sgen.exe.