Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use
internet-based webservices, but not always. I would like to know:
1. How I can make sure that the LocalSystem account can access a webservice
2. If there is an alternative approach to this problem, in which I
accomplish to be able to access the complete file system and upload this to a
webservice.
Thanks ahead,
rvangeldrop 5 8879
* rvangeldrop wrote, On 30-7-2007 11:06:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use
internet-based webservices, but not always. I would like to know:
1. How I can make sure that the LocalSystem account can access a webservice
2. If there is an alternative approach to this problem, in which I
accomplish to be able to access the complete file system and upload this to a
webservice.
This almost definitely not an issue with user rights. The fact that it
cannot find or resolve the hostname for the webservice indicates a
network/infrastructure problem. It can be that the connection is down, a
firewall is playing tricks or the DNS server is not responding (or
cannot resolve the hostname because it cannot reach the DNS server that
is hosting the domain name).
You could try if the problem goes away if you connect to the webservice
on its IP address instead of it's fqn.
There is another possible cause: When the system tries to leave too many
connections half-open, windows will temporarily deny new outbound
connections. This will result in an event in the eventlog with Event ID
4226. Though this is a long shot.
Jesse
Hello Jesse,
If it is not a matter of rights and security, how would you explain the
following:
- If I change the Windows Service the run as a local administrator
everything works fine
-If I change back to let the Windows Service run as LocalSystem the problem
reappears
Somehow the local administrator can resolve a hostname which the LocalSystem
can not?
"rvangeldrop" wrote:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use
internet-based webservices, but not always. I would like to know:
1. How I can make sure that the LocalSystem account can access a webservice
2. If there is an alternative approach to this problem, in which I
accomplish to be able to access the complete file system and upload this to a
webservice.
Thanks ahead,
rvangeldrop
* rvangeldrop wrote, On 30-7-2007 12:10:
Hello Jesse,
If it is not a matter of rights and security, how would you explain the
following:
The keyword is in ...sometimes... in your original post. If it was
security the service would *never* resolve the hostname. But it most of
the times does, indicating a different cause. Can you reproduce the
error on other systems as well? Have you tried running under a different
user than LocalSystem (which is about the highest there is). Have you
tried with Anti-Virus disabled or if there is an application firewall,
try disabling that. It could be that some worm prevention could mistake
your service for a worm. (I've seen McAfee do this several times before).
Jesse
>
- If I change the Windows Service the run as a local administrator
everything works fine
-If I change back to let the Windows Service run as LocalSystem the problem
reappears
Somehow the local administrator can resolve a hostname which the LocalSystem
can not?
"rvangeldrop" wrote:
>Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact problem is that sometimes this service is not allowed to resolve the target webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use internet-based webservices, but not always. I would like to know: 1. How I can make sure that the LocalSystem account can access a webservice 2. If there is an alternative approach to this problem, in which I accomplish to be able to access the complete file system and upload this to a webservice.
Thanks ahead,
rvangeldrop
Hello Jesse,
Following up on your mail:
sometimes: means 'on some systems'. The behaviour on a system that is
showing this problem is very consistent. It will never work when running
OnlineBackupService.exe as LocalSystem. Also, changing this to a local
Administrator always resolved the problem.
Your remark about a firewall or anti-virus engine blocking access might be
plausible too, but how does this software distinct its behaviour on the
user-context processes are running in?
I was also thinking of other causes:
- Local security settings are overruled by tighter domain security settings?
- Some LocalSystem profiles miss a certain flag allowing them to resolve
domain names?
Kind regards,
rvangeldrop
"Jesse Houwing" wrote:
* rvangeldrop wrote, On 30-7-2007 12:10:
Hello Jesse,
If it is not a matter of rights and security, how would you explain the
following:
The keyword is in ...sometimes... in your original post. If it was
security the service would *never* resolve the hostname. But it most of
the times does, indicating a different cause. Can you reproduce the
error on other systems as well? Have you tried running under a different
user than LocalSystem (which is about the highest there is). Have you
tried with Anti-Virus disabled or if there is an application firewall,
try disabling that. It could be that some worm prevention could mistake
your service for a worm. (I've seen McAfee do this several times before).
Jesse
- If I change the Windows Service the run as a local administrator
everything works fine
-If I change back to let the Windows Service run as LocalSystem the problem
reappears
Somehow the local administrator can resolve a hostname which the LocalSystem
can not?
"rvangeldrop" wrote:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use
internet-based webservices, but not always. I would like to know:
1. How I can make sure that the LocalSystem account can access a webservice
2. If there is an alternative approach to this problem, in which I
accomplish to be able to access the complete file system and upload this to a
webservice.
Thanks ahead,
rvangeldrop
* rvangeldrop wrote, On 30-7-2007 14:20:
Hello Jesse,
Following up on your mail:
sometimes: means 'on some systems'. The behaviour on a system that is
showing this problem is very consistent. It will never work when running
OnlineBackupService.exe as LocalSystem. Also, changing this to a local
Administrator always resolved the problem.
Ahh ok ,that is more clear. What's the difference between those systems
is what you'd be looking for.
A clear view on the different user accounts and their security privs can
be located here:
Your remark about a firewall or anti-virus engine blocking access might be
plausible too, but how does this software distinct its behaviour on the
user-context processes are running in?
Some do.
I was also thinking of other causes:
- Local security settings are overruled by tighter domain security settings?
- Some LocalSystem profiles miss a certain flag allowing them to resolve
domain names?
Kind regards,
rvangeldrop
"Jesse Houwing" wrote:
>* rvangeldrop wrote, On 30-7-2007 12:10:
>>Hello Jesse,
If it is not a matter of rights and security, how would you explain the following:
The keyword is in ...sometimes... in your original post. If it was security the service would *never* resolve the hostname. But it most of the times does, indicating a different cause. Can you reproduce the error on other systems as well? Have you tried running under a different user than LocalSystem (which is about the highest there is). Have you tried with Anti-Virus disabled or if there is an application firewall, try disabling that. It could be that some worm prevention could mistake your service for a worm. (I've seen McAfee do this several times before).
Jesse
>>- If I change the Windows Service the run as a local administrator everything works fine -If I change back to let the Windows Service run as LocalSystem the problem reappears
Somehow the local administrator can resolve a hostname which the LocalSystem can not?
"rvangeldrop" wrote:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact problem is that sometimes this service is not allowed to resolve the target webservice. This results in the following exception:
Could not resolve remote DNS or hostname.
It seems in some cases that the LocalSystem account can not use internet-based webservices, but not always. I would like to know: 1. How I can make sure that the LocalSystem account can access a webservice 2. If there is an alternative approach to this problem, in which I accomplish to be able to access the complete file system and upload this to a webservice.
Thanks ahead,
rvangeldrop
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: My Deja |
last post by:
How can the mysql service be run without using the local system account?
I want to run it and give it access only the directories of its own account.
|
by: DB2 |
last post by:
Hello, everyone.
Does anyone know what potential security issues when running DB2
services (start-up) using local system account instead of the DB2 admin
account?
DB2 environments:
Windows...
|
by: ABCL |
last post by:
Hi All,
Can any one tell me that what is the difference between Network
Service, Local Service and Local System ACcount for window services
ABCL
|
by: Andrés G. Aragoneses |
last post by:
Hello.
I have a Windows Service which I want to execute a file. The service is
running under the local system account but when the file is executed it
seems to be run with the profile of the...
|
by: Greg |
last post by:
I am having a problem trying to debug my windows service. The service
itself is working fine (it starts a timer, which writes a log entry
every 20 seconds). However, when I set my breakpoint on the...
|
by: DSilent |
last post by:
Hi guys, i have a problem with my windows service project. I already
publish that to my localhost and install it. The installation file has
been created. But at the same time, a message box appear...
|
by: mrian84 |
last post by:
I am trying to use Outlook Redemption 4.5 from a window service running as LocalSystem but I seem to have problems
can anybody enlighten me on what to do?
-I did try creating some profiles...
|
by: Ollie Riches |
last post by:
I'm looking into a production issue related to a windows service and
System.Timers.Timer. The background is the windows service uses a
System.Timers.Timer to periodically poll a directory location...
|
by: sudhivns |
last post by:
Hi,
How to run the COM server exe in 'Local System Account' rather than user previleges. ? While creating COM component anything to take care here. ?
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |