I crate a new asp.net 2.0 web site using Visual Studio 2005. It run
fine in visual studio. I then click Build Publish Website to build
the dll and copy them to the IIS virtual directory along with all the
..aspx files. I run the application in IIS and got the following error:
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 'MasterPage' exists in both
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\news\4088 04a4\6fb240fa\a ssembly\dl3\56c 26b89\5255fd02_ 8e1fc701\App_We b_448itj0s.DLL'
and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\news\4088 04a4\6fb240fa\a ssembly\dl3\0e5 65373\78306203_ 8e1fc701\App_We b_hkd2czr6.DLL'
Source Error:
Line 110:
Line 111:
[System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
Line 112: public class masterpage_mast er : global::MasterP age {
Line 113:
Line 114: private System.Web.UI.I Template
@__Template_mai nContent;
Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET
Files\news\4088 04a4\6fb240fa\A pp_Web_masterpa ge.master.cdcab 7d2.nxp-zado.0.cs
Line: 112
Please advise