catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Other Support Queries

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 18-12-2006, 06:12 PM   #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?
__________________
Regards,
Us Media

Visit our website http://www.us-media.co.uk
us-media is offline   Reply With Quote
Old 19-12-2006, 12:07 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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
WhiskyFudge is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:47 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.