网站上传服务器以后的问题
网站经生成发布上传到空间后运行就出现了下面的提示。不知道是什么情况。看了资料说删除app_code.dll,网站同样运行不了,说找不到这个文件奉上代码
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: CS0433: The type 'news' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5e9e754\9d08c74a\assembly\dl3\7e773816\86205f48_c0ebcc01\App_Web_kqcocdfg.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5e9e754\9d08c74a\assembly\dl3\8f9bef4c\f8358e46_c0ebcc01\App_Code.DLL'
Source Error:
Line 164:
Line 165: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 166: public class news_aspx : global::news, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 167:
Line 168: private static bool @__initialized;
Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5e9e754\9d08c74a\App_Web_news.aspx.cdcab7d2.dlut5ir-.0.cs Line: 166
'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root
下的所有内容。
另外,建议编译成单一的dll,这样部署就比较简单了 --------------------编程问答-------------------- 没搞懂。。。是删除root下面的内容然后发布网站再上传服务器吗?求指导,多谢 --------------------编程问答-------------------- 顶顶顶。。。求帮助 --------------------编程问答-------------------- 求大神来帮下啊
补充:.NET技术 , ASP.NET