You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my.wsp is deployed as farm solution with -GacDeployment parameter. my.dll is in GAC.
New feature is added to my.wsp with feature receiver. Package version isn't incremented, neither does assembly/file versions.
When redeploy.bat is executed, uninstall-remove my.wsp worked fine, but add-install 'my.wsp' is exited with error in
The Execute method of job definition "SPSolutionDeploymentJobDefinition" threw an exception.
Failed to create receiver object from assembly **ommited**
System.ArgumentNullException at System.Activator.CreateInstance(Type type, Boolean nonPublic)
Solution: If restart-service SPTimerV4 is called before installing new version of my.wsp then it is completed successfully.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Sounds like SPTimerV4 is still holding the code of the old assembly in runtime preventing you to update the receiver. But in regards of reducing downtime during the deployment process I would not restart SPTimerV4 in general. What you can do is to add a pre-deployment custom target in the CustomTargets.ps1 that runs either for all or only that specific WSPs (use the ProcessSolution hook for that) and calls RestartService "SPTimerV4" (this is the SPSD function in order to get the logging).
Precondition:
my.wsp
is deployed as farm solution with-GacDeployment
parameter.my.dll
is in GAC.my.wsp
with feature receiver. Package version isn't incremented, neither does assembly/file versions.my.wsp
worked fine, but add-install 'my.wsp' is exited with error inSolution: If
restart-service SPTimerV4
is called before installing new version ofmy.wsp
then it is completed successfully.The text was updated successfully, but these errors were encountered: