all groups > dotnet general > may 2007 >
You're in the

dotnet general

group:

'class' is defined in multiple places


'class' is defined in multiple places Josh
5/30/2007 4:32:31 PM
dotnet general:
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?


Re: 'class' is defined in multiple places Kevin Spencer
5/31/2007 8:55:15 AM
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

[quoted text, click to view]

Re: 'class' is defined in multiple places Josh
5/31/2007 2:08:27 PM
[quoted text, click to view]

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.

Re: 'class' is defined in multiple places Josh
5/31/2007 3:14:34 PM
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.

AddThis Social Bookmark Button