473,396 Members | 1,879 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,396 software developers and data experts.

Problem in VS.NET - "X is defined in multiple places"

Me
I suddenly started getting the following kind of error and aren't sure what
to do to fix it:

<<

<<
Compiler Error Message: CS1595: 'MyWebApp.Secure.Admin.AddEditUsers' is
defined in multiple places; using definition from
'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\MyWebApp_nexusdb\fe7356c1\5423ab61\assembly\ dl2\6d403101\4e8dc9c6_3d17c501\MyWebApp_NexusDB.DL L'

Source Error:

Line 33:
Line 34: [System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
Line 35: public class AddEditUsers_aspx :
MyWebApp.Secure.Admin.AddEditUsers,
System.Web.SessionState.IRequiresSessionState {
Line 36:
Line 37:
Source File: e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET
Files\MyWebApp_nexusdb\fe7356c1\5423ab61\vv3uwblx. 0.cs Line: 35

Searching for "'MyWebApp.Secure.Admin.AddEditUsers" in the project, I get
only one occurence, in AddEditUser.aspx:

<%@ Page language="c#" Codebehind="AddEditUsers.aspx.cs"
AutoEventWireup="false" Inherits="MyWebApp.Secure.Admin.AddEditUsers" %>
<%@ Register TagPrefix="uc1" TagName="iCARnetHeader"
Src="../iCARnetHeader.ascx" %>
<%@ Register tagprefix="dg" Namespace="MyWebApp" Assembly="MyWebApp_NexusDB"
%>

The .aspx.cs page has the namespace:

<<
namespace MyWebApp.Secure.Admin
{
/// <summary>
/// Summary description for AdminMain.
/// </summary>
public class AdminMain2 : System.Web.UI.Page
{
. . .
Any thoughts?


Nov 19 '05 #1
1 1091
On 22 Feb 2005, "=?Utf-8?B?TWU=?=" <Me@discussions.microsoft.com>
postulated in news:58**********************************@microsof t.com:
3101\4e8dc9c6_3d17c501\MyWebApp_NexusDB.DLL'

Source Error:

Line 33:
Line 34: [System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()] Line 35: public class AddEditUsers_aspx :
MyWebApp.Secure.Admin.AddEditUsers,
System.Web.SessionState.IRequiresSessionState {
Line 36:
Line 37:

Sorry I cannot help with more detail right now.

I have seen this error before, due to my manually adding files to a
project that contain a class declaration that already exists or did
exist at one time, and/or changing the name of a class manually
(without using the Rename cmd in the Solution window).

It seems VS.NET gets out of sync.

You might view your sln file and/or csproj in a text editor to check
how the resource linkages are setup.

There are 3 files associated with each ASPX page...the ASPX, the CS,
and the RESX. Make sure these all make sense and the class names listed
are correct for each file involved.

-- ipgrunt

Nov 19 '05 #2

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

Similar topics

3
by: Phil Powell | last post by:
Has anyone here ever done a case where you have a select multiple form element and you have to do both server-side and client-side validation? I am honestly not sure how to do it in Javascript (I...
6
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2...
1
by: Jouni Heikniemi | last post by:
Hi, This has been asked before, in <http://groups.google.fi/groups? selm=ureiu7b04kv839%40corp.supernews.com> for example; however, I haven't found any real answers, so I'll post this with some...
1
by: Holger (David) Wagner | last post by:
Hi there, we have an application which is built with several ASCX controls some of which contain form elements (e.g. Textboxes, Buttons etc.) For example: in the top section (one...
6
by: david | last post by:
When I compile a window form client for web service, there is error message as follows: Program 'D:\usr\winVBcontrol\WinClient4WebServiceFileCS\obj\Debug\WinClient4WebServiceFileCS.exe' does not...
1
by: Dominique Vandensteen | last post by:
I want to dynamicly load a type (typename is defined in the database). This type is located in the exe itself or one of the dll's in the directory with the exe file. When creating an instance...
1
by: Larax | last post by:
Alright, so here's the problem. I define a global variable in my script and then add methods/properties to it. Everything works great, no error in Javascript Console. But when I refresh site,...
18
by: ana10192000 | last post by:
VB6.0 Private dbParts as Database Private dbParts as Recordset guys help, i can't execute my program compiler error says: " user-defined type not defined " i'm not much a knowledgable...
2
by: jmike | last post by:
I'm using some legacy code that has a user-defined exception in it. The top level program includes this line from TestRunError import * It also imports several other modules. These other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.