Mutex and permission settings
From: William LaMartin (lamartin_at_tampabay.rr.com)
Date: 10/22/03
- Next message: Michael Tissington: "Re: Forms Authentication and SSL"
- Previous message: Andrea D'Onofrio: "Re: Can't connect to DB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 22 Oct 2003 10:40:49 -0400
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.
- Next message: Michael Tissington: "Re: Forms Authentication and SSL"
- Previous message: Andrea D'Onofrio: "Re: Can't connect to DB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|