System.Security.Permissions.FileIOPermission

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top