且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IIS网站项目中发布和浏览后

更新时间:2022-12-24 20:11:59

确保验证首选32位的设置。

请参阅以下链接: -

http://***.com/questions/1648213/could -not-load-file-or-assembly-xxx-or-one-of-dependencies-an-attempt-was [ ^ ] />
http://***.com/questions/41449/i-get-a-an-attempt-was-made-to-load-a-program-with-an-incorrect-format- error -o [ ^

Error message "Could not load file or assembly 'Owner.BusinessLogic' or one of its dependencies.An attempt was made to load a program with an incorrect format."

I develop by 3 tier .2 class library projects call owner.DataAccess and owner.BusinessLogic and 1 website project call HRMSweb.
The project is build succeed and can browse and run.But i publish the website and place the published folder to C:\inetpub\wwwroot . Show above error.Everyone Please help me.

my pc is windows 8 64bit and IIS is version 6.

Make sure you verify your setting for "Prefer 32-bit".
refer below links :-
http://***.com/questions/1648213/could-not-load-file-or-assembly-xxx-or-one-of-its-dependencies-an-attempt-was[^]
http://***.com/questions/41449/i-get-a-an-attempt-was-made-to-load-a-program-with-an-incorrect-format-error-o[^]