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

G

Guest

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\Temporary ASP.NET
Files\MyWebApp_nexusdb\fe7356c1\5423ab61\assembly\dl2\6d403101\4e8dc9c6_3d17c501\MyWebApp_NexusDB.DLL'

Source Error:

Line 33:
Line 34: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
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\Temporary 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?
 
I

IPGrunt

3101\4e8dc9c6_3d17c501\MyWebApp_NexusDB.DLL'

Source Error:

Line 33:
Line 34: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
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
 

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

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top