Page 1 of 1 1
Topic Options
#34836 - 2003-01-08 12:56 AM Network Resource error - Abort, Retry, Fail?
Moffet Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 5
Hey there,

Has anyone had the problem of getting a network resource error when running a kix logon script?

I run a login.bat that copies the files kix32.exe, kix32.dll, kix16.dll and kix95.dll to the local machine if they are not already there, and then it runs the login.kix script from the netlogon share using the local copy of kix. About a quarter of the users per day (generally different ones each day - and only on the Win9x machines I think) get an error message about not being able to access the network resource and to try again later with an "Abort, Retry or Fail?" prompt. Possibly a permissions thing - what should the permissions be set to?

Any other suggestions would be gratefully received.

Cheers guys.

Top
#34837 - 2003-01-07 01:17 PM Re: Network Resource error - Abort, Retry, Fail?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
haven't seen that error, nor have any win9x machines (thank god)...

anyway, permission can be an issue with network resources and with nt-based wksta.

so, don't think it's about perm.
anyway, as sidecomment: one shouldn't copy any supporting files to nt-based machines.

not sure it is the case anymore, but previously remember seeing comments that it slows down the execution.

next, the question part.
what is the version of your kix-files?
are the dll's from the same package as the exe's?
have you kxrpc installed on your dc?
and finally, have you tried to track down what is the erroring resource?
_________________________
!

download KiXnet

Top
#34838 - 2003-01-07 01:36 PM Re: Network Resource error - Abort, Retry, Fail?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
1. Have you upgraded ALL Win9x computer's networking files? (Winsock, MSNET32.DLL, more...)

2. Do any non-Win95 computer experience these errors? If not, see #1. If so, look for switch, router, server NIC issues.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#34839 - 2003-01-07 01:52 PM Re: Network Resource error - Abort, Retry, Fail?
Moffet Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 5
Thanks for responding, guys. Howard, your answers are underneath.

==============================================
Lonkero:
Never had any problems on any of the NT/2000/XP machines, but I'll bear that in mind should any problems crop up.

> what is the version of your kix-files?
KiXtart 2001 (version 4.12)

> are the dll's from the same package as the exe's?
Yes. I downloaded it about 6 weeks ago and have only ever dealt with the one package so I couldn't have any different files.

> have you kxrpc installed on your dc?
Yes. Primary AND backup.

