在App_Code文件夹下面写了个类文件,本地调试完全正常,但是上传到远程以后说:
Compiler Error Message: BC30002: Type 'InitClass' is not defined.
是什么原因呢?

解决方案 »

  1.   

    App_Code会自动编译的,你部署的还是直接拷贝程序代码上服务器的阿?
      

  2.   

    使用了发布,不过又有新的错误了。
    Parser Error Message: Could not load the assembly 'App_Web_hatmicr7'. Make sure that it is compiled before accessing the page.
      

  3.   

    上传到远程是什么意思?你发布后都会编译成dll的.不需要再考类文件了.
      

  4.   

    发布后都生成DLL文件了。直接传上去就可以了
      

  5.   

    app_code下的文件系统能自动识别