WCF服务库项目找不到参考其他项目 [英] WCF service library project can't find reference to other project

查看:85
本文介绍了WCF服务库项目找不到参考其他项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的解决方案两个项目:MyApp.Domain和MyApp.WebService。 MyApp.WebService是一个WCF服务库。

I have two projects in my solution: MyApp.Domain and MyApp.WebService. MyApp.WebService is a WCF service library.

我想使用一些实用功能,从MyApp.Domain。因此,在MyApp.WebService,我加入到MyApp.Domain参考。

I want to use some utility functions from MyApp.Domain. So in MyApp.WebService, I added a reference to MyApp.Domain.

智能感知把它捡起来就好了,它认识我需要调用的函数。但是,当我构建解决方案,我得到这个错误:

Intellisense picked it up just fine, it recognized the function I need to call. But when I build the solution, I get this error:

类型或命名空间名称'域'不存在命名空间'MyApp的存在(是否缺少程序集引用?)

使用MyApp.Domain.Utility;

这是怎么回事错在这里?

What's going wrong here?

推荐答案

确认两者都使用相同的配置文件......如果是使用客户机配置文件可能会收到此错误....此外,如果引用的程序集拥有它,您可能需要将其纳入项目以及其他组件提供一些参考。如果没有得到它确保两个有32和64位相同的设置...

Make sure both are using the same profile... if one is using the client profile you could be getting this error.... also if the referenced assembly has some references in it to other assemblies you may need to include them in the project as well. If that doesn't get it make sure both have the same setting for 32 vs 64 bit...

GL

这篇关于WCF服务库项目找不到参考其他项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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