缺少using指令或程序集引用 [英] Missing a using directive or assembly reference

查看:190
本文介绍了缺少using指令或程序集引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





托管我的网站后出现以下错误。



Hi,

I got the following error after hosting my website.

Compiler Error Message: CS0246: The type or namespace name ''Registration'' could not be found (are you missing a using directive or an assembly reference?)





''注册''是类文件,在本地服务器上运行时不会显示上述错误。



请帮忙我有一个解决方案...



谢谢....



''Registration'' is the class file and the above error is not shown when run on the local server.

Please help me with a solution...

Thanks....

推荐答案

复制注册 dll到您服务器上的ASP.net文件夹。
Copy the "Registration" dll to your ASP.net folder on your server.


使用类文件命名空间名称;



将以上内容添加到命名空间列表中
using Class file namespace name;

add above to the namespace list


你好朋友......

你得到了这个错误,因为当你上传你的站点版本到你的主机服务器那个时候那个类程序集(dll) )文件正在从你的构建中搞砸......



或者如果你使用的话来自指定路径的类文件或dll,比如你从本地服务器的硬编码路径加载了dll文件,那么你需要在将站点上传到服务器后指定主机服务器的路径...



i认为它会解决你的问题......
Hello friend...
You got that error because when you upload you build version of you site to your host server at that time that class assembly (dll) file is messing in from your build...

or if you use that class file or dll from the specified path like you have load that dll file from hard coded path of your local server then you need to specify that path to you host server after uploading your site to your server...

i think it will solve your problem...


这篇关于缺少using指令或程序集引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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