Mutex and permission settings

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

  1. I posted this in other dotnet newsgroups with no response, so I will try it
    here:

    What needs to be changed to make this work? It is on a Windows 2003 shared
    server.

    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 22, 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. Siegfried Heintze
    Replies:
    0
    Views:
    2,279
    Siegfried Heintze
    Oct 24, 2005
  2. NaeiKinDus
    Replies:
    1
    Views:
    577
    Jack Klein
    Apr 14, 2007
  3. NaeiKinDus
    Replies:
    3
    Views:
    610
    James Kanze
    Apr 15, 2007
  4. donet programmer
    Replies:
    3
    Views:
    1,551
    Gregory A. Beamer
    Nov 20, 2009
  5. sven
    Replies:
    2
    Views:
    1,946
    Roy Smith
    Dec 4, 2009
Loading...

Share This Page