Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, Greetings for the day!

I am facing an issue with medium trust level in asp.net, since WebPermission is restricted for medium trust, I have made these changes to web.config,
<IPermission class="WebPermission"
version="1"
Unrestricted="true"/>
After making these changes i am getting the error as below,

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Inheritance security rules violated by type: 'Myproj.WebSites.Shared.WebControls.MyprojMenuDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.

Source Error:


Line 1: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Myproj.Master.vb" Inherits="Myproj.WebSites.Root.MyprojMaster" %>
Line 2:
Line 3: <%@ Register Assembly="Myproj.WebSites.Shared" Namespace="Myproj.WebSites.Shared.WebControls"

Source File: /Myproj.Master Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0


Please provide a solution. Thank you :)

What I have tried:

Googled a lot for some quick work around, dint find anything useful
Posted
Comments
Member 13065293 25-May-17 2:44am    
Can anyone out there please please please provide me with a solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900