I am trying to use SharePoint Powershell to deploy my farm level web part. When I run:
install-spsolution -identity MYWEBPART.wsp -AllWebApplications -GACDeployment
the command seems to complete successfully but the deployment status shows in Error in Central Admin.
"SERVERNAME : http://SPpath/ : SharePoint - 80 : Error: Cannot locate the <SafeControls> section in the web.config file for this site. Controls in the specified assembly cannot be marked as <SafeControls> . Error: Cannot locate the <assemblyBinding>section in the web.config file."
When I look at the solution status in Central Admin there is an error that the SafeControl cannot be found in the webConfig. The attachment has some pertinent screenshots. There is a safeControl for the namespace when I do the Visual Studio deployment, but when the powershell install deployment fails it removes the safeControl from the web.config file. I don't know if that makes sense. I noticed that in the error message it specifies "SharePoint - 80". Is that the port #, because the port I'm working in is 34433? What is wrong?