Microsoft-Interop/Windows-Azure-Solr — Issue #1: Error in CreatePackage (wrong cspack parameters)
Author: vba66a
Created: 2012-01-05 01:02:15+00:00
State: open

After compiling source code and running PackSolzr.exe /configFilePath=PackSolzrConfig.xml I got next error:

Error : CloudServices41 : The entrypoint SolrMasterHostWorkerRole.dll is not a valid assembly. Please provide a relative path to the binary that implements the entrypoint.

Turns out that parameters for cspack in PackSolrz.Program.CreatePackage reference root of the worker folder instead of \bin\debug folder.
Next code modification resolved the issue:

createPackageCommand = String.Format(@"cspack ""{0}"" /role:SolrMasterHostWorkerRole;""{1}**\bin\Debug**"";SolrMasterHostWorkerRole.dll /rolePropertiesFile:SolrMasterHostWorkerRole;""{3}\roleproperties.txt"" /role:SolrSlaveHostWorkerRole;""{2}**\bin\Debug**"";SolrSlaveHostWorkerRole.dll /rolePropertiesFile:SolrSlaveHostWorkerRole;""{3}\roleproperties.txt"" /role:SolrAdminWebRole;""{4}"" /sites:SolrAdminWebRole;Web;""{4}"" /rolePropertiesFile:SolrAdminWebRole;""{3}\roleproperties.txt"" /out:""{5}\ReplSolzr.cspkg"" ", _csdefLocation, masterWorkerRoleFolder, slaveWorkerRoleFolder, tempFolderLocation, webRoleFolder, _cspackOutputLocation);

Hope it helps
VB