I want to get list of the web application on which solution is deployed. For this I tried using "DeployedWebApplications" property of
SPSolution Class.
SPSolution.DeployedWebApplications
But it gave me an error saying,
Message: "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
StackTrace :
"at System.Guid..ctor(String g)\r\n at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.get_DeployedWebApplications()\r\n at Microsoft.SharePoint.Administration.SPSolution.get_DeployedWebApplications()\r\n at MOSSAnalysis.SPAnalysis"
I tried to serach this error on google but didnt help.
Is any one aware of the error. Other all properties of SPSolution object works properly but only "DeployedWebApplications" throws an exception.