question

Simon-8171 avatar image
0 Votes"
Simon-8171 asked AnnaXiu-MSFT edited

Error message BC31502 "Resource name ___ cannot be used more than once"

When trying to run my project, I keep getting this error message Error message BC31502 "Resource name ___ cannot be used more than once".
It shows me the File location of the error "vbc", but there is no such file in that directory that is being specified.

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @Simon-8171 ,

Welcome to Microsoft Q&A!

Which version of Visual Studio are you using? What is your project type?

It seems that the name of a specified resource is used more than once.
Please click on “Show All Files” on the solution explorer and check if you can find two resource files. You can delete the second one like .resources1.

If it doesn’t work, please close all VS instances and delete the hidden .vs, bin and obj folders in the project folder.
Then, relaunch your VS to run again.

Sincerely,
Anna


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Simon-8171 avatar image
0 Votes"
Simon-8171 answered AnnaXiu-MSFT edited

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.2.2

my projects are vb.net, target framework 4.8

all my projects suddenly became damaged after clients are using the application and haven't had a problem.
This occurred after updates came in automatically from VS2022.
I think that the new updates are not compatible with the method that VS is using Framework 4.8. Because the errors that are being generated are not the usual errors that are standard in a Microsoft project.
It doesn't make sense that all my projects should become damaged all at once, and suddenly error messages are coming up one after the other.
What could this mean?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you mean that the error occurs after you update your VS to the version 17.2.2? Have you tried to repair your VS in Visual Studio Installer > More > Repair?

If it persists, would you like to roll back to previous version like version 17.0?

0 Votes 0 ·