为什么在vs2005+sql2000发布网站成功,而上传到空间则出错
为什么在vs2005+sql2000发布网站成功,而上传到空间则出现如下错误: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 '_Default' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\790faf76\37af1ac7\assembly\dl3\e5b95b01\3842de4d_f629c901\App_Web_6wq-xf63.DLL' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\790faf76\37af1ac7\assembly\dl3\7eabb266\2680f54b_f629c901\App_Web_-9px_qpk.DLL'
Source Error:
Line 110:
Line 111: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 112: public class index_aspx : global::_Default, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 113:
Line 114: private static bool @__initialized;
Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\790faf76\37af1ac7\App_Web_index.aspx.cdcab7d2.jz0c9t9i.0.cs Line: 112
--------------------编程问答-------------------- 删除bin下生成的dll,重新编译试试
--------------------编程问答-------------------- 有删除并重启服务器,但问题一旧 --------------------编程问答-------------------- 1、删除bin下生成的dll,重新编译试试
2、检查服务器上的.net版本是否跟本地开发的.net版本一致。
3、权限文字,everyone的权限问题。 --------------------编程问答-------------------- 重新编译了几次,并删除c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root和重启服务器,问题还是一旧
.net版本一致,都是v2.0.50727
everyone的权限都已设置开通
--------------------编程问答-------------------- 使用的语言为C#,等候各位老师的帮助,谢谢 --------------------编程问答-------------------- _Default有重复,修改后问题已解决了,谢谢回复的各位老师
补充:.NET技术 , ASP.NET