473,383 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

'class' is defined in multiple places

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?

May 30 '07 #1
3 2418
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

"Josh" <s@a.comwrote in message
news:ec******************@TK2MSFTNGP05.phx.gbl...
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?

May 31 '07 #2
"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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.
May 31 '07 #3
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.
May 31 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: david Binney | last post by:
when i try to compile a simple class i get the message that there are multiple instances of the class which is as follows: Compiler Error Message: CS1595: 'Temperature.TemperatureCB' is defined...
3
by: david | last post by:
i am doing the walkthrough of an asp.net book and i have come to one of the tutorials where i am supposed to create a simple code behind method. but, when i follow the instructions in the book i...
2
by: jhe | last post by:
I have a user control HeaderControl which was shared by multiple Asp.Net Pages (.aspx), sometimes when I make some changes to our website and restart iis, it will have the CS1595 error, but when I...
0
by: Lauchlan M | last post by:
<< Compiler Error Message: CS1595: 'myWebInterface.X.Y.AddEditUsers' is defined in multiple places; using definition from 'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET...
0
by: Lauchlan M | last post by:
<< Compiler Error Message: CS1595: 'myWebInterface.X.Y.AddEditUsers' is defined in multiple places; using definition from 'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET...
12
by: scottt | last post by:
hi, I am having a little problem passing in reference of my calling class (in my ..exe)into a DLL. Both programs are C# and what I am trying to do is pass a reference to my one class into a DLL...
5
by: bhattpiyush | last post by:
Hi All, I have a class Transaction in 2 different assemblies having different namespaces totally. I have an ASP.Net(1.1) page. In the codebehind .cs file I references/imports one of those...
9
by: d.adamkiewicz | last post by:
Hello Folks Anybody can show me real world singleton class example? Something that works (is implemented) as part of working solution. Does it make sense to create database handler class that...
20
by: tshad | last post by:
Using VS 2003, I am trying to take a class that I created to create new variable types to handle nulls and track changes to standard variable types. This is for use with database variables. This...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.