传到服务器的时候出现的问题。网上找过资料 有个方法说:加这个,我试了 不行 期待其他解决方法。Security Exception
Description: The application attempted 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's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +85
System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +105
System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +253
System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20
System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +133
System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +427
System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +893
Description: The application attempted 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's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +85
System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +105
System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +253
System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20
System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +133
System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +427
System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +893
解决方案 »
- asp.net后台弹出新页面被IE拦截,怎么解决
- 页面中文问题
- 我的asp.net程序出现了下面的错误,请问怎么解决啊???
- 请教:aspx页面所有的WEB控件在IE都无法显示
- 框架集中在一个页面如何用js调用另一个页面的函数??? 请高手指点
- 在onclick中实现链接的效果,在线等
- 求助:Web窗体设计器中未能加载该文件
- 如何用后台代码实现焦点设置?
- 在个公司一年多了!,工资还是一年前的700,我不想干了!因为穷!我不得不选择离开了!
- 准备用asp.net做一个网站!先到这里来套个近乎(送点分),请大家多关照了!
- 找不出错误所在,有关(ArgumentOutOfRangeException)
- asp.net c# 用session["Vcode"]来保存验证码问题不能得到session的问题
右键-属性-安全