![]() |
|
|
#1 (permalink) |
|
www.us-media.co.uk
Join Date: Mar 2004
Location: West Midlands
Posts: 13
|
Using Mutex object in ASP.NET 1.1
Hello,
I have a component that I have developed for a site, that needs to log data to an XML file under certain conditions. Because it is possible for the code to be executed at the same time (due to the fact multiple visitors may be accessing the site at the same time), it is necessary to use the Mutex object so that only one attempt to write to the file is allowed. Without using the Mutex object, a file sharing exception would occur. The problem is, that when I run the code on Catalyst2, I get the following exception: System.Security.SecurityException: Request for the permission of type System.Security.Security.Permissions.SecurityPermi ssion, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. I believe this is due to a server security policy that prevents Mutexes being created. Is there any scope to enable this? |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
There is scope. Please give me some time to look into this and work out the security implementations of doing so.
Also if you could drop me your code (or sample code that's very close to what your doing) to jason@catalyst2.com, that will help me test. Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|