473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

JIT Debugging failed with the following error: 0x800405a6

Hello all,

I am trying to use C# assembly /dll (which has public methods and events),
... trying to use it through a VB6 client..

I get the error,
JIT Debugging failed with the following error: 0x800405a6
what seems to me is like the error occurs when an event is fired from .net
code... since i observe the error only when its possible for an event to
occur.

When I test the c# assembly with a .net client the error doesn't occur.. i
believe its because of the com interop related code. Below is my code..

Thanks for your time and help
'Harish
----
using System;
using System.Runtime.InteropServices;
using my_TAPI_Lib_v1;

namespace dialer_TAPI
{
/// <summary>
/// Summary description for COMsupportedInstance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterfaces(typeof(IdialerEvents))]
public class COMsupportedInstance:Idialer
{
myCTapi oTAPI;
public int hLine;

//event & delegate declarations
//for client application
//
//disconnected
public delegate void OnDisconnect(int callHandle);
public event OnDisconnect CallDisconnected;
//connected
public delegate void OnConnect(int callHandle);
public event OnConnect CallConnected;
//
//

public COMsupportedInstance()
{
oTAPI = new myCTapi();

oTAPI.CallConnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallConnect(oTAPI_CallCon nected);
oTAPI.CallDisconnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallDisconnect(oTAPI_Call Disconnected);
oTAPI.CallIncoming+=new
my_TAPI_Lib_v1.myCTapi.OnCallIncoming(oTAPI_CallIn coming);
oTAPI.CallRinging+=new
my_TAPI_Lib_v1.myCTapi.OnCallRinging(oTAPI_CallRin ging);

hLine = oTAPI.startModem(0);
}

public int getNumLines()
{
return oTAPI.lNumLines;
}

public int startModem(string lineIndex)
{
int result = oTAPI.startModem(Convert.ToInt32(lineIndex));
return result;//.ToString();
}

public int MakeCall(string phNumberString)
{
int result = oTAPI.MakeCall(phNumberString,0);
return result;//.ToString();
}

private void oTAPI_CallConnected(int callHandle)
{
CallConnected(callHandle);
}

private void oTAPI_CallDisconnected(int callHandle)
{
CallDisconnected(callHandle);
}

}

[Guid("0E688936-A6FB-490e-A0F0-354362E54789")]
public interface Idialer
{
myCLine getLine(int lineID);
int startModem(string lineIndex);
int MakeCall(string phNumberString);
}

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected();

[DispId(2)]
void CallDisconnected();

}
}
Mar 26 '06 #1
2 4786
I solved this..

There was no problem with the .net code below..
I had used different objects or actually different interface entry points
for accessing the methods of the object and the events, through a vb
client.. this i did to allow intellisense when coding through vb (or to use
early binding through vb).

Now in my client code i use the object's instance for accessing both the
methods and events rather than any interfaces i made available through code
below.

This solved the problem.
In effect i lose early binding and intellisense in the vb client.. but code
works great.

Thanks,
'Harish

"harish" <ha*******@yahoo.com> wrote in message
news:OG*************@TK2MSFTNGP09.phx.gbl...
Hello all,

I am trying to use C# assembly /dll (which has public methods and events),
.. trying to use it through a VB6 client..

I get the error,
JIT Debugging failed with the following error: 0x800405a6
what seems to me is like the error occurs when an event is fired from .net
code... since i observe the error only when its possible for an event to
occur.

When I test the c# assembly with a .net client the error doesn't occur.. i
believe its because of the com interop related code. Below is my code..

Thanks for your time and help
'Harish
----
using System;
using System.Runtime.InteropServices;
using my_TAPI_Lib_v1;

namespace dialer_TAPI
{
/// <summary>
/// Summary description for COMsupportedInstance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterfaces(typeof(IdialerEvents))]
public class COMsupportedInstance:Idialer
{
myCTapi oTAPI;
public int hLine;

//event & delegate declarations
//for client application
//
//disconnected
public delegate void OnDisconnect(int callHandle);
public event OnDisconnect CallDisconnected;
//connected
public delegate void OnConnect(int callHandle);
public event OnConnect CallConnected;
//
//

public COMsupportedInstance()
{
oTAPI = new myCTapi();

oTAPI.CallConnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallConnect(oTAPI_CallCon nected);
oTAPI.CallDisconnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallDisconnect(oTAPI_Call Disconnected);
oTAPI.CallIncoming+=new
my_TAPI_Lib_v1.myCTapi.OnCallIncoming(oTAPI_CallIn coming);
oTAPI.CallRinging+=new
my_TAPI_Lib_v1.myCTapi.OnCallRinging(oTAPI_CallRin ging);

hLine = oTAPI.startModem(0);
}

public int getNumLines()
{
return oTAPI.lNumLines;
}

public int startModem(string lineIndex)
{
int result = oTAPI.startModem(Convert.ToInt32(lineIndex));
return result;//.ToString();
}

public int MakeCall(string phNumberString)
{
int result = oTAPI.MakeCall(phNumberString,0);
return result;//.ToString();
}

private void oTAPI_CallConnected(int callHandle)
{
CallConnected(callHandle);
}

private void oTAPI_CallDisconnected(int callHandle)
{
CallDisconnected(callHandle);
}

}

[Guid("0E688936-A6FB-490e-A0F0-354362E54789")]
public interface Idialer
{
myCLine getLine(int lineID);
int startModem(string lineIndex);
int MakeCall(string phNumberString);
}

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected();

[DispId(2)]
void CallDisconnected();

}
}

