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