2015-06-30 24 views
2

我有asp.net C#代碼和它工作正常在我的本地PC,但正如我在服務器上部署它罰全中所附圖片的錯誤看,也堆棧跟蹤Asp.Net錯誤

message:c:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 832d6e0a \ 60adae5 \ App_Web_employee.aspx.cdcab7d2.ob4tk_w7.0.cs(152):error CS0433:The type 'Employee'存在於'c:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 832d6e0a \ 60adae5 \ assembly \ dl3 \ b0d7055d \ 82782d6b_fcb2d001 \ App_Code.DLL'和'c: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 832d6e0a \ 60adae5 \ assembly \ dl3 \ 755f92ca \ f0f0aa6c_fcb2d001 \ App_Web_rczryygi.DLL'

堆棧跟蹤:在System.Web.Compilation.AssemblyBuilder.Compile() 在System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 在System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 在的System.Web .Compilation.BuildManager.GetVPathBuildResultInternal(虛擬路徑virtualPath,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,布爾throwIfNotFound,布爾ensureIsUpToDate) 在System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext上下文,VirtualPath virtualPath,布爾noBuild,布爾allowCrossApp,布爾allowBuildInPrecompile,Boolean throwIfNotFound,Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath vi rtualPath,HttpContext上下文,布爾allowCrossApp,布爾throwIfNotFound at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath,類型requiredBaseType,HttpContext上下文,Boolean allowCrossApp) 在System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext上下文,串的RequestType,virtualPath virtualPath,串physicalPath) 在System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在System.Web.HttpApplication.ExecuteStep(IExecutionStep步驟,布爾& completedSynchronously) 內部異常:

開客戶端瀏覽器顯示

運行時錯誤

<!-- Web.Config Configuration File --> 

<configuration> 
    <system.web> 
     <customErrors mode="Off"/> 
    </system.web> 
</configuration> 
+1

http://stackoverflow.com/questions/1757289/where-does-error-cs0433-type-x-already-exists-both-a-dll-and -b-dll-來吧 – daryal

+0

http://stackoverflow.com/questions/101693/customerrors -關閉模式 –

回答

1

清潔你可以在這裏找到c:\Windows\Microsoft.NET\Framework64\v4.0.30319\然後再試一次臨時ASP.NET文件夾應做