SharePoint 2016 - Issue deploying solution
-
29-01-2021 - |
문제
So, our company is using SharePoint 2016 on premise and previously I have deployed a few custom solutions to it before and they work correctly.
Now however, I am trying to create/deploy a visual web part solution (farm solution only). Visual studio deploys the solution without errors but as soon as I open the site, it just gets stuck on "working on it". As soon as I retract the solution, it loads up just fine.
Any staring points on what I can do would be much appreciated. So far I have tried creating several different solutions, viewing the uls logs (nothing seems out of the ordinary).
해결책
There are couple of things you can do but i would start this way.
- Retract the Solution from Farm
- Recycle timer services on all server(s) in the farm
- now make sure solution is completely removed from farm ( check from central admin > system settings > manage farm solution's)
- Now Move the uptodate .wsp file to the SharePoint app server.
- Add the solution to farm using the
Add-SPSolution -LiteralPath pathofsolution.wsp
- Now install the solution using the powershell
Install-SPSolution -Identity SolutionName.wsp -GACDeployment
- Activate the feature if it is required
- Now check the status from Central admin, make sure it says deployed to all server(s).
- Test the application.
If Still seeing the error: - Enable the Verbose logging and reproduce the error and analyze the logs. - May be need to peform the debugging of your solution.
I would test in dev / test farm.