none
Error:Attempt by method 'Microsoft.VisualBasic.CompilerServices.Symbols+Container.InvokeMethod(Method, System.Object[], Boolean[], System.Reflection.BindingFlags)' to access method 'System.RuntimeType.get_FullName()' failed. RRS feed

  • 问题

  • 你好!

    我在建网站时遇到了这样一个问题:网站在本地测试的时候没有任何问题,发布到空间以后部分页面就出现了错误信息,我的网站原来是ASP 2.0的,但由于此版本发布到空间以后根本无法显示,所以只能用ASP 4.0的,但是依旧会出现以上描述的部分页面不现实的问题,以下是错误提示信息:

    Attempt by method 'Microsoft.VisualBasic.CompilerServices.Symbols+Container.InvokeMethod(Method, System.Object[], Boolean[], System.Reflection.BindingFlags)' to access method 'System.RuntimeType.get_FullName()' failed.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.MethodAccessException: Attempt by method 'Microsoft.VisualBasic.CompilerServices.Symbols+Container.InvokeMethod(Method, System.Object[], Boolean[], System.Reflection.BindingFlags)' to access method 'System.RuntimeType.get_FullName()' failed.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [MethodAccessException: Attempt by method 'Microsoft.VisualBasic.CompilerServices.Symbols+Container.InvokeMethod(Method, System.Object[], Boolean[], System.Reflection.BindingFlags)' to access method 'System.RuntimeType.get_FullName()' failed.]
       Microsoft.VisualBasic.CompilerServices.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +202
       Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +190
       Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +167
       YiTie.Comm.Template.ExecuteLabel(String Label) +6135
       YiTie.Comm.Template.ShowTemplate(String Page, String Str) +2752
       YiTie._InfoAdd.Page_Load(Object sender, EventArgs e) +9566
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025

    希望有人能够帮帮忙,帮我分析一下是怎么回事,该怎么解决,将不胜感激!先谢过了!

    • 已移动 Caillen 2015年3月26日 5:37
    2015年3月24日 8:23

全部回复

  • 你好:

    以后遇到ASP.NET的问题请发布到ASP.NET板块,发布到对应的技术板块可以获取到更多人帮助,谢谢。


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年3月26日 5:42
  • 您好,

    请尝试一下代码:

    <configuration>
    <system.web>
    <trust level="Full" />
    </system.web>
    </configuration>

    2015年3月27日 6:34