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