Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System.Threading.Mutex and CreateMutex
Message
 
To
15/04/2003 15:13:17
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00777955
Message ID:
00778131
Views:
21
>Here's the scenario:
>Say a global (named) mutex is created by a web service running under the auspices of IIS. Since IIS is a service, it excludes by default all but the local system for ALL_ACCESS security to the mutex. The doc also states that all calls to CreateMutex request MUTEX_ALL_ACCESS security to the object. Now I've got an application that tries to acquire the mutex by creating it. It fails with an "access denied" error. I'm assuming that the app does not have the same security permissions as a service.

You may have to review under which security context you're actually running. I would guess if this is under Web Services that the context will not be SYSTEM but rather ASPNET or whatever you have configure you Web.Config file. ASPNET likely doesn't have permissions to set the mutex by default unless you elevate the permission set...
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform