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

OraclePermission Exception

2 Answers 135 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mesut
Top achievements
Rank 1
mesut asked on 29 Apr 2010, 07:56 AM
Hi,
After getting the
"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
error about Telerik Reporting, I have applied the steps described in the following thread(Medium Trust issue).

http://www.telerik.com/community/forums/reporting/telerik-reporting/loaderexception-exporting-pdf-report-from-web-page.aspx

After that I started to get this error message about OraclePermission.

"Request for the permission of type 'System.Data.OracleClient.OraclePermission, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

I've tried to setup trust level in web.config file as in the example but couldn't solve the problem.
<securityPolicy>
<trustLevel name="Custom" policyFile="web_customtrust.config" />
</securityPolicy>
<trust level="Custom" originUrl="" />

Would you give me any walkthrough for this issue?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 03 May 2010, 04:47 PM
Hi mesut,

You are receiving this error message because you do not have permissions to connect to an Oracle database via the System.Data.OracleClient ADO.NET data provider. To resolve this problem you need to add the following lines to your "web_customtrust.config" file:
 
<configuration>
  <mscorlib>
    <security>
      <policy>
        <PolicyLevel version="1">
          <SecurityClasses>
            <SecurityClass Name="OraclePermission" Description="System.Data.OracleClient.OraclePermission, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

and
 
<configuration>
  <mscorlib>
    <security>
      <policy>
        <PolicyLevel version="1">
          <NamedPermissionSets>
            <PermissionSet class="NamedPermissionSet" version="1" Name="ASP.Net">
              <IPermission class="OraclePermission" version="1" Unrestricted="true"/>

A bit off topic, please ask the person who has purchased our controls in your company to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/account/faqs.aspx.


Kind regards,
Ivan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mesut
Top achievements
Rank 1
answered on 04 May 2010, 06:55 AM
Thank you very much.I will try
Tags
General Discussions
Asked by
mesut
Top achievements
Rank 1
Answers by
Ivan
Telerik team
mesut
Top achievements
Rank 1
Share this question
or