What permissions for Mutex to be shared?

Discussion in 'ASP .Net' started by William LaMartin, Oct 16, 2003.

  1. This code:

    Private Shared FileLockMutex As System.Threading.Mutex
    Shared Sub New()
    FileLockMutex = New System.Threading.Mutex(False,
    "MyFileLockMutex")
    End Sub

    on an aspx page produces the following error message on one server I host
    on.

    Description: The application attempted to perform an operation not allowed
    by the security policy. To grant this application the required permission
    please contact your system administrator or change the application's trust
    level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the
    permission of type System.Security.Permissions.SecurityPermission, mscorlib,
    Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
     
    William LaMartin, Oct 16, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    3
    Views:
    16,809
    Gandalf
    Feb 8, 2004
  2. Joe Fallon
    Replies:
    3
    Views:
    979
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  3. ben
    Replies:
    3
    Views:
    704
    Kevin Spencer
    Nov 15, 2004
  4. Srijit Kumar Bhadra
    Replies:
    0
    Views:
    1,050
    Srijit Kumar Bhadra
    Apr 2, 2005
  5. Curt K
    Replies:
    0
    Views:
    717
    Curt K
    Nov 3, 2006
  6. NaeiKinDus
    Replies:
    1
    Views:
    735
    Jack Klein
    Apr 14, 2007
  7. NaeiKinDus
    Replies:
    3
    Views:
    796
    James Kanze
    Apr 15, 2007
  8. sven
    Replies:
    2
    Views:
    2,554
    Roy Smith
    Dec 4, 2009
Loading...