Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / November 2004

Tip: Looking for answers? Try searching our database.

Security problem...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rajagopal - 20 Nov 2004 01:51 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.