Hej, Kan detta vara av intresse måntro: http://blogs.msdn.com/carloc/archive/2007/06/12/compiler-error-message-cs0433-in-asp-net-2-0.aspxCompilation Error -- CompilerGlobalScopeAttribute()
Jag har en liten asp.net applikation (.net 2.0 och VS 2008). när jag debuggar och kör den i VS allting går bra. Jag deployar den genom att klickar på Publish Web site i Solution explorer. När jag browsar till den genom att köra http://localhost:88/default.aspx får jag följande felmeddelande.
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\c4254010\b2850743\assembly\dl3\bd35e9bb\ee86cc9e_c3ffc801\App_Web__xh1haed.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c4254010\b2850743\assembly\dl3\ae57700a\388b6f9e_c3ffc801\App_Web_drcicgyp.DLL'
Source Error:
Line 116:
Line 117: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 118: public class default_aspx : global::_Default, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 119:
Line 120: private static bool @__initialized;
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c4254010\b2850743\App_Web_default.aspx.cdcab7d2.vpppdgdc.0.cs Line: 118 Sv: Compilation Error -- CompilerGlobalScopeAttribute()