954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to access file from any drive at remote computer

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.

manjusaharan
Light Poster
35 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 
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

manjusaharan
Light Poster
35 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

What's the exception please copy it here

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

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()

manjusaharan
Light Poster
35 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

can you please give me the path you access

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

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

manjusaharan
Light Poster
35 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

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

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 
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

suresh_p
Newbie Poster
1 post since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

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

Aratijena
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

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

mayer
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You