Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with debugging...

Status
Not open for further replies.

Hylsan

Programmer
Mar 20, 2002
43
SE
Hi
Im having trouble debugging a program.
Its a server program that talks with a exchangeserver, and it works fine in our testenviroment. But not on this server, its a sbs2003 (same as our testserver) but it has probably been upgraded from nt/2000. when trying to run the program i get this error;
Code:
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80150804): Exception from HRESULT: 0x80150804.
   at ADODB.RecordClass.Open(Object Source, Object ActiveConnection, ConnectModeEnum Mode, RecordCreateOptionsEnum CreateOptions, RecordOpenOptionsEnum Options, String UserName, String Password)
   at swserver.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/winsbs/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
swserver
    Assembly Version: 1.0.1546.24537
    Win32 Version: 1.0.1546.24537
    CodeBase: file:///C:/Program%20Files/Exchange/swserver.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/winsbs/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/winsbs/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.3052.4
    CodeBase: file:///c:/winsbs/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
Interop.ActiveDs
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Exchange/Interop.ActiveDs.DLL
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/winsbs/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
AxInterop.SocketWrenchCtl
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Exchange/AxInterop.SocketWrenchCtl.DLL
----------------------------------------
Interop.SocketWrenchCtl
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Exchange/Interop.SocketWrenchCtl.DLL
----------------------------------------
Interop.ADODB
    Assembly Version: 2.7.0.0
    Win32 Version: 2.7.0.0
    CodeBase: file:///C:/Program%20Files/Exchange/Interop.ADODB.DLL
----------------------------------------

I know this might not be much for you guys to work on, but i figured i might be a common misstake(...ah, you forgot to load xxxx.dll...").

Thanks in advance
/Hylsan
 
It looks like you're using ADODB via COM Interop. I would make sure your new server has the latest MDAC loaded on it.

Or change your code to use ADO.NET -- it'll be faster and you won't need the MDAC, but obviously it will be a large development effort (there's tradeoffs in everything!).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 

Or change your code to use ADO.NET -- it'll be faster and you won't need the MDAC, but obviously it will be a large development effort (there's tradeoffs in everything!).


Chip,
Has something changed? I could have sworn with the .Net Framework 1.1 you still need to install MDAC for ADO.Net
 
Thanks for your reply, ill check that out today.
I am gonna convert it to .NET but currently i dont have the time.

/Hylsan
 
Sadly the new mdac didnt help, same message.
I reinstalled the app aswell.

Will it help installing vb.net on the machine?
Its not a good way, but if nothing else work we have to do it until ive made the .NET version.

/Hylsan
 
Has something changed? I could have sworn with the .Net Framework 1.1 you still need to install MDAC for ADO.Net

When you install the runtime framework, you get the correct MDAC with it (I think it's v2.8??)

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top