InstallException

Aug 28, 2008 at 4:58 PM
Hi,

By using setup an exception occured (see below). Maybe it has nothing to do with SharePoint Solution Installer, I do not know. Can anybody help?

Best regards,
Thimo

***** SOLUTION DEPLOYMENT *****
***** ERROR *****
Diese Lösung enthält Ressourcen, die sich auf eine Webanwendung beziehen, und muss für mindestens eine Webanwendung bereitgestellt werden.
CodePlex.SharePointInstaller.InstallException: Diese Lösung enthält Ressourcen, die sich auf eine Webanwendung beziehen, und muss für mindestens eine Webanwendung bereitgestellt werden. ---> Microsoft.SharePoint.SPException: Diese Lösung enthält Ressourcen, die sich auf eine Webanwendung beziehen, und muss für mindestens eine Webanwendung bereitgestellt werden.
   bei Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CheckDeployParameters(Collection`1 collWebApps, Boolean globalInstallWPPackDlls, Boolean force)
   bei Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionDeployTimerJob(DateTime dt, Collection`1 webApplications, SPSolutionDeploymentJobType jobType, Boolean globalInstallDlls, Boolean force)
   bei Microsoft.SharePoint.Administration.SPSolutionLanguagePack.Deploy(DateTime dt, Boolean globalInstallWPPackDlls, Boolean force)
   bei Microsoft.SharePoint.Administration.SPSolution.Deploy(DateTime dt, Boolean globalInstallWPPackDlls, Boolean force)
   bei CodePlex.SharePointInstaller.InstallProcessControl.CreateDeploymentJobCommand.Execute()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei CodePlex.SharePointInstaller.InstallProcessControl.CreateDeploymentJobCommand.Execute()
   bei CodePlex.SharePointInstaller.InstallProcessControl.TimerEventInstall(Object myObject, EventArgs myEventArgs)


Sep 1, 2008 at 10:33 AM
I have the same problem.

And for all of you that don't speak German, here is the same error in English:

***** SOLUTION DEPLOYMENT *****
***** ERROR *****
This solution contains resources scoped for a Web application and must be deployed to one or more Web applications.
CodePlex.SharePointInstaller.InstallException: This solution contains resources scoped for a Web application and must be deployed to one or more Web applications. ---> Microsoft.SharePoint.SPException: This solution contains resources scoped for a Web application and must be deployed to one or more Web applications.
   at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CheckDeployParameters(Collection`1 collWebApps, Boolean globalInstallWPPackDlls, Boolean force)
   at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionDeployTimerJob(DateTime dt, Collection`1 webApplications, SPSolutionDeploymentJobType jobType, Boolean globalInstallDlls, Boolean force)
   at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.Deploy(DateTime dt, Boolean globalInstallWPPackDlls, Boolean force)
   at Microsoft.SharePoint.Administration.SPSolution.Deploy(DateTime dt, Boolean globalInstallWPPackDlls, Boolean force)
   at CodePlex.SharePointInstaller.InstallProcessControl.CreateDeploymentJobCommand.Execute()
   --- End of inner exception stack trace ---
   at CodePlex.SharePointInstaller.InstallProcessControl.CreateDeploymentJobCommand.Execute()
   at CodePlex.SharePointInstaller.InstallProcessControl.TimerEventInstall(Object myObject, EventArgs myEventArgs)
Sep 15, 2008 at 1:34 PM
See the following issue I just creatd on this.  There may be a workaround:

http://www.codeplex.com/sharepointinstaller/WorkItem/View.aspx?WorkItemId=11302
Oct 16, 2008 at 2:13 PM
Hi,

I got this exception on a first install. I looked into the source code and found that DeploymentTargetsControl, which gets called when you have a Farm-scoped feature, or no feature at all in your config file, fills  options.Targets. Later on, InstallProcessControl.Open finds options.WebApplicationTargets different from null and submits an empty web application target list to the deployment job which generates the exception. So IMHO this is a bug. Either the DeploymentTargetsControl should add the webapps to options.WebApplicationTargets, or the  InstallProcessControl.Open should do an extra test on the Count>0 of the WebApplicationTargets list.

Anyway, a workaround is to specify a Site feature scope and an empty feature list. This doesn't use the DeploymentTargetsControl, but the SiteCollectionDeploymentTargetsControl, which adds to the options.WebApplicationTargets . Simply select the web apps to deploy to and everything should run fine.

Best Regards and hope this helps.
Eric.