[wpkg-users] Solution for WNetAddConnection2-> The network location can not

Jens Geile jens.geile at support.iserv.eu
Mon Mar 16 15:04:14 CET 2009


Hi,

> > I had the problem WNetAddConnection2-> The network location can not be reached, I looked for the forum and not found a solution, but ultimately found it.
> > The errors shows in logon service but when i change to start service at shoutdown it works perfectly.
> > After many tests the solution was to make the service dependent of ALG service, I have created a regedit to make it easier. I hope you will help.
> > 
> > Windows Registry Editor Version 5.00
> > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WpkgService]
> > "DependOnService"=hex(7):61,00,66,00,64,00,00,00,74,00,63,00,70,00,69,00,70,00,\
> >   00,00,41,00,4c,00,47,00,00,00,00,00
> Ooooh, this sounds very interesting. If everything goes according to plan I'll test this on a few machines on monday and report back. If this really fixes those errors it would be awesome to add this to WPKG-Client by default in the next release. ^^
Hmpf. :'(
This doesn't seem to fix the problems at all. I've tested the reg-patch above and after this failed also added some more dependencies (afd tcpip ALG Netlogon Dhcp RasMan LmHosts) myself. None of these seem to have any effect on the "WNetAddConnection2-> Access denied" problem.

For testing purposes i've written a small package:
<package id="reboottest" name="reboot test" revision="2" priority="1" reboot="true" notify="false" execute="always">
  <install cmd='cmd /c echo foo' />
  <upgrade cmd='cmd /c echo foo' />
</package>

After the second or third reboot the computer stops with the login mask and checking the eventlog shows the infamous error. :/

Any other ideas maybe? ^^

-
jens



More information about the wpkg-users mailing list