Mar 27 '06 #2
I solved this..

There was no problem with the .net code below..
I had used different objects or actually different interface entry points
for accessing the methods of the object and the events, through a vb
client.. this i did to allow intellisense when coding through vb (or to use
early binding through vb).

Now in my client code i use the object's instance for accessing both the
methods and events rather than any interfaces i made available through code
below.

This solved the problem.
In effect i lose early binding and intellisense in the vb client.. but code
works great.

Thanks,
'Harish

"harish" <ha*******@yahoo.com> wrote in message
news:OG*************@TK2MSFTNGP09.phx.gbl...
Hello all,

I am trying to use C# assembly /dll (which has public methods and events),
.. trying to use it through a VB6 client..

I get the error,
JIT Debugging failed with the following error: 0x800405a6
what seems to me is like the error occurs when an event is fired from .net
code... since i observe the error only when its possible for an event to
occur.

When I test the c# assembly with a .net client the error doesn't occur.. i
believe its because of the com interop related code. Below is my code..

Thanks for your time and help
'Harish
----
using System;
using System.Runtime.InteropServices;
using my_TAPI_Lib_v1;

namespace dialer_TAPI
{
/// <summary>
/// Summary description for COMsupportedInstance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterfaces(typeof(IdialerEvents))]
public class COMsupportedInstance:Idialer
{
myCTapi oTAPI;
public int hLine;

//event & delegate declarations
//for client application
//
//disconnected
public delegate void OnDisconnect(int callHandle);
public event OnDisconnect CallDisconnected;
//connected
public delegate void OnConnect(int callHandle);
public event OnConnect CallConnected;
//
//

public COMsupportedInstance()
{
oTAPI = new myCTapi();

oTAPI.CallConnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallConnect(oTAPI_CallCon nected);
oTAPI.CallDisconnected+=new
my_TAPI_Lib_v1.myCTapi.OnCallDisconnect(oTAPI_Call Disconnected);
oTAPI.CallIncoming+=new
my_TAPI_Lib_v1.myCTapi.OnCallIncoming(oTAPI_CallIn coming);
oTAPI.CallRinging+=new
my_TAPI_Lib_v1.myCTapi.OnCallRinging(oTAPI_CallRin ging);

hLine = oTAPI.startModem(0);
}

public int getNumLines()
{
return oTAPI.lNumLines;
}

public int startModem(string lineIndex)
{
int result = oTAPI.startModem(Convert.ToInt32(lineIndex));
return result;//.ToString();
}

public int MakeCall(string phNumberString)
{
int result = oTAPI.MakeCall(phNumberString,0);
return result;//.ToString();
}

private void oTAPI_CallConnected(int callHandle)
{
CallConnected(callHandle);
}

private void oTAPI_CallDisconnected(int callHandle)
{
CallDisconnected(callHandle);
}

}

[Guid("0E688936-A6FB-490e-A0F0-354362E54789")]
public interface Idialer
{
myCLine getLine(int lineID);
int startModem(string lineIndex);
int MakeCall(string phNumberString);
}

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected();

[DispId(2)]
void CallDisconnected();

}
}

Mar 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Wark | last post by:
I have a Windows 2003 Web server on which I was debugging remotely with no problems. I then moved this server to a different domain and now remote debugging will not work, the error is; ...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
14
by: | last post by:
I cannot for the life of me get remove debugging to work. I continue to receive "Error while trying to run project: Unable to start debugging on the web server. Access is denied. Verify that you...
0
by: Costi Stan | last post by:
Hello, I get all the time JIT Debugging failed with the following error: Access is denied. message when trying to my a webservice. MSDN say to add DOMAIN/ASPNET user to Debugging Users. I get...
0
by: jcomber | last post by:
Hi All, I'd be grateful for some help with debugging a Web application on a Windows 2003 server. When I run the project from the IDE I get the following error: Error while trying to run the...
1
by: Stephen | last post by:
Hi, I found code snippet for running an app (.exe, .bat) from a web app(using Process class). its pretty interesting but along with the other posts (that i cant run a windows app) i found...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
1
by: si_owen | last post by:
Hi folks, I started a project, web app, last week in visual studio 2005, and restored my computer on the weekend. I have re-installed visual studio and have set up IIS again to create my root...
0
by: Benny | last post by:
I have been trying to instal AutoCAD 2008 on a single PC and get the following Microsoft .NET Framework security error. I have updated to the latest .NET Framework 2.0 software, however, this...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.