I'm having some trouble for deploy a farm solution from Visual Studio 2012 Ultimate:
The error says:
Error occurred in deployment step 'Retract Solution': Object reference not set to an instance of an object.
The farm webpart was already installed "since 2016", but I need to deploy again for check some changes made to the logic (i.e write some values on SharePoint Logs), but this errors appears once I tried to retract the solution via Central Administration:
Could not allocate space for object 'dbo.Objects'.'IX_Objects_Version' in database 'SharePoint_Config_015c6f29-dc5d-4015-843e-32c0e1f3333b' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
I check the size of the disk and 40.5 GB free space.
I tried:
- Increase database size based on this page:
- Build a sandbox solution and deploy it = without any problem, after changed it to Farm Solution and appliying the same logic in this new solution, the same error occurs.
- Delete previous Log Files (I'd read in a blog that this eror may occur when log is full) - I have a backup of tose files (logs from 2016, though).
- Add this line in the web.config:
<NetFx40_LegacySecurityPolicy enabled="true"/>
This line was due I receive this error:
This method uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the configuration switch. Please see link for more information.
And now I have this error:
Error occurred in deployment step 'Activate Features': Feature with Id 'bbfb205e-ec9c-4cc2-bbf7-853ac1f0c247' is not installed in this farm, and cannot be added to this scope.
The solution has 2 features and bbfb205e-ec9c-4cc2-bbf7-853ac1f0c247
is the Id of one of those features.
I checked too that, even when I increased the databse size (as previous mentioned), I check again the Properties of the SharePoint database, but the changes aren't saved:
This screenshot shows the automatic grown of the files from the database before change them:
After change the values:
What I can do for solve this issue?
Error occurred in deployment step 'Retract Solution': Object reference not set to an instance of an object.
sometimes when I tried it appears this one instead:Could not allocate space for object 'dbo.Objects'.'IX_Objects_Version' in database 'SharePoint_Config_015c6f29-dc5d-4015-843e-32c0e1f3333b'...