web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Web.Permissions Error - Plugin

(0) ShareShare
ReportReport
Posted on by 235

Hello everyone,

i have a plugin out registered of the sandbox. It should be able to send some data to an external system. I set the endpoint as a static IP.

Error:

Request for the permission of type ‘System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

My code:

BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "BasicHttpBinding_IPOCService";
myBinding.Security.Mode = BasicHttpSecurityMode.None;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;

ChannelFactory<Interface> factory = new ChannelFactory<Interface>(myBinding, endPointAddress);
var client = factory.CreateChannel();

Thank you in advance for any advice :)

*This post is locked for comments

I have the same question (0)
  • Davide Cerqua Profile Picture
    235 on at

    This error persist,

    no one can give me some advices?

    This is my code right now, i commented some rows, i am pretty sure i don't need them..

    BasicHttpBinding myBinding = new BasicHttpBinding();

    myBinding.Name = "BasicHttpBinding_IPOCService";

    myBinding.Security.Mode = BasicHttpSecurityMode.None;

    //myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;

    //myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;

    myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;

    ChannelFactory<Interface> factory = new ChannelFactory<Interface>(myBinding, endPointAddress);

    var client = factory.CreateChannel();

    Thanks in advance !

  • Suggested answer
    Bas van de Sande Profile Picture
    4,383 on at

    Hi Davide,

    you are not allowed to use a static IP address, instead you need to call a FQDN. Otherwise CRM will block the call, no matter what you try

    Bas

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/?redirectedFrom=https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/436284/repeated-records-in-recurring-integration)" - Too many )'s.