473,587 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

publish web website got compilor error CS0433 for master page

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

Dec 14 '06 #1
3 7476
You may want to check and verify that you don't have two dlls that have the
definition for this class. That's one of the problems with using the web
site project, it compiles the files in a directory as needed and assigned
them some number to make them unique. Unfortunately, this will leave you
with two different dlls that contain the same exact namespace references,
which is probably what this is telling you about. This means you have to
ensure you delete the old dlls first. You may want to try the new Web
Application Project which is downloadable over at www.asp.net. It
precompiles the site into a single dll in the same fashion that VS 2003 did.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

<ni**********@l exisnexis.comwr ote in message
news:11******** **************@ 80g2000cwy.goog legroups.com...
>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

Dec 14 '06 #2
Thanks for the help. I found the problem. I have backed up my
MasterPage.mast er as MasterPage_back up.master long time ago. As a
result, both files got compiled and they define exactly the same class.
I used to use Visual C++ 6.0 and it will generate a compilation error
when two source files define the same class. Visual Studio 2005 should
do a better hob to detecdt such error during compilation.

Dec 15 '06 #3
re:
Visual Studio 2005 should do a better hob to detecdt such error during compilation
Or, you could simply rename your backup files with the .bak extension.
That would solve the problem, too.

MasterPage.mast er.bak won't be compiled.

I often have *two* backup files for different versions.
I rename the older backup *.old. ( MasterPage.mast er.old , in this case ).

That way, I have references to previous configurations, while avoiding compilation errors.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
<ni**********@l exisnexis.comwr ote in message
news:11******** *************@t 46g2000cwa.goog legroups.com...
Thanks for the help. I found the problem. I have backed up my
MasterPage.mast er as MasterPage_back up.master long time ago. As a
result, both files got compiled and they define exactly the same class.
I used to use Visual C++ 6.0 and it will generate a compilation error
when two source files define the same class. Visual Studio 2005 should
do a better hob to detecdt such error during compilation.

Dec 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1820
by: Mike S. | last post by:
VS 2005 Professional RTM (8.0.50727.42) on Windows 2000 ASP.NET website Last week I converted a 1.1 ASP.NET (VB) project to 2.0. The conversion was painless on the VB code side. It was a lot of work however converting from a pseudo master page to a true master page but only from the HTML 4.0 to XHTML 1.0 standpoint. VS 2005 IDE seems to be...
2
1604
by: wschaub | last post by:
When publishing Web Applications different rules are applied than those applied to Building. This is sometimes a little late in the process to discover bugs at least give us a warning when building. Also when using Master pages and publishing we receive an error that the page is Ambiguous because it is contained within all the dll's. When...
8
3156
by: Graham | last post by:
I noticed a similar post awhile ago and in terms of my problem it wasnt a suitable answer so I will ask again. I have VS2005 running a on development machine in my office where I do all my development on existing and new applications. This environment also has its own Sql Server with dev versions of all our live Databases. Our live production...
6
3827
by: ewolfman | last post by:
Hi, I've read many posts in several news groups, but can't figure out how to publish my website. The specific error I'm getting (on the "successfully published website") is "Could not load the assembly 'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the page". I checked - The assembly DOES exist in the target web...
1
1950
by: cadonahue | last post by:
VS 2005 Professional RTM (8.0.50727.42) on Windows 2000 ASP.NET website Last week I converted a 1.1 ASP.NET (VB) project to 2.0. The conversion was painless on the VB code side. It was a lot of work however converting from a pseudo master page to a true master page but only from the HTML 4.0 to XHTML 1.0 standpoint. VS 2005 IDE seems to...
3
2392
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on Windows 2000 Server I got the following error: Compiler Error Message: CS0433: The type 'CrystalDecisions.Shared.ExportOptions' exists in both ...
21
8529
by: Mark Rae | last post by:
Hi, I have an ASP.NET 2 web application (not web site) project and am using a web deployment project to deploy to the testing, then the production server. All has been working well for months now, but today after a recompilation, the app is throwing the error below when accessing a certain page, although there are no errors in the...
3
15510
by: mrajanikrishna | last post by:
Hi friends, I've designed an application in my local system using VS.NET 2003. (VB.NET and ASP.NET) Its working fine. Now, I want to publish to my ISPs server. I've FTP account. How can I publish to server? Which files are needed to transfer? in classic ASP, I copied all the files(what I used in my virtual
3
6281
by: =?Utf-8?B?SGVyYg==?= | last post by:
I've developed an ASP.NET website that runs fine on my local WinXP IIS and on my server's IIS, both are IIS6.0 The site uses a master page that has the following declaration: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="HVOA.master.vb" Inherits="HVOAWebsite.HVOA" %> The site will actually be hosted at an external hosting...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.