views:

1017

answers:

1

Hi All,

I want to create a web part which will contain a button, on click of that button I want to access the network folder and apply the business logic such as create a file/folder, delete a file/folder e.t.c.

I do have created such kind of web part but it's giving error like "Could not find a part of the path '\comp01\ibc'" while accessing the network folder. I am using a name space System.IO for file related activities. I found a weird behavior like this web part works fine on another wss server.

Is share point requires any kind of privileges to access the network folder? I am using a windows authentication not forms based authentication.

Please help me in this regard.

A: 

Where are you trying to Create the Folder in the SharePoint Server or a Different Server?. Check if you are accessing the path using UNC \ format, make sure that the permission has been configured. Also there is a chance that impersonation is not configured to have rights to create the folder, check the App Pool User account permission. Finally you can try to run the code with elevated permission ( have this as last option)

Kusek
WSS production server name is in-wai-svr2, site is hosted on this server and I am trying to create a folder on the other machine in the LAN named in-wai-svr4 which is a file server i.e on network folder.
Tejas
Is the Permission all set for the Folder ? , You might need to change the Property value to UncPath="\\\\in-wai-svr4\\ibc\\ " in case you are using the C# as \ considered as the escape charater.
Kusek
There is a Probability that the value specified is being encoded by C# and considered as relative path \in-wai-svr4\ibc\ instead of \\in-wai-svr4\ibc\
Kusek
Full control permission is set to the network folder. Also I have tried UNCPath in both way @"\\in-wai-svr4\ibc\" and "\\\\in-wai-svr4\\ibc\\".
Tejas