RadDatePicker does not work in Medium Trust environment

4 posts, 0 answers
  1. Nitin
    Nitin avatar
    6 posts
    Member since:
    Apr 2013

    Posted 13 May 2013 Link to this post

    Hi,

    I am working on the RadDatePicker control on Medium Trust environment and I am getting some error regarding security. I think there is bug with this control when working with Medium Trust Env.

    I am getting the below error

    05-13 23:16:39.088 [ERROR]%13%10AppDomain.BaseDirectory: <br>System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.%13%10   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)%13%10   <br><br>at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)%13%10   at System.Security.CodeAccessPermission.Demand()%13%10   at MS.Internal.SecurityHelper.DemandUnmanagedCode()%13%10   at System.Windows.Controls.Primitives.Popup.PopupSecurityHelper.SetHitTestable(Boolean hitTestable)%13%10   at 

    There are other controls also which are not wotking on Medium Trust Enviorment
    RadColorPicker, RadWindow

    Please provide some solution for this.

    Modified : I found that the controls which open any window (like RadDatePicker, RadWindow.Alert(), RadColorPicker, etc) they don't work on Medium Trust Level because to open window controls uses "mscorlib" dll which is prohibited in medium trust level. This is a bug in Telerik Controls please create a ticket for it.
  2. Alek
    Admin
    Alek avatar
    78 posts

    Posted 16 May 2013 Link to this post

    Hi Nitin,

    By Medium Trust Environment do you mean Partial Trust Application?

    Testing the mentioned controls under Partial Trust Application we did not managed to reproduce the behavior.

    It would be of great help if you can send us a sample where the issue can be observed. Or you can modify the attached project (see the attachment) and send it back to us. 

    Please, excuse us for the caused inconvenience.

    Looking forward to your reply.

    Kind regards,
    Alek
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Nitin
    Nitin avatar
    6 posts
    Member since:
    Apr 2013

    Posted 16 May 2013 Link to this post

    Hi We were using these controls on Bloomberg

    They have some default permission set which I am including here

    The Default Bloomberg Application sandbox has the following permission set:14
     UIPermission – Unrestricted =”true”
     SecurityPermission - Flags="Execution, ControlThread”
     FileIOPermission – PathDiscovery=”*AllFiles*”
     MediaPermission – Audio=”NoAudio” Video=”NoVideo” Image=Safe Image”
     IsolatedStorageFilePermission – Allowed=AssemblyIsolationByUser” 
    UserQuota=”2048000”

    I can't send you the project for that you need to setup Bloomberg there. 
  5. Alek
    Admin
    Alek avatar
    78 posts

    Posted 17 May 2013 Link to this post

    Hi Nitin,

    Our controls have not been tested with other partially trusted third party portals or environments and there are maybe some issues. 

    Unfortunately, if we cannot reproduce the scenario in our side we cannot provide you with any solution, workaround or fix for it.

    Kind regards,
    Alek
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top