Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2008, 07:27 AM
Registered User
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with directory info

Hi All

I want to access network resource file system which is on the windows 2003 server.

in the application i am giving the path like : \\servername\c$\Foldername
and in the code this path i am giving to Directoryinfo

Dim objFilesPath As DirectoryInfo = New DirectoryInfo(\\servername\c$\Foldername\)

and impersonating the user in web.config file

<identity impersonate="true" userName="servername\ABC" password="xxxx" />

user ABC has full permission on the server.

what is happening directory info is not recognising the path.

but if i put the path like : c:\folder from the user machine then it is recognising the path.


why it is happening ? is this the permission issue??

where i am doing wrong ? can u please help.

Thanks in advance

-joseph
 
Old July 22nd, 2008, 07:40 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You should be getting an Exception - that error will point you (and us) in the direction of the problem.

Note - the user 'ABC' must have permissions to both the share, and the files within the share - these are a separate set of permissions.


/- Sam Judson : Wrox Technical Editor -/
 
Old July 24th, 2008, 08:27 AM
Registered User
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sam Thanks for your reply.

Created the share and given the permission to the user then also it is not working.

But in the share if i give permission to everyone then it is working.

in security tab given permission to user and in share permission tab
if i give permission to everyone and user then it is working but if i remove everyone permission from the share permission then it is not working.

i just want to give permission to specific user.

how to achieve that ?

Thanks again

-joseph







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem retrieving info from a detail node LeoMathew XSLT 6 February 13th, 2008 08:54 AM
Active Directory problem krisshnaprabhu ASP.NET 1.0 and 1.1 Professional 0 June 9th, 2006 08:24 AM
How do I get Directory Info from a Web Service ruairi ASP.NET 1.0 and 1.1 Professional 0 October 27th, 2005 07:53 AM
problem in posting info frm child form to parent aravwind General .NET 2 July 28th, 2004 06:04 AM
Active Directory (ADSI) C# Group Info LDAP Problem ro C# 0 June 23rd, 2004 01:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.