473,326 Members | 2,805 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,326 software developers and data experts.

What does this error mean?

I copied and paste a form in my solution and renamed the copy (all done in
the solution explorer) and now, when I compile the app, I get the following
error:

-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified more
than once in the "Resources" parameter. Duplicate items are not supported
by the "Resources" parameter. SingleInstance
-----------

I have no idea what it's trying to tell me and even less idea how to fix
this. Any suggestions? Double clicking on the error takes me nowhere, so I
take it it's a build error, but where to look?

If I remove the form from the solution, it compiles Ok, but that's somewhat
unhelpful since I need the form!! I'm using VS2005/C#.

Thanks
Steve
Sep 26 '06 #1
4 12330
Hi Steve,

I suspect that you only renamed the .cs file and its class. You must also rename the related files (click the plus sign in solution
explorer) and the partial class in .designer.cs.

--
Dave Sexton

"Steve Barnett" <no****@nodomain.comwrote in message news:eZ**************@TK2MSFTNGP02.phx.gbl...
>I copied and paste a form in my solution and renamed the copy (all done in the solution explorer) and now, when I compile the app,
I get the following error:

-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified more than once in the "Resources" parameter. Duplicate
items are not supported by the "Resources" parameter. SingleInstance
-----------

I have no idea what it's trying to tell me and even less idea how to fix this. Any suggestions? Double clicking on the error takes
me nowhere, so I take it it's a build error, but where to look?

If I remove the form from the solution, it compiles Ok, but that's somewhat unhelpful since I need the form!! I'm using VS2005/C#.

Thanks
Steve

Sep 26 '06 #2
Actually, it's turned out to be worse than that - I feel so stupid for not
realising what went on.

Having copied the form (and got a bunch of files called Copy of Formx) I
renamed the form in Solution Explorer. It very kindly went through my code
and refactored the lot, including the original form so, while the file names
were different, the class names in the source were the same.

I think I just went off refactoring.

Thanks
Steve
"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:eY**************@TK2MSFTNGP04.phx.gbl...
Hi Steve,

I suspect that you only renamed the .cs file and its class. You must also
rename the related files (click the plus sign in solution explorer) and
the partial class in .designer.cs.

--
Dave Sexton

"Steve Barnett" <no****@nodomain.comwrote in message
news:eZ**************@TK2MSFTNGP02.phx.gbl...
>>I copied and paste a form in my solution and renamed the copy (all done in
the solution explorer) and now, when I compile the app, I get the
following error:

-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified
more than once in the "Resources" parameter. Duplicate items are not
supported by the "Resources" parameter. SingleInstance
-----------

I have no idea what it's trying to tell me and even less idea how to fix
this. Any suggestions? Double clicking on the error takes me nowhere, so
I take it it's a build error, but where to look?

If I remove the form from the solution, it compiles Ok, but that's
somewhat unhelpful since I need the form!! I'm using VS2005/C#.

Thanks
Steve


Sep 26 '06 #3

"Steve Barnett" <no****@nodomain.comwrote in message
news:eZ**************@TK2MSFTNGP02.phx.gbl...
>I copied and paste a form in my solution and renamed the copy (all done in
the solution explorer) and now, when I compile the app, I get the following
error:

-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified more
than once in the "Resources" parameter. Duplicate items are not supported
by the "Resources" parameter. SingleInstance
-----------

I have no idea what it's trying to tell me and even less idea how to fix
this. Any suggestions? Double clicking on the error takes me nowhere, so I
take it it's a build error, but where to look?

If I remove the form from the solution, it compiles Ok, but that's
somewhat unhelpful since I need the form!! I'm using VS2005/C#.

Thanks
Steve
It would appear that when you copy and paste a form, then rename the copy,
that VS 2005 inappropriately alters code in <first form name>.cs and <first
form name>Designer.cs.

I'd not seen this behavior, as I don't copy forms, but I'll bet it has
already been reposted as a bug (Somebody will correct me if I'm wrong, I'm
sure :) ).
To fix it, edit the files cited above, which incorrectly use the name of
your new, renamed form, to use the original form name. Your project should
then compile.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Sep 26 '06 #4

"pvdg42" <pv****@newsgroups.nospamwrote in message
news:up**************@TK2MSFTNGP03.phx.gbl...
>
"Steve Barnett" <no****@nodomain.comwrote in message
news:eZ**************@TK2MSFTNGP02.phx.gbl...
>>I copied and paste a form in my solution and renamed the copy (all done in
the solution explorer) and now, when I compile the app, I get the
following error:

-----------
The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified
more than once in the "Resources" parameter. Duplicate items are not
supported by the "Resources" parameter. SingleInstance
-----------

I have no idea what it's trying to tell me and even less idea how to fix
this. Any suggestions? Double clicking on the error takes me nowhere, so
I take it it's a build error, but where to look?

If I remove the form from the solution, it compiles Ok, but that's
somewhat unhelpful since I need the form!! I'm using VS2005/C#.

Thanks
Steve
It would appear that when you copy and paste a form, then rename the copy,
that VS 2005 inappropriately alters code in <first form name>.cs and
<first form name>Designer.cs.

I'd not seen this behavior, as I don't copy forms, but I'll bet it has
already been reposted as a bug (Somebody will correct me if I'm wrong, I'm
sure :) ).
To fix it, edit the files cited above, which incorrectly use the name of
your new, renamed form, to use the original form name. Your project should
then compile.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
At some stage I want to turn this form in to a template, so the problem
should go away and I'll never need to copy the form again. In the short
term, I needed a copy for testing purposes. It's working now I've edited the
"other" form.

Net job is to learn how to create template forms!! Oh joy, another thing to
learn before I start the "real" development!

Thanks
Steve
Sep 26 '06 #5

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

Similar topics

72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
6
by: WindAndWaves | last post by:
Hi Folks I have inhereted a script that I understand reasonably well, I just do not understand !/^\d+$/.test(el.value) what the hell does that mean? Below is the script (there are really...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
13
by: Protoman | last post by:
I'm getting an error: 10 C:\Dev-Cpp\Enigma.cpp no match for 'operator<' in 'i < (+cleartext)->std::basic_string<_CharT, _Traits, _Alloc>::end ()' Code: Enigma.hpp...
5
by: prabu | last post by:
Hi all, I want to know, what does the value of the array in the following statement mean and How to print the content of the array SMB_Negotiate using printf? unsigned char SMB_Negotiate = ...
6
by: Bint | last post by:
I'm getting this returned from a PHP script. What does this mean? <b>Parse error</b>: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in <b>/ho Thanks B
2
by: Lambda | last post by:
The code is simple: // Token.h #ifndef TOKEN_H #define TOKEN_H #include <vector> #include <string> class Token
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.