Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows service problem

Status
Not open for further replies.

dinger2121

Programmer
Sep 11, 2007
439
US
Hello,
I am creating a windows service that pulls data from an existing web service. When I run the code I created from a windows application, everything works fine.
However, when I build and install the windows service, I am not able to connect to the web service anymore. It tells me connecting to the server machine failed.
Does anyone have any idea why that might be happening?
Thanks
 
I think it was an error regarding trying to use a mapped drive vs. a UNC. I made the change to UNC and it seemed to work correctly.

Thanks
 
your domain account has the drives mapped. so it knows how to translate [tt]k:\my_directory\my_file.ext[/tt] to [tt]\\the_server\c$\\my_directory\my_file.ext[/tt]. a windows service has no knowledge of mapped drives. it requires the full UNC path ([tt]\\the_server\c$\\my_directory\my_file.ext[/tt]).

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top