Hi, I have a strange problem going on due to which my service is unable to create object of MS WinSock DLL. I even reinstalled the Windows without any luck to fix this issue.
I'm using Windows 2003 Server Standard Edition (also tried with Web and Enterprise editions).
The problem is, if I run my application in debug mode in VB6, everything just works fine, but the problem comes when this application runs as a service. I'm using FileMon and RegMon utilities by
http://www.sysinternals.com to monitor activity of this application. It gets path for mswsock.dll from registry and receives "%systemroot%\system32\mswsock.dll" in return, which is exactly what is stored in registry.
But, my application appends this path into its own and with windows directory which makes it looks like
C:\monitor\mservice.exe\%systemroot%\system32\msws ock.dll
and
C:\WINDOWS\system32\%systemroot%\system32\mswsock. dll
instead of just using the returned path to create object for MS Winsock which should be
%systemroot%\system32\mswsock.dll
or
C:\WINDOWS\system32\mswsock.dll
* this problem only occures on Windows 2003 platforms and not on Windows 2000.
Another note is that my application does not create object for Winsock, but it uses CDOSYS.dll to send an email. cdosys.dll version is 6.5.6747.0
I also tried changing owner of the service from Local System to Administrator, but that did not made any difference.
Any help in this regard would be highly appreciated.
Thanks in advance.