Application Runs when Debugging but not when Published.
Posted
by corymathews
on Stack Overflow
See other posts from Stack Overflow
or by corymathews
Published on 2010-05-10T16:05:49Z
Indexed on
2010/05/10
16:14 UTC
Read the original article
Hit count: 272
When publishing my web application and then running it will return the error
"Could not load file or assembly 'BaseApplicationName' or one of its dependencies. An attempt was made to load a program with an incorrect format."
However if I run the application through debugging (f5) it runs correctly.
I guess what it comes down to is
what differences are there when running an application through debugging vs publishing it that would cause a problem like this?
When publising I have it set to delete all existing.
History of how it started... I added the 32 bit Oracle.DataAccess dll to my 64 bit system. It would not work and crash giving the same error as above but with the Oracle.DataAccess name instead of the baseApplicationName. I have since removed all references to it and removed the dll to try and get it to run without it once again.
Any advice?
© Stack Overflow or respective owner