Hi,
I have a window based application developed using C#. In this application i
am using the file operation to check whether the file is available and
whether it in expected size. While doing this file operation i am getting
the following error message. Please some one help me to find the problem.
The given path's format is not supported.
Trace Message : at
System.Security.Util.StringExpressionSet.CanonicalizePath(String path,
Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[] str,
Boolean checkForDuplicates, Boolean needFullPath)
at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.FileInfo..ctor(String fileName)
at CallCenter.CommonClass.convertFile(String strFileName, Int32
intWAVFileSize, Int32 intMP3FileSize)
Thanks,
Rajagopal.S
Nicole Calinoiu - 25 Nov 2004 18:20 GMT
What is this "file operation" that you are using? What is the file path
that is causing the problem? Does it contain a colon after the second
position in the path string? If so, and you're using the System.IO.File
and/or System.IO.FileInfo classes, you'll need to eliminate the colon in
order for the FileIOPermission demands used by these class methods to
function without throwing this exception.
HTH,
Nicole
> Hi,
>
[quoted text clipped - 24 lines]
> Thanks,
> Rajagopal.S