System.Security.Permissions.FileIOPermission

Discussion in 'ASP .Net' started by =?Utf-8?B?cGF1bA==?=, Oct 1, 2004.

  1. I just installed Windows XP SP2 on my web server.
    Now when I run one of the web applications I get the following error:

    ArgumentException: Illegal characters in path.]

    System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[]
    str) +276

    System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
    access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
    needFullPath, Boolean copyPathList) +88
    System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
    access, String path) +66
    System.Windows.Forms.Application.get_StartupPath() +167

    This happens when I call the following line of code:

    Application.StartupPath

    The correct value should be 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322'.

    which appears fine on a non-xp sp2 machine. the function writes to a file
    on the web server.
    Any ideas, it must be some sort of file access setting that was 'enabled'
    before the SP but can't find any help on MS support.

    Any help is greatly appreciated.
    thanks

    paul
     
    =?Utf-8?B?cGF1bA==?=, Oct 1, 2004
    #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. Eric Phetteplace

    System.Security.Permissions.FileIOPermission

    Eric Phetteplace, Jun 11, 2004, in forum: ASP .Net Security
    Replies:
    2
    Views:
    177
    Eric Phetteplace
    Jun 12, 2004
  2. Simon Cheng

    System.Security.Permissions.FileIOPermission

    Simon Cheng, Nov 25, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    300
    Dominick Baier [DevelopMentor]
    Nov 25, 2005
  3. Usman Ghani
    Replies:
    0
    Views:
    151
    Usman Ghani
    Apr 17, 2006
  4. Leyla
    Replies:
    2
    Views:
    691
    Leyla
    Aug 17, 2006
  5. Replies:
    0
    Views:
    316
Loading...

Share This Page