stuengelman
asked on
Need Help w/ VS 2008 Upgrade/Compile Problem
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.Windo wsApplicat ion1.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
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.Windo
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
ASKER
Hello,
The strategy suggested above did not work; the same error results.
I've uploaded a zip of the converted project at http://www.dniservices.com/VS_2008.zip.
Thanks, Stu
The strategy suggested above did not work; the same error results.
I've uploaded a zip of the converted project at http://www.dniservices.com/VS_2008.zip.
Thanks, Stu
ASKER
Hello,
Earlier today I installed VB 2005 Express and was able to get the system to compile in native format after making some changes requested by my client.
If the code does not work, I'll perform the replacement using Main.txt in VS 2008 and see if that compiles.
Thanks, Stu
Earlier today I installed VB 2005 Express and was able to get the system to compile in native format after making some changes requested by my client.
If the code does not work, I'll perform the replacement using Main.txt in VS 2008 and see if that compiles.
Thanks, Stu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use notepad and open your Express Version of VS 2005 app file that has the extension of .sln,
on the first line edit it to say version 10.00 and not 8.00. If I remembered I tried this one time and it worked when I ran it directly in 2008.