473,761 Members | 6,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler Error: "XXXX" is defined in multiple places

i have read the article
http://support.microsoft.com/default...;EN-US;Q318274
and try those two solutions but message still come:

CS1595: "Runchs_WebUI.G lobal" is defined in multiple places£»using
definition from "c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
ASP.NET
Files\runchs_we bui\37fe91d8\58 6e7567\assembly \dl2\9b334611\d e283d9c_2bfac50 1
\Runchs.WebUI.D LL"

source:

ÐÐ 26£º
ÐÐ 27£º [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
ÐÐ 28£º public class Global_asax : Runchs_WebUI.Gl obal {
ÐÐ 29£º
ÐÐ 30£º private static bool __initialized = false;

source file: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\runchs_we bui\37fe91d8\58 6e7567\hnm_hoxo .0.cs line: 28

it's chinese message, and i'v translated it.
Dec 6 '05 #1
2 2106
I have had this error when I have had a class and then compiled it to a DLL
and then I have created a new class with a new DLL name.

Hence I have two DLL's with the same class name and same NameSpace.

Normally I delete the contents of the BIN folder and re-compile and the
problem goes away.

--

Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------
"SonicChen" <so************ @sina.com.cn> wrote in message
news:uU******** *******@TK2MSFT NGP12.phx.gbl.. .
i have read the article
http://support.microsoft.com/default...;EN-US;Q318274
and try those two solutions but message still come:

CS1595: "Runchs_WebUI.G lobal" is defined in multiple places£»using
definition from "c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
ASP.NET
Files\runchs_we bui\37fe91d8\58 6e7567\assembly \dl2\9b334611\d e283d9c_2bfac50 1
\Runchs.WebUI.D LL"

source:

ÐÐ 26£º
ÐÐ 27£º
[System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
ÐÐ 28£º public class Global_asax : Runchs_WebUI.Gl obal {
ÐÐ 29£º
ÐÐ 30£º private static bool __initialized = false;

source file: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary
ASP.NET
Files\runchs_we bui\37fe91d8\58 6e7567\hnm_hoxo .0.cs line: 28

it's chinese message, and i'v translated it.

Dec 6 '05 #2
This happens when you rename your namespaces. Simply delete all Files
from:

c:\windows\micr ososft.net\fram ework\v1.1.4322 \Temporary ASP.NET\
c:\documents and settings\(usern ame)\vswebcache
c:inetpub\wwwro ot\\(program dir)\bin

This works fine for me.

Greets

Gerrit Horeis

--
Software Engineer
CI-Gate Development & Consulting GmbH
http://www.ci-gate.de
http://www.xira.de

Dec 8 '05 #3

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

Similar topics

6
4752
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
9
2793
by: lbj137 | last post by:
I have two files: A.c and B.c. In both files I define a global variable, int xxxx; When I compile with a green hills compiler (and also i think with a GNU compiler) I get no errors or warnings. Only when I initialize xxxx to two different values in A.c and B.c respectively do I get a 'multiple definitions' error. I was under the impression that I would get such an error even without initializing xxxx twice, simply because i am (ostensibly)...
102
5706
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
5
2110
by: ad | last post by:
When I study the Portal Starter Kit (http://www.asp.net/Default.aspx?tabindex=8&tabid=47) There is a line in DesktopPortalBanner.ascx.cs PortalSettings portalSettings = (PortalSettings) HttpContext.Current.Items; Where to define HttpContext.Current.Items?
6
2718
by: Martin Eyles | last post by:
Hi, I have a page that contains the following <div runat="server" id="Pikea"> <object runat="server" id="PiTV" style="width:560px; height:560px" classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT> </object> </div>
1
2985
by: Jay | last post by:
Hi, I have been working on ASP.NET 2.0. When I was trying to work with one of the master pages, I used some classes (.vb files) in App_code directory. When the application is run, it gives me the following error. BC40056: Namespace or type specified in the Imports 'XXXX' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported...
1
5103
MMcCarthy
by: MMcCarthy | last post by:
Hi guys There is a question in the lounge that some of you may be able to help with. If so I'll try to get it moved. Just reply here if you want me to do so. http://www.thescripts.com/forum/thread558360.html Mary
7
6648
by: Mark Carrington | last post by:
I'm developing a web app in .NET 2 using C#, and occasionally see this error, apparently something to do with the theme used on the site: Compiler Error Message: The compiler failed with error code 1. Clicking the "Show Detailed Compiler Output" link on the error page shows a large command line that looks like it's using the vbc compiler to build the auto-generated theme code, but doesn't display any useful error messages. Executing...
0
9345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9957
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9905
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8780
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.