在IIS网站项目中发布和浏览后 [英] After publish and browse in IIS website project

查看:58
本文介绍了在IIS网站项目中发布和浏览后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误消息无法加载文件或程序集'Owner.BusinessLogic'或其依赖项之一。尝试加载格式不正确的程序。



我通过3层.2类库项目开发,调用owner.DataAccess和owner.BusinessLogic和1个网站项目调用HRMSweb。

项目构建成功,可以浏览和运行。但是我发布了网站并将发布的文件夹放在C:\inetpub \ www.root。显示以上错误。每个人都请帮帮我。



我的电脑是Windows 8 64位,IIS是版本6.

解决方案

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

请参阅以下链接: -

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


这篇关于在IIS网站项目中发布和浏览后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