This is a migrated thread and some comments may be shown as answers.

RadDatePicker does not work in Medium Trust environment

3 Answers 64 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 13 May 2013, 07:09 PM
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.

3 Answers, 1 is accepted

Sort by
0
Alek
Telerik team
answered on 16 May 2013, 03:06 PM
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.

0
Nitin
Top achievements
Rank 1
answered on 16 May 2013, 04:11 PM
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. 
0
Alek
Telerik team
answered on 17 May 2013, 08:53 AM
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.

Tags
DatePicker
Asked by
Nitin
Top achievements
Rank 1
Answers by
Alek
Telerik team
Nitin
Top achievements
Rank 1
Share this question
or