Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException: SOAP security negotiation with ‘http://../XRMServices/2011/Organization.svc’ for target ‘http://.. /XRMServices/2011/Organization.svc’ failed while using Plugin Registration Tool.


Today I was getting the above error while trying to update one of my plugin assemblies. The password of the admin account had recently changed. So I had to Remove the existing connection and create a new one to get things working.



SecurityException: Request for the permission of type “System.Security.Permissions.EnvironmentPermission” failed in CRM 2011 plugin.

We will get this error while using Environment.MachineName
in our plugin code to get the Server Name in case of Sandbox.