Security Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen E. Weber

    Security Error

    Im receiveing this error message from my ISP when I attempt to get any
    folder information. Do I have to ask my Isp to change sthe security or can I
    set from my application by editing the applciations trust level, syntax?

    thanks
    Steve



    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Security Exception
    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 .SecurityExcept ion: Request for the
    permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.

    Source Error:

    Line 22: Next tmpCount
    Line 23:
    Line 24: txtCurrentPath. Text =
    System.IO.Direc tory.GetCurrent Directory
    Line 25:
    Line 26:

    Source File: d:\hosting\gsho ck\Default.aspx .vb Line: 24


Working...