'class' is defined in multiple places

  • Thread starter Thread starter Josh
  • Start date Start date
J

Josh

Hi,

I've googled this but I'm not getting anwhere. I've obviously ensured that
the class is not defined twice. Its a web site ( the main dll ) that runs
perfectly on my development machine but fails when it gets run on the
server. I've been all over the server and deleted every other occurrance of
the DLL in question and cleared the Temporary ASP.Net Files in the
"Microsoft.Net" folder.

I've rebuilt, replaced and still not had any luck.

Does anyone have any other ideas?
 
It probably has the same name as a class in the CLR which is in an assembly
you have declared in your code with "using" or "imports". Just use the
fully-qualified name of the class, or rename it.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Kevin Spencer said:
It probably has the same name as a class in the CLR which is in an
assembly you have declared in your code with "using" or "imports". Just
use the fully-qualified name of the class, or rename it.

Thanks for trying, unfortunately this had been working, the latest release
which did not change any class names or namespaces just ran smack into this
problem.

Since then I've tried building the web site and distributing from another
machine. Deleting the web site and recreating in a differn't location still
no luck.

A day and a half later and I'm still stuffed.
 
OKay got a fix.

1. Stop web service
2. Delete temp internet files in the Framework directory.
3. Delete "local.dll" from web site bin folder.
4. Delete the web site from IIS and recreate it.

Only after doing these thing could I get it to work.

Step 1 on its own didn't work
Step 2 on its own didn't work
Step 3 on its own didn't work

Steps 1,2,3 together didn't work

You had to do all four.
 
Back
Top