문제

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.

  1. Retract the Solution from Farm
  2. Recycle timer services on all server(s) in the farm
  3. now make sure solution is completely removed from farm ( check from central admin > system settings > manage farm solution's)
  4. Now Move the uptodate .wsp file to the SharePoint app server.
  5. Add the solution to farm using the Add-SPSolution -LiteralPath pathofsolution.wsp
  6. Now install the solution using the powershell Install-SPSolution -Identity SolutionName.wsp -GACDeployment
  7. Activate the feature if it is required
  8. Now check the status from Central admin, make sure it says deployed to all server(s).
  9. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top