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. Advertising

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. Scott Allen
    Replies:
    0
    Views:
    424
    Scott Allen
    Jul 13, 2004
  2. Srijit Kumar Bhadra
    Replies:
    0
    Views:
    830
    Srijit Kumar Bhadra
    Apr 2, 2005
  3. NaeiKinDus
    Replies:
    1
    Views:
    555
    Jack Klein
    Apr 14, 2007
  4. NaeiKinDus
    Replies:
    3
    Views:
    584
    James Kanze
    Apr 15, 2007
  5. sven
    Replies:
    2
    Views:
    1,897
    Roy Smith
    Dec 4, 2009
Loading...

Share This Page