缺少using指令或程序集引用

编程入门 行业动态 更新时间:2024-10-14 14:22:08
本文介绍了缺少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文件夹。 Copy the "Registration" dll to your ASP 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指令或程序集引用

本文发布于:2023-11-09 04:29:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571406.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:指令   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!