So I just deployed this .wsp to production and I've identified a tiny bit of logic that needs tweaking in an event receiver. I'm considering compiling a new .wsp package, and then running an Update-SPSolution on my production SPF. Naturally, I just wanted to verify that such an update would actually work. So, here's my context:
I still have a development SPF with the same version of the solution running identical to production. The only difference was, the development version was deployed via Visual Studio (as is common, I suppose).
Then, I made some minor tweaks to a list event receiver code. I updated the Assembly version, built the solution and then packaged it up (but did not use Visual Studio to deploy it). Rather I ran the Update-SPSolution command. All seems well enough. No errors in the console.
Now, when I go to perform action X which should cause the event receiver to fire.. it doen't fire at all. Instead, I see this in the ULS:
Event manager error: Could not load file or assembly 'myCustomAssembly, Version=1.0.1.14, Culture=neutral, PublicKeyToken=130eeb2d789a2e4b' or one of its dependencies. The system cannot find the file specified.
So, it's hanging on to the old Version=1.0.1.14 when my latest .wsp contains Version=1.0.2.0
Is the Update-SPSolution really so worthless? I read somewhere on MSDN it's supposed to be for these situations where all the files and features between solutions are still-present (though containing changes). I've done upgrades in the past where I had to deactivate-features, uninstall, re-install.. and I'm really hoping to execute something less intrusive.
EDIT:
FWIW: When I comb the log for critical-level errors, I also see this one. I don't take all the errors on my DEV box too seriously.. but I am noticing a pattern.. this one is always coupled with the aforementioned one:
An exception occurred while updating addresses for connected app {7a59242d-4587-4f4e-9563-e067aa23c5e7_61322854-9714-4458-949c-c2bcc98ef497}. The uri endpoint information may be stale. System.InvalidOperationException: The requested application could not be found. at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ProcessCommonExceptions(Uri endpointAddress, String operationName, Exception ex, SPServiceLoadBalancerContext context) at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ExecuteOnChannel(String operationName, CodeBlock codeBlock) at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.GetEndPoints(Guid serviceId) at Microsoft.SharePoint.SPConnectedServiceApplicationAddressesRefreshJob.Execute(Guid targetInstanceId)
