Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Urgent: Appending path for DLLs instread of using the real one


Urgent: Appending path for DLLs instread of using the real one

Reply
  #1 (permalink)  
Old 10-29-05, 02:19 AM
chuck59 chuck59 is offline
Newbie Coder
 
Join Date: Oct 2005
Location: Karachi
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Urgent: Appending path for DLLs instread of using the real one

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.
__________________

Last edited by chuck59; 10-29-05 at 03:12 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:14 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.