Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > System.Security.Permissions.FileIOPermission

Thread Tools


Posts: n/a
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.HasIl legalCharacters(String[]
str) +276

System.Security.Permissions.FileIOPermission.AddPa thList(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:


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.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off