> and finally, have you tried to track down what is the erroring resource?
It brings up the error several times during the following code (I found the IsRas function on one of the kix websites and other people who used it haven't mentioned problems with it):

$AVGROUP = "AVUpdate"
if not IsRas()
if ingroup("$AVGROUP")
shell "\\Elara\netlogon\MEtoEPO.bat"
endif
run "\\ganymede\monthlyaudit\auditp\vsawin.exe +silent"
endif

exit

;SUB FUNCTIONS
function IsRas()
dim $NtProdType
$IsRas=0 ; default to false
if @INWIN=1 ; NT
$NtProdType=readvalue('HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions','ProductType')
if $NtProdType<>'LanManNT' and $NtProdType<>'ServerNT' ; not DC nor Server
if exist(@LanRoot+'\RASDIAL.EXE')
if @RAS
$IsRas=1
endif
endif
endif
else ; 9X
if ''+readvalue('HKLM\System\CurrentControlSet\Services\RemoteAccess','Remote Connection')='01000000'
$IsRas=1
endif
endif
endfunction

=============================================
Howard:
> 1. Have you upgraded ALL Win9x computer's networking files? (Winsock, MSNET32.DLL, more...)
No, I didn't realise I had to. How do I know which ones to update and how would I go about that? I know some of the machines in question have had IE6 installed which I know updates some components, but they still get the errors now and again too.

> 2. Do any non-Win95 computer experience these errors? If not, see #1. If so, look for switch, router, server NIC issues.
No, no problems what-so-ever on the NT/2000/XP machines.

Top
#34840 - 2003-01-07 01:57 PM Re: Network Resource error - Abort, Retry, Fail?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
a short quickie.
if you have win98 machines do they get this error?
_________________________
!

download KiXnet

Top
#34841 - 2003-01-07 03:22 PM Re: Network Resource error - Abort, Retry, Fail?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The UNC names in your program calls might be the problem. I don't deal much with Windows 9x anymore either. However, my login scripts create dirve shares before calling network programs under Windows 9x. ISTR that I had problems with calling them directly via UNC during login.
_________________________
There are two types of vessels, submarines and targets.

Top
#34842 - 2003-01-07 04:24 PM Re: Network Resource error - Abort, Retry, Fail?
Moffet Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 5
Firstly, it seems it is only the Win98 machines having this error (we only have one or two 95/ME machines and the people who use them haven't reported problems - but that might just be they haven't reported it or even had it yet, because the Win98 machines don't get it every time).

I have changed the login.bat to:
net use p: \\Elara\netlogon /yes
start /w %windir%\SYSTEM\KIX32.exe "P:\Login.kix"
net use p: /delete /yes

in order to remove the UNC paths, and changed them within the kix script too. The UNC paths worked fine when just using the login.bat, I just left them like that when I decided to use kix to avoid remote users running a program and also to only run a batch file if in a specific group.

I will have to wait until everybody tries logging in tomorrow morning now to see if it has made a difference.

Top
#34843 - 2003-01-07 04:28 PM Re: Network Resource error - Abort, Retry, Fail?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
One other thing - on Windows 9x Kixtart writes out a log file to C:\WINDOWS\TEMP ( i think) called Kixtart.log - might want to browse that on one of your offending machines to see is any relevant error messages.
Top
#34844 - 2003-01-07 04:42 PM Re: Network Resource error - Abort, Retry, Fail?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What you're doing is not necessary. Windows 9x automaticaly maps the Z: drive to %LOGONSERVER%\NETLOGON during login.
_________________________
There are two types of vessels, submarines and targets.

Top
#34845 - 2003-01-07 04:48 PM Re: Network Resource error - Abort, Retry, Fail?
Moffet Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 5
Aha! I wasn't aware of the log being there. The following errors occur every time someone runs the script:

2003/01/07 08:44:25 - Failed to load KX95.DLL Error : One of the library files needed to run this application cannot be found. (0x485/1157)
2003/01/07 08:44:25 - Failed to locate/connect to a KXRPC server Error : The network path was not found. (0x35/53)

I previously wasn't copying over that file to the correct location and only changed it to do so this morning when I started looking into the problem (which is why it says in my previous post it copies over kix95.dll - it didn't have it in the right place when the errors were occuring).

I was aware Windows 98 maps the Z: to netlogon but NT-based OSs don't - if I didn't map it to another drive and run it from there the script wouldn't work on the NT-based machines.

I'll let you guys know tomorrow after users login in the morning...

Top
#34846 - 2003-01-07 04:51 PM Re: Network Resource error - Abort, Retry, Fail?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You can differentiate inside KiXtart whether you use Win9x or NT. Do this once inthe beginning of the script and subsequently reuse the $src variable.
code:
; example
if @INWIN=1
$src=@LSERVER+'\NETLOGON'
else
$src='Z:'
endif
copy $src+'\file.txt' c:\temp

_________________________
There are two types of vessels, submarines and targets.

Top
#34847 - 2003-01-08 11:35 AM Re: Network Resource error - Abort, Retry, Fail?
Moffet Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 5
Success! Not a single person had a problem this morning (no-one reported one anyway) so looks like it's sorted. Seems it was the kx95.dll used to access the KXRPC server that was the problem. Copied it over to the correct place and works now.

[Big Grin] Thanks for all your help, guys - this will be the first place I come if I have any more probs!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 568 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.127 seconds in which 0.08 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org