Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2007, 01:58 AM
Registered User
 
Join Date: Jun 2007
Location: new delhi, delhi, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Partially Trusted Callers

In my Application ,When I am hosted my application , that gives an error....

"
Exception: System.Security.SecurityException:That assembly does not allow partially trusted callers.
Description: Application attemped to perform an operation not allowed by the security policy.To grant this application the required permission,please contact your system administrator or change the
application trust level in the configuration file "

I called the Hosting Company and they confirm that the application runs on a Full Trust but their system supports application with Medium Trust.


Ok , So I make my changes in Web.Config as

 <trust level="Medium" originUrl=""/>


I am also making a reference to an assembly from where this error is coming and added one line in it's assembly info class as

 <Assembly: AllowPartiallyTrustedCallers()>


But still the error is same .

To test the application I set
 <trust level="Medium" originUrl=""/> in my machine level config file.


What else should I do.

This is very urgent.

Any kind of help is appreciated.


One more thing......

My assembly also referencing another assembly ( named: MySql.Data.dll ) which is a third party assembly.

Should my assembly be strong named.

Rajkumar




Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly does not allow partially trusted callers. vikas67k C# 1 September 2nd, 2008 03:45 AM
How to get the callers ID umair_rathore Pro VB 6 0 April 16th, 2007 11:23 AM
excel screen partially corrupts demac43 Excel VBA 4 December 12th, 2006 10:43 AM
Trusted connection Mary SQL Server 2000 1 August 30th, 2004 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.