Hi!
Yes you are right! As we run as Local System we will not get the user-proxy
but a default-proxy. This is solved by group-policies , to set per-client
instead of per-user... which has been done, then there is only one proxy
configuration for the whole client and not one per user. Anyhow, this client
doesn't use proxy so it was/is unnecessary in this case.
So I'm sorry, I don't think this is a proxy problem.
What I think is that the Local System content (service) call to
InternetGetConnectedState is prohibited (Access denied). This shouldn't be
proxy related as it is a call to the Win32 API?
I have read:
http://support.microsoft.com/kb/315035/en-us
but that didn't help. We have a default gateway.
Thanks for your input ... all input is appreciatad!
/Marcus
"Phil Wilson" wrote:
I know the documentation refers to the "system" being connected to the
internet, but it's my experience that some user-specific registry entries
are sometimes used, and the system account won't have them. Are there any
proxy servers involved? The system account will fail attempting to check a
proxy server but a user can be validated.
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"EGON" <EG**@discussions.microsoft.comwrote in message
news:A7**********************************@microsof t.com...
Hi!
Thanks for your answer!
Are you using this syntax?
Yes, we do.
It works fine if we run "as user" (start exe manually) but if the exe run
as
"Local System" (started by the service / watchdog), it fails.
This only happens on a few computers (aprox ten). We have thousands of
computers where it works and only about ten where it fails.
Regards
/Marcus
"DailyCoder" wrote:
Are you using this syntax?
//Creating the extern function...
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState( out int
Description, int ReservedValue ) ;
//Creating a function that uses the API function...
public static bool IsConnectedToInternet( )
{
int Desc ;
return InternetGetConnectedState( out Desc, 0 ) ;
}
________________________
sa@dailycoding.com
http://www.dailycoding.com
DailyCoding.com - daily code for C#, .NET, ASP.NET, SQL