Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am creating a window service, it's getting error.

How to resolve this problem using c# .net windows service? ,"the remote name could not be resolved"

my programs it's getting error:-
the remote name could not be resolved:abc.com

"abc.com" it's my ftp.

Please help me.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Comments
Prasad Khandekar 5-Jun-14 5:44am    
are u able to ping abc.com from command prompt. The error message indicates that there is a problem in resolving the given name to corresponding IP address. Try putting an entry in your host file or re-configure your DNS server.

Regards,
[no name] 5-Jun-14 5:49am    
I am write this ftp:\\abc.com in browser or path, it's running successfully but when we trying through code so, it's getting error.
[no name] 5-Jun-14 6:13am    
The account that your windows service is running under is not able to access that resource.
[no name] 5-Jun-14 6:15am    
ya
ZurdoDev 5-Jun-14 7:25am    
The error means DNS cannot resolve the name.

1 solution

Give your Windows Service access to the network. That could be done by running it with a different user.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900