none
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. RRS feed

  • Question

  • 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 :)
    Wednesday, May 24, 2017 5:47 AM

All replies

  • Hi SS_N,

    Thank you for posting here.

    According to your question is more related to ASP.NET, I will move it to ASP.NET forum for suitable support.

    The Visual C# discuss and ask the C# programming language, IDE, libraries, samples and tools.

    If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

    Thanks for your understanding and cooperation.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, May 25, 2017 8:33 AM
  • Hi Wendy,

    Thank you, i have posted it in asp.net community.

    Thursday, May 25, 2017 11:06 AM