troubleshooting Question

Need Help w/ VS 2008 Upgrade/Compile Problem

Avatar of stuengelman
stuengelmanFlag for United States of America asked on
Visual Basic.NETMicrosoft Development
5 Comments1 Solution483 ViewsLast Modified:
Hello,

I am having a problem with a VB.NET Windows application originally authored in the Express Version of VS 2005, which I ran through the VS 2008 Upgrade Wizard.  On compile, I am getting the error message "Resource name 'WindowsApplication1.WindowsApplication1.Form1' cannot be used more than once".

The system consists of a main application module, a form (named Form1), and references to common MS DLL's (ADODB, Scripting Runtime, and routine .NET System.* namespaces).

I did a global search on the term  "Form1", and it appears in the following places:

(1) Class declaration in Form1's code page (i.e., "Public Class Form1").
(2) The InitializeComponent() subroutine created by VB.NET (i.e., "Me.Name = "Form1"" and "Me.Text = "Form1"") in Form1's code page.
(3) The resource file for Form1 ($this.Name is set to "Form1" as a text string).
(4) The declaration of the On Load handler for Form1 in Form1's code page ("Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load").

This application worked correctly when previously compiled in VS 2005 Express, and I made no changes to the code after running the VS 2008 conversion wizard.

Any ideas would be much appreciated.

Thank you, Stewart Engelman
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros