What would be the best (easiest and fastest) way to provide an access between 64-bit application (ASP.NET) and 32-bit assembly (.NET 32-bit database driver).
1) I’ve got complete control over this two pieces of code (64-bit and 32-bit),
2) They both run on the same machine,
3) Security is not an issue,
4) Performance is important.
Run the ASP.NET application processes in 32-bit mode. This is the only way to get it to work.
For example, Crystal Reports XI does not have a 64-bit driver. In order to run the report, you must run the ASP.NET app in 32-bit mode on a 64-bit server.
On IIS 6.0:
In IIS 7.0, you can set the 32 or 64-bit per application pool whereas on IIS 6.0 it’s the entire processes of the server.