名称空间中不存在类型或命名空间名称MyServiceAgent [英] The type or namespace name MyServiceAgent does not exist in the namespace

查看:95
本文介绍了名称空间中不存在类型或命名空间名称MyServiceAgent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在今天早上获得项目的最新版本后,我遇到了 Service Agent 命名空间的问题。以前它工作正常,也没有人改变服务代理名称。



IDE:Visual Studio 2010.



问题:命名空间中不存在类型或命名空间名称 MyServiceAgent



我有尝试删除代理并重新创建但没有运气。



它唯一有效的时间是我取消选中''重用类型''配置服务参考中的选项。但是,如果我继续使用此选项,那么它会创建许多代理类,并且不会有可重用性,并且类名也需要附加命名空间以避免由于 ambigous /冲突问题相同的类型。最后,必须在各个模块之间进行更改,这将花费大量时间。



亲切的是,我期待着解决此问题的最佳解决方案。



谢谢大家。

I am facing an issue with the Service Agent namespace after I have get latest version of my project today morning. Previously it was working fine and also nobody has changed the service agent name.

IDE: Visual Studio 2010.

Issue: The type or namespace name MyServiceAgent does not exist in the namespace.

I have tried by deleting the agent and recreating it but no luck.

The only time it works is when I uncheck ''Reuse types'' option in Configure Service Reference. But if I go ahead with this option then it creates lot of proxies classes and there will no Reusability and also class names need to be appended with namespace to avoid the ''ambigous''/conflict issues due to same types. Finally, the changes have to be done across the modules, which will take lot of time.

Kindly, I am looking forward for best possible solution to resolve this issue.

Thanks all.

推荐答案

专家建议:



尝试删除依赖关系引用Dll'的。再次更新服务并恢复删除的dll'的





好​​问题Hameed .... 。!记录日志问题。
Expert Suggestions:

Try to remove the Dependency reference Dll''s. Update the Service again and restore removed dll''s.


Good question Hameed.....! keep log questions.


这篇关于名称空间中不存在类型或命名空间名称MyServiceAgent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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