Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SharePoint 2010 Web Part Powershell Deployment SafeControl Error

$
0
0

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?                                                                                                                                                                                                                  


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>