在Web服务器上托管时出错! [英] While Hosting on Web Server Following Error !!

查看:108
本文介绍了在Web服务器上托管时出错!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Security.SecurityException:请求类型'System.Web.AspNetHostingPermission,System,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'的权限失败。

解决方案

试试这个:



http://blogs.msdn.com/b/narahari/archive/2010/06/03/system-security-securityexception-request-for-the-permission-of-type-system-web-aspnethostingpermission-system- version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx [ ^ ]

http:// blogs.msdn.com/b/friis/archive/2010/06/09/system-security-securityexception-request-for-the-permission-of-type-system-web-aspnethostingpermission-failed.aspx?Redirected=true [ ^ ]


原因可能是多次。



我建议你先试试上面提到的技巧这里 [ ^ ]。



如果没有帮助,请尝试这个 [ ^ ]。



[请接受/投票给你的答案或解决方案以鼓励参与]


Hi Khan,



似乎有许可问题。请完全许可,它将正常工作。或者你可能需要查看这篇文章 http://dotnet4europeanhosting.hostforlife.eu/post/European-ASPNET-45-Hosting-Germany-ASPNET-45-Shared-Web-Hosting-Trust-Level.aspx [ ^ ]

System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

解决方案

Try this:

http://blogs.msdn.com/b/narahari/archive/2010/06/03/system-security-securityexception-request-for-the-permission-of-type-system-web-aspnethostingpermission-system-version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx[^]
http://blogs.msdn.com/b/friis/archive/2010/06/09/system-security-securityexception-request-for-the-permission-of-type-system-web-aspnethostingpermission-failed.aspx?Redirected=true[^]


The reason for this could be multiple.

I suggest you first try the tricks mentioned here[^].

If doesn't help, then try this[^].

[Please accept/up-vote answers or solutions that work for you to encourage participation]


Hi Khan,

It seems there is permission issue. Please kindly grant full permission and it will work fine. Or you may need to check this post http://dotnet4europeanhosting.hostforlife.eu/post/European-ASPNET-45-Hosting-Germany-ASPNET-45-Shared-Web-Hosting-Trust-Level.aspx[^]


这篇关于在Web服务器上托管时出错!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