CS1595

  • Thread starter Thread starter Igor
  • Start date Start date
I

Igor

I am getting this error while I am trying to run
my web server app.

Compiler Error Message: CS1595: 'LiveWeb.Global' is
defined in multiple places; using definition
from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\Temporary ASP.NET Files\liveweb\ab66a079\709df2e7
\assembly\dl2\90eff9dc\ebf496c0_bf98c301\ALKLiveWeb.DLL'

Does anyone have any ideas why my ALKLiveWeb.dll is
getting copied to the Windows directory (according to my
project settings, it should only go into the bin folder).

Thanks,
Igor
 
That's a shadow folder which the asp.net runtime uses when firing up your
asp.net application no need to worry,

your problem is that you have two classes named Global in your project, find
them and remove one of them and you'll be fine.
 
Igor said:
I am getting this error while I am trying to run
my web server app.

Compiler Error Message: CS1595: 'LiveWeb.Global' is
defined in multiple places; using definition
from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\Temporary ASP.NET Files\liveweb\ab66a079\709df2e7
\assembly\dl2\90eff9dc\ebf496c0_bf98c301\ALKLiveWeb.DLL'

Does anyone have any ideas why my ALKLiveWeb.dll is
getting copied to the Windows directory (according to my
project settings, it should only go into the bin folder).

Thanks,
Igor

One way to get this problem is to have a compiled version of the class
in a DLL in the bin directory, and also have the @Page directive specify
the code-behind source ("src=somefile.cs") so that ASP.NET also compiles
a new DLL with the class.

If you have a pre-compiled code-behind DLL, you do not want to specify a
src file in the Page directive.
 
Use a texteditor and look into your Global.asax, it might be that you've
referenced another file ther, or built a class in there

--
Patrik Löwendahl
cshrp.net - " Elegant code by witty programmers "
cornerstone.se - " IT Training for professionals "

Thank you Patrik,
I have only been able to find one declaration for class
named Global in my project.
 
Back
Top