Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf SeAuditPrivilege错误_Wcf_Wcf Security - Fatal编程技术网

Wcf SeAuditPrivilege错误

Wcf SeAuditPrivilege错误,wcf,wcf-security,Wcf,Wcf Security,我的WCF服务具有以下用于安全审核的配置设置: <serviceSecurityAudit auditLogLocation="Default" suppressAuditFailure="false" ServiceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAudit

我的WCF服务具有以下用于安全审核的配置设置:

<serviceSecurityAudit auditLogLocation="Default" 
                      suppressAuditFailure="false" 
                      ServiceAuthorizationAuditLevel="SuccessOrFailure" 
                      messageAuthenticationAuditLevel="SuccessOrFailure"/>

使用ASP.Net Dev Server在本地为此服务调用方法时,会导致以下错误:

    <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
           <HelpLink i:nil="true"/>
           <InnerException i:nil="true"/>
           <Message>The process does not possess the 'SeAuditPrivilege' privilege which is required for this operation.</Message>
           <StackTrace>at System.IdentityModel.Privilege.EnableTokenPrivilege(SafeCloseHandle threadToken)
             ...

该进程不具有此操作所需的“SeAuditPrivilege”权限。
位于System.IdentityModel.Privilege.EnableTokenPrivilege(SafeCloseHandle threadToken)
...
我在本地机器上安装了Windows7

谁能告诉我这是什么问题吗


谢谢大家!

为了摆脱“SeAuditPrivilege”错误,我不得不改变

auditLogLocation="Default"

我使用的是Windows7,由于某种原因,它无法写入Windows 7的默认“安全日志”,正如MS的此链接所示-

我必须将值从“Default”更改为“Application”,以使其正常工作


HTH.

请不要因为您还没有得到答案而重新提问-当然!我现在删除了我的老问题。我想我提供的细节太多了,没有引起任何人的注意。事实上,你的老问题更好——里面有更多的信息。我会删除这一个,并取消删除你以前的一个。
auditLogLocation="Application"
Default

Specifies the default location, which is determined by the operating system. 
If writing to the Security log is supported (such as on Windows Vista and Windows 
Server 2003 and later platforms), the default log location is the Security log. 
Otherwise (such as in Windows XP SP2), the default log location is the Application log.