CS1595

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
 
P

Patrik Löwendahl

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.
 
M

mikeb

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.
 
P

Patrik Löwendahl

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.
 

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