locked
CRM 2011 Sandbox and WebRequest RRS feed

  • Question

  • Hi everybody,

    i am trying to configure a crm 2011 plugin, that works in the sandbox and wants to write some information to an external application via web-request, but i am always getting a SecurityException.

    Here  is a Stacktrace:

    System.Security.SecurityException: Fehler bei der Anforderung des Berechtigungstyps "System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
       bei System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
       bei System.Security.CodeAccessPermission.Demand()
       bei System.Net.WebRequest.set_DefaultWebProxy(IWebProxy value)
       bei xxx.xxxAdapter..ctor(Configuration config, Boolean useHessian)
       bei xxx.Execute(IServiceProvider serviceProvider)

    The Service is configured to use a proxy: http://proxy.xxx.yyy.local:8080

    and it wants to connect to: https://login.xxx.com/zzz

    So i am not using localhost anywhere, i am using http and https only and i am not using IPs. 

    For testing i set the reg-value of "SandboxWorkerOutboundUriPattern" to ".+" but this also, did not help.

    Does anybody has an idea?

    When i run the plugin out of sandbox, allmost everything works fine... Allmost means, the plugin is bad coded and opens a new connection for every instance, and the connections wont be closed. Cause the target-webservice only allows 250 concurent sessions, i can only call the plugin 250 times, after that i will get a login-error saying to many open connections.

    Cause it is not my plugin, i can't change the code, so configuring the sandbox would be the best approch... But what is wrong? I can't see any error...

    Kind Regards
    Thomas

    Friday, November 9, 2012 12:37 PM

All replies

  • Hi,

    Apparently you are trying to authenticate.

    According to this MSDN documentation page, there may be an issue with authentication. Only anonymous authentication is supported...


    Best regards,
    Mathieu

    Microsoft .NET / Dynamics / MSSQL + BI

    Friday, November 9, 2012 2:59 PM
  • Hi Matt,

    thanks for your reply. I've read the page, but i thought its not recommended but possible. The Plugin is provided from a gold CRM Partner, thought the know, what they do.
    They are also providing a custom webserive, which is used from another silverlight-app. Now, I am just wondering why they do not use a second custom ws for this purpose. To authenticate anomymously at this ws and then authenticate with correct credentials against the target system.

    So, I think i have to wait for an answer from the support team.

    However, thanks again for your help.

    Thomas

    Friday, November 9, 2012 3:26 PM