Compiler Error: "XXXX" is defined in multiple places

S

SonicChen

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

CS1595: "Runchs_WebUI.Global" is defined in multiple places£»using
definition from "c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET
Files\runchs_webui\37fe91d8\586e7567\assembly\dl2\9b334611\de283d9c_2bfac501
\Runchs.WebUI.DLL"

source:



ÐÐ 26£º
ÐÐ 27£º [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
ÐÐ 28£º public class Global_asax : Runchs_WebUI.Global {
ÐÐ 29£º
ÐÐ 30£º private static bool __initialized = false;

source file: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\runchs_webui\37fe91d8\586e7567\hnm_hoxo.0.cs line: 28

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

Chris Crowe [MVP 1997 -> 2006]

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
 
G

Gerrit.Horeis

This happens when you rename your namespaces. Simply delete all Files
from:

c:\windows\micrososft.net\framework\v1.1.4322\Temporary ASP.NET\
c:\documents and settings\(username)\vswebcache
c:inetpub\wwwroot\\(program dir)\bin

This works fine for me.

Greets

Gerrit Horeis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top