当前位置:编程学习 > C#/ASP.NET >>

急!急!急!本地测试和国内服务器都没问题,国外服务器就出错,不能引用其它类

Server Error in '/' Application.
--------------------------------------------------------------------------------

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 'Class1' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

 

Line 13:     protected void Page_Load(object sender, EventArgs e)
Line 14:     {
Line 15:         Class1 s = new Class1();
Line 16:     }
Line 17: }
 
源代码 

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 s = new Class1();
    }
}
源码里就只有一行(Class1 s = new Class1();)代码,App_Code文件夹里只有一个Class1.cs的文件

报错找不到Class1文件
有点莫名奇妙
那位遇到过这个问题,帮个忙啊 --------------------编程问答-------------------- up --------------------编程问答-------------------- 国际化问题吧 --------------------编程问答-------------------- up --------------------编程问答-------------------- 没人知道吗 --------------------编程问答-------------------- 楼主出了国,就要考虑很多的问题了。那在你的编译好的dll文件中打开看看是不是有class1这个文件。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,