无法使用模拟来开始监视global.asax .net 3.5 Web服务上的更改 [英] Failed to start monitoring changes on global.asax .net 3.5 Web service using Impersonation
问题描述
我正在尝试在asp.net 3.5 Web服务中使用模拟.但是,每当我尝试在启用了模拟的情况下运行服务时(在web.config中),我的Windows事件日志中都会出现以下错误:
I am trying to use impersonation in a an asp.net 3.5 webservice. However whenever I try to run the service with Impersonation enabled (In web.config) I am receiving the following error in my Windows Event log:
异常消息:无法开始监视对"C:\ 1work \ temp \ NotificationWatcherWebServiceClean2010 \ NotificationWatcherWebService \ NotificationWatcherWebService \ global.asax"的更改
Exception message: Failed to start monitoring changes to 'C:\1work\temp\NotificationWatcherWebServiceClean2010\NotificationWatcherWebService\NotificationWatcherWebService\global.asax'
起初我什至没有global.asax,所以我尝试添加1并为要模拟的用户添加显式权限.
I initially didn't even have a global.asax so I tried adding 1 and adding explicit permissions for the user I'm trying to impersonate.
我正在使用以下环境.
Visual Studio 2010
Windows 7 64位
.Net Framework 3.5
I am using the following environment.
Visual Studio 2010
Windows 7 64-bit
.Net Framework 3.5
有什么想法吗?
推荐答案
每次我得到一个新盒子或对我的图像进行重新成像时,我都会看到此问题.我要做的是授予要模拟的帐户(假设它是一个帐户,否则您可能需要授予一组用户)对密钥文件夹的访问权限.
I've seen this issue each time I get a new box, or have mine reimaged. What I have to do is grant the account that is being impersonated (assuming it's a single account, otherwise you may need to grant a group of users) access to key folders.
特别是C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
,但是您也可以尝试c:\windows\temp
和位于C:\Users\userid\AppData\Local\Temp
的自己的用户临时文件夹.
Specifically C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
but also you might try c:\windows\temp
and your own user temp folder located at C:\Users\userid\AppData\Local\Temp
.
这篇关于无法使用模拟来开始监视global.asax .net 3.5 Web服务上的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!