Visual Studio Import Wizard - Exception calling "LoadProject" - Advanced Installer Community
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Visual Studio Import Wizard - Exception calling "LoadProject"

"Exception calling "LoadProject" with "1" argument(s): "The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
The progress bar sits at approx 15%

I want to move my visual studio 2010 solution out of its original setup so that I can update everything. I created a new Visual Studio import wizard project and attempted to add the solution to it.
I tried the free download of Advanced installer a year or so ago and got the above exception. I thought I'd try it again in case the problem was fixed at your end but it's giving me the same exception now.
The solution is moderately complex and contains several Set Up, Windows Service, Console and Winforms projects and an extensive directory structure as it's been going for over 10 yrs.
I'd rather not include the whole solution file in case the boss fires me. Ill give you the first few lines as it complains about line 1, position 1. The solution file is approx 86KB in size.

Code: Select all

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DDD1B2B8-16A8-4475-B0E6-BA04523E4B09}"
	ProjectSection(SolutionItems) = preProject
		Local.testsettings = Local.testsettings
		p.s.vsmdi = p.s.vsmdi
		termsconditions.htm = termsconditions.htm
		VersionChanges_1.txt = VersionChanges_1.txt
		VersionChanges_2.txt = VersionChanges_2.txt
		VersionChanges_3.txt = VersionChanges_3.txt
		VisualSvnSettings.txt = VisualSvnSettings.txt
	EndProjectSection
	ProjectSection(FolderStartupServices) = postProject
		{967B4E0D-AD0C-4609-AB67-0FA40C0206D8} = {967B4E0D-AD0C-4609-AB67-0FA40C0206D8}
	EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Support Applications", "Support Applications", "{F781B246-842D-4D62-82C3-D9EB6E98C2C8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Third Party", "Third Party", "{4A43BCCD-76DC-4061-90F6-9A3FF95AF49C}"
	ProjectSection(SolutionItems) = preProject
		Third party\Quickskin.rar = Third party\Quickskin.rar
		Third party\TeeChart for VS2010 – Install Workaround for this error  Could not execute the external program C _PROGRA~2_Microsoft Help Viewer_v1.0_HelpLibManager.exe _ Strangetimez.htm = Third party\TeeChart for VS2010 – Install Workaround for this error  Could not execute the external program C _PROGRA~2_Microsoft Help Viewer_v1.0_HelpLibManager.exe _ Strangetimez.htm
		Third party\TeeChartNET2010VSNET2010_4.0.2010.13053.exe = Third party\TeeChartNET2010VSNET2010_4.0.2010.13053.exe
		telerik license.txt = telerik license.txt
		Third party\ZipForge.txt = Third party\ZipForge.txt
	EndProjectSection
EndProject
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

I tried importing the windows setup.exe that I usually create when I need to publish. That opened ok and seemed to be a good start. But I think I'll need to be able to run AdvancedInstaller against the solution instead because of future changes.
It's a shame that the error reporting is so brief.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Hi,

Sorry for the delayed reply.

I'm not sure why you encounter this problem. Can you please send us your solution (containing only its projects, not the resources too) to support at advancedinstaller dot com, so we can investigate it and try to find the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Hi,
Is there no other way to do this? It's got tens of projects, hundreds of forms, would take me hours to prepare and pull out the resources and I don't think my bosses would like me to pass on confidential source code.
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

If I wrote an app that copied the source code file structure and created files with the same names, the project files in full, but all the form or class files with no contents and zero bytes in length, would this be of any use?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Hi,

Is the problem still reproducible after you made this changes? If so, you can send the solution to me.

You can also try to install the Advanced Installer Extension for Visual Studio, then edit and build your solution using it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Thank you for the link to the extension for VS.
I created a AI installer project and on the files and folders tab I pressed the Add Project Output. I get an error message "The operation cannot be completed because BeginBuild has not yet been called"
I've rebuilt built my solution and the empty AI project.
Any ideas ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Hi,

This error appears if your solution contains a custom project that our extension does not support. Can you send us only the .sln file, or its text to support at advancedinstaller dot com, so we can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

I've sent code in to the support dept. Thanks for help :)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Hello,

We reproduced the import problem which seems to be caused by an Advanced Installer issue. The fix for it will be included in the next version of Advanced Installer. Thank you for bringing it to our attention.

Meanwhile, you can extract the attached fixed file to the following location, then retry to import your solution in Advanced Installer and see if it works:
C:\Program Files (x86)\Caphyon\Advanced Installer 14.1.1\scripts\msbuild

Best regards,
Eusebiu
Attachments
MSBuildDetection.zip
(4.82 KiB) Downloaded 652 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
czeshirecat
Posts: 19
Joined: Sun Sep 11, 2016 11:15 am

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

Well done. You seem to have fixed it. Im so pleased
thank you very much, Kitkats all round ;)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual Studio Import Wizard - Exception calling "LoadProject"

You're welcome. I'm glad it works.

Did you also test the VS extension where the "The operation cannot be completed because BeginBuild has not yet been called" error appeared? Does this work, too?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”