编译器错误消息:CS0246:找不到类型或名称空间名称'Type/Namespace'(是否缺少using指令或程序集引用?) [英] Compiler Error Message: CS0246: The type or namespace name 'Type/Namespace' could not be found (are you missing a using directive or an assembly reference?)

查看:425
本文介绍了编译器错误消息:CS0246:找不到类型或名称空间名称'Type/Namespace'(是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,
上传项目时出现编译错误,但在LocalHost中正常工作,我找不到真正的问题.

它表明找不到Type是名称空间,但是我在我的项目中有该名称空间....

我现在能做什么?请先帮助我,谢谢......

只有在上传我的项目后,贝娄错误才会出现在我身上




Hello Friends,
I having compilation error when upload my project but it is working normally in LocalHost I can''t able find what''s the actual problem.

It show''s that Type are namespace could not be found but i''m having that namespace in my project....

What Can I do now? Please Help Me Thanks in Advance......

Bellow error only come for me after uploaded my project




Server Error in '/' Application.



编译错误

说明:在编译资源期间发生错误

需要处理此请求.请查看以下特定的

错误详细信息,并适当地修改您的源代码.

编译器错误消息:CS0246:类型或名称空间名称

找不到"dotne"(您是否缺少using指令

还是程序集引用?)


源错误:

第14行:公共局部类Operators_Login:System.Web.UI.Page

第15行:{

第16行:dotne.DBconnection objfunc = new dotne.DBconnection();

第17行:DataSet ds = new DataSet();

第18行:受保护的无效Page_Load(对象发送者,EventArgs e)

源文件:c:\ inetpub \ vhosts \ zentruminfotech.com \ httpdocs \ Live Chat \ Operators \ Login.aspx.cs行:16


我现在该怎么办?请帮助我

在此先感谢...



问候
Shiva



Compilation Error

Description: An error occurred during the compilation of a resource

required to service this request. Please review the following specific

error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name

''dotne'' could not be found (are you missing a using directive

or an assembly reference?)


Source Error:

Line 14: public partial class Operators_Login : System.Web.UI.Page

Line 15: {

Line 16: dotne.DBconnection objfunc = new dotne.DBconnection();

Line 17: DataSet ds = new DataSet();

Line 18: protected void Page_Load(object sender, EventArgs e)

Source File: c:\inetpub\vhosts\zentruminfotech.com\httpdocs\Live Chat\Operators\Login.aspx.cs Line: 16


What Can I do now? Please Help Me

Thanks in Advance......



Regards
Shiva

推荐答案

您是否使用任何第三方DLL?

检查以确保将任何DLL复制到您的输出目录.看来服务器无法找到dotne.DBconnection类.

您是否正在使用本地Web服务器或计算机上的IIS进行开发?我会尝试部署到另一个IIS机器上,最好是在您具有管理员权限的地方,以便您可以更好地解决这个问题.

最后(或也许首先),清理并重建整个解决方案,然后尝试另一种部署.

干杯.
Are you using any third-party DLLs?

Check to make sure that any DLLs are being copied to your output directory. It looks like the server isn''t able to find the dotne.DBconnection class.

Are you using the local web server, or IIS on your machine for development? I would try deploying to another IIS box, preferably where you have admin rights, so that you can work through this a little better.

Finally (or maybe firstly), clean and rebuild your entire solution, then try another deployment.

Cheers.


这篇关于编译器错误消息:CS0246:找不到类型或名称空间名称'Type/Namespace'(是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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