Adding WebformsMvp with NuGet to an existing WebForms project worked like a charm. I’ve been running the site and new page on my localhost for a few days now. In Debug mode that is. But when the time for a deployment has come, my problem arises.
Could not load file or assembly ‘file:///C:\xxx\bin\WebFormsMvp.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) … SGEN
Compile debug mode. No problem. Compile release mode. No. Remove references, and adding again. No effect.
Solution:
To build the project with the build settings for Generate serialization assembly set to Off.
Questions to be answered is why? And will this impact my solution in the production enviroment?
