cs0246“找不到类型或名称空间名称“引用"(您是否缺少using指令或程序集引用" [英] cs0246 “The type or namespace name 'Reference' could not be found (are you missing a using directive or an assembly reference”

查看:724
本文介绍了cs0246“找不到类型或名称空间名称“引用"(您是否缺少using指令或程序集引用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET应用程序,该应用程序是在Visual Studio 2005中开发的.在此应用程序中有一个Web服务的引用,该服务也是在VS 2005中开发的.当您在VS中的解决方案资源管理器中输入Web服务的URL后添加对Web服务的引用时,您给该引用起了一个名称,让我在添加引用"按钮之前仅将其命名为引用".将添加一个名为Reference的文件夹,该文件夹在Web应用程序中的* .disco,*.discomap和* .wsdl文件中.然后,通过在* .aspx.cs中添加使用引用"来引用此Web服务.该应用程序在几年中一直运行良好.我们正在将此Web应用程序移至Windows 2003 64位.现在的问题是,当我进入* .aspx页面时,会不断出现错误cs0246找不到类型或名称空间名称"Reference"(您是否缺少using指令或程序集引用).

I have a asp.net application, which is developed in Visual Studio 2005. There is a reference to a web service, which is also developed in VS 2005, in this application. When you are adding a reference to a Web Service in Solution Explorer in VS after you typed the URL for web service you give the reference a name lets me call it just for Reference before "Add Reference" button. There will be added a folder by name Reference, where there are *.disco, *.discomap and *.wsdl files under in the web application. Then you refer to this web service by adding "using Reference" in *.aspx.cs. This application worked fin in couple of years. We are moving this web application to Windows 2003 64 bits. The problem is now when I’m going to *.aspx page I get constantly the error cs0246 "The type or namespace name ''Reference'' could not be found (are you missing a using directive or an assembly reference".
Is anyone knows what is wrong and can anyone help to tell me how I can solve this problem?

推荐答案

看看这个:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/20bf26ba2a0cc203/692269b18f8c0955?lnk=st&q=CS0246&rnum=3#692269b18f8c0955
Take a look at this :

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/20bf26ba2a0cc203/692269b18f8c0955?lnk=st&q=CS0246&rnum=3#692269b18f8c0955


这篇关于cs0246“找不到类型或名称空间名称“引用"(您是否缺少using指令或程序集引用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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