System.Security.SecurityException:请求主体权限失败 [英] System.Security.SecurityException: Request for principal permission failed

查看:376
本文介绍了System.Security.SecurityException:请求主体权限失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮点我的我怎么可能能够解决这个错误方向是正确的?

Can anyone help point me in the right direction of how I might be able to fix this error?

System.Web.Services.Protocols.SoapException: Server was unable to process request. 
     ---> System.Security.SecurityException: Request for principal permission failed.
at System.Security.Permissions.PrincipalPermission.ThrowSecurityException()
at System.Security.Permissions.PrincipalPermission.Demand()
at System.Security.PermissionSet.DemandNonCAS()
at LiveDocx.MailMerge.SetLocalTemplate(String template, String format)

我已经安装了这个软件,我公司从LiveDocx购买。所以,我没有修改code,甚至阅读code的能力。我已经根据他们的文档安装了一切,并现场确认工作。我只能在IIS中,文件夹权限和Web.config中更改设置。我们的服务器,他们的软件。

I have installed this software that my company purchased from LiveDocx. So, I don't have ability to modify code or even read the code. I have installed everything according to their documentation and the site is confirmed to work. I can only change settings in IIS, folder permissions, and Web.config. Our server, their software.

现在,我有问题,与住登录到Web服务。在你认为它是SOAP客户端,我已经证实,它的工作原理通过调用供应商的服务器。

Now, I am having issue with staying logged into the webservice. Before you think it is the soap client, I have confirmed that it works by calling the vendor's servers.

在本地,我可以成功调用登录时的Web服务,它工作正常。然而,当我做的后续调用,我得到的请求主体权限失败。

Locally, I can successfully call the web service during login and it works fine. However, when I make a subsequent call, I get the Request for principal permission failed.

目前其技术支持的要求,我已经添加了<信任级别=完全/> 来web.config中,但没有奏效。现在,他们已停止回复我们的邮件。

At the request of their technical support, I have added <trust level="Full" /> to the web.config, but that didn't work. Now, they have stopped replying to our emails.

我不是一个ASP.NET开发人员,所以我的知识是在服务器上设置的限制。有人能指出我在正确的方向,为什么这个错误发生,少数地方寻找解决这个问题?

I am not an ASP.NET developer, so my knowledge is limited on server settings. Can someone point me in the right direction why this error happens and a few places to look to resolve this issue?

推荐答案

我终于找到了解决办法。此有关权限的错误是有点误导。经过大量的试验和错误,我终于接受了应用程序池用户的权限无关这个问题。这导致我调查的web.config 设置,而这正是我发现这个问题。

I finally found a solution. This error about permissions is a bit misleading. After lots of trial and errors, I finally accepted the Application Pool user's permissions had nothing to do with this problem. Which lead me to investigate the web.config settings and that is where I found the problem.

问题是,所提供的的web.config 文件丢失&LT;认证&GT; 标记,并进行必要的设置。这个标签(从我的理解),是使饼干。我希望这有助于与其他人即使不涉及LiveDocx此错误。似乎请求主体权限失败。可用于各种原因引起的,这使得它一个令人沮丧的错误。

The problem was that the supplied web.config file was missing <authentication> tag and the required settings. This tag (from my understanding) is what enables cookies. I hope this helps others with this error even if not related to LiveDocx. Seems Request for principal permission failed. can be caused for various reasons which makes it a frustrating error.

这篇文章是非常有益的如何:使用成员在ASP.NET 2.0

This article was very helpful How To: Use Membership in ASP.NET 2.0

这篇关于System.Security.SecurityException:请求主体权限失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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