So I'm having a problem publishing my WebApp. I have set all the projects to AnyCPU in Configuration Manager. I was using a 32 bit version of Oracle.DataAccess.dll in my DAL but I need to use a 64 bit version for the server. The server is running a 64 bit version of Oracle.
Unfortunately when I put the 64 bit version of the dll in my project and rebuild it throws an error.
Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Any ideas would be greatly appreciated. I have been working on this one problem for a few days now and haven't been able to find help.
Oh also! I could actually publish before and it push the 32 bit version of the Oracle dll even though I had the 64 bit version in my DAL. I ended up removing the 32 bit version of Oracle off my computer so that wouldn't happen. But any ideas why it did that?