45 pts.
 AS/400 IFS Folder access in c# that prompts for user credentials
Hi,

I'm developing an web application where users can access files within a folder in IFS on as400.i've created a map network drive to that folder but i can't access it through c# (\remoteserverfolder). it says that this path does not exist or access is denied, this because i don't know how to pass the credentials to the open process of directoryinfo. Can anyone please help me. All i want to do is pass the credentials that the user should fill when a prompt form appears and then open the folder and view the files.

 

Thnx a lot.



Software/Hardware used:
asp.net,ifs as400
ASKED: June 22, 2011  11:03 AM
UPDATED: June 30, 2011  3:08 PM

Answer Wiki:
<b>Elai, That's because the users need to have permission to the particular directory where the files exist in the IFS.</b>
Last Wiki Answer Submitted:  June 30, 2011  3:08 pm  by  400MYEYE   230 pts.
All Answer Wiki Contributors:  400MYEYE   230 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

What I had to do in a similiar situation was to create a guest account for the IFS and assign that guest account permission on that folder. The guest account allows access to the folder with out specific credentials being passed.

That could be a problem though if the data in the folder is sensitive, because it will open it up to anyone that can access the mapped drive.

 20 pts.