Hi All,
I m trying to access a file residing at c: drive from a remote computer by using RDC.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance.

Recommended Answers

All 9 Replies

Hi All,
I m trying to access a file residing at c: drive from a remote computer by using RDC t access that computer.I m using c#.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance.

I m trying to access a file residing at c: drive from a remote computer by using RDC t access that computer.I m using c#.
bt it is showing exception if i m using FileInfo() method for opening it.
help me in solving this problem.
Thanx in advance

What's the exception please copy it here

System.NotSupprotedException:Given Path format is not supported.
System.Security.Util.StringExpressionSet.CanonicalizePath(String Path,Boolean NeedFullPath)
at
System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str ,Boolean NeedFullPath)
at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPErmissionAccess access,AccessControlAccess controls,String[] pathlistorig,Boolean checkforduopilcates,Bolean NeedFullPath,Boolean CopyPathList)
at
System.Security.Permissions.FileIOPermission.ctor(FileIOPErmissionAccess access,String[] pathlistorig,Boolean checkforduopilcates,Bolean NeedFullPath)
at
System.IO.FileInfo..ctor(String FileName)
at myfile.maxim()

can you please give me the path you access

in fact i got answer .
i made a silly mistake.
i didnt shared the folder that i want to access.
otherwise everything is right.
thanx for spending ur precious time in solving my problem

you're welcome, I got that but I was about to say did u share the folder?

in fact i got answer .
i made a silly mistake.
i didnt shared the folder that i want to access.
otherwise everything is right.
thanx for spending ur precious time in solving my problem

Hi
Can u send me the code for that one

Hi Everybody
i am Arti
here is my problem need a favour from all of u
i have developed a program to edit a template and the template is present in a folder within the Application forlder and hosted in ISS
but now when i m accessing from my system its working fine but when i m accessing from other system its asking for my sysytem's username and pasword .
i am unable to find out why so
will u all give any solution for this

i want to access files in the clints from my server
please can any one help me to do ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.