473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Access to path is denied

AnuSumesh
Hi,

I am impersonating the user providing Username,domain and password .
Impersonation is successfull.
After that i m trying to create folder on remote machine using Directory.CreateDirectory(path)
Where path format is - domain/machine/shared_folder/folder_name

e.g. celestixtest/anulaptop/anu/abc
where celestixtest is domain,
anulaptop is machine where folder to be created,
anu is shared folder under which folder to be created and
abc is folder to be created.

its throwing exception "Access to path celestixtest/anulaptop/anu/abc is denied.

But if path is //anulaptop/anu/abc
then folder is created sucessfully.

Please help me. My path is in "domain/machine/shared_folder/folder_name" format.

Regards
Anu
Oct 31 '08 #1
5 1909
kenobewan
4,871 Expert 4TB
If you create a folder on a remote machine how can you be sure that the permissions will be the same? Does your user account exist on the remote machine?
Oct 31 '08 #2
thanks for reply.

how can i check for permissions?
User account exists on remote machine and that machine is domain controller.

Anu


If you create a folder on a remote machine how can you be sure that the permissions will be the same? Does your user account exist on the remote machine?
Nov 1 '08 #3
kenobewan
4,871 Expert 4TB
Check that the path exists and the folder permissions on the remote machine.
Nov 1 '08 #4
I am telling you that i am successfull in creating the folder in same location if not providing the domain in path.
But I have to give the domain also in path.
In our exisying project, we are successful to create the folder in that location using the same path means providing domain name also.
But some dll is used and so i dont know how ther r doing.

Plzzz help me.

Thanks
Anu
Nov 3 '08 #5
Plater
7,872 Expert 4TB
the domain is not used in the path.

If you have a computer called SERVER3 on mydomain.com
And if there is a network share in effect so that you have access to it
\\SERVER3

The only time the domain name comes in to play, is when you have to authenticate to get into the network share

If I am on a seperate domain then server3, when I try to access it, it will request a username and password:
WorkingUsername.mydomain.com
mypass

Note: That I had to supply the domain name in the username section (this would be similar to visible notation that use with active directory "mydomain.com/WorkingUsername")
Nov 3 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Theerachet Pratoommanee | last post by:
This is error message I've got. Any suggestion would be appreciated. Server Error in '/WebDirectory' Application. ----------------------------------------------------------------------------...
4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
0
by: Goran | last post by:
Hi I have created a very simple ASP.Net application that only consists of a CrystalReports Viewer, that has been connected to a .rpt file. When the page is loaded in the browser, the following...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
1
by: Duffman | last post by:
Hi, I have what seems to be a common problem, but the solutions I've found don't seem to work. I would like to use a web service to create a file at a UNC location in a shared file. Currently...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
2
by: stephen | last post by:
Hi, I am getting an Error "Access to the path...... is denied" Error. I have an web app and I am creating a log file to write the error info. If I have the absolute path...
1
by: cpajoe2001 | last post by:
I am having an issue and after searching around online for a day and half now and finding others with the same problem but yet no solution to my issue I am looking for help. What i have is ServerA...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: p.thorn.ru | last post by:
Hello, I am running db2 express-c 9.5 under linux (fedora 7), and my error log frequently shows messages like these: 2008-01-08-18.30.01.952964+180 I651334G1048 LEVEL: Error (OS) PID ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.