添加服务引用后的Reference.vb具有“未定义类型nnn” [英] Reference.vb after adding a Service references has "Type nnn is not defined"

查看:252
本文介绍了添加服务引用后的Reference.vb具有“未定义类型nnn”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个WCF服务(Bill_Status.svc)。 我有两个使用它的Web应用程序。 其中一个工作得很好,一个没有。 它不起作用的那个有一个"根名称空间"。在项目级别定义,
工作的那个没有"根名称空间"。在项目级别定义。


在创建的Reference.vb文件中,我有以下内容...



错误是  ...

未定义类型'PEB.BusinessEntity.Bill_Status'。 


 


我相信它的与项目级别的命名空间相关。 如果我删除"PEB"前缀,引用满足,如果我删除"PEB.BusinessEnity",参考已满足, 如果我追加"全球"。到
前面  " PEB ..."满足参考。


 


我的问题然后是,我如何添加此服务,并让这些引用具有"全局"和"全局"。在附加或"PEB"上删除?


 


感谢您的帮助。

解决方案

嗨RNes,


这个论坛是关于"WCF数据服务"的,你可以在"WCF"处询问与WCF相关的问题。论坛( http:// social.msdn.microsoft.com/Forums/en-US/wcf/threads )。


I have created a WCF Service (Bill_Status.svc).  I have two web applications that use it.  One of them it works just fine, one does not.  The one that it does not work has a "Root Namespace" defined at the project level, the one that works does not have a "Root Namespace" defined at the project level.

In the Reference.vb file that gets created I have the following ...

The error is ...

Type 'PEB.BusinessEntity.Bill_Status' is not defined. 

 

I am sure that its related to the namespace at the project level.  If I remove the "PEB" prefix, the reference is satisfied, If I remove the "PEB.BusinessEnity" the reference is satisfied,  If I append "Global." to the front of  "PEB..." the reference is satisfied.

 

My question then is, How do I add this service and have these references either have "Global" on appended or "PEB" removed?

 

Thanks for your help.

解决方案

Hi RNes,

This forum is about "WCF Data Services", you can ask WCF related questions at "WCF" forum (http://social.msdn.microsoft.com/Forums/en-US/wcf/threads).


这篇关于添加服务引用后的Reference.vb具有“未定义类型nnn”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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