473,795 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 COMsupportedIns tance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterf aces(typeof(Idi alerEvents))]
public class COMsupportedIns tance:Idialer
{
myCTapi oTAPI;
public int hLine;

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

public COMsupportedIns tance()
{
oTAPI = new myCTapi();

oTAPI.CallConne cted+=new
my_TAPI_Lib_v1. myCTapi.OnCallC onnect(oTAPI_Ca llConnected);
oTAPI.CallDisco nnected+=new
my_TAPI_Lib_v1. myCTapi.OnCallD isconnect(oTAPI _CallDisconnect ed);
oTAPI.CallIncom ing+=new
my_TAPI_Lib_v1. myCTapi.OnCallI ncoming(oTAPI_C allIncoming);
oTAPI.CallRingi ng+=new
my_TAPI_Lib_v1. myCTapi.OnCallR inging(oTAPI_Ca llRinging);

hLine = oTAPI.startMode m(0);
}

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

public int startModem(stri ng lineIndex)
{
int result = oTAPI.startMode m(Convert.ToInt 32(lineIndex));
return result;//.ToString();
}

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

private void oTAPI_CallConne cted(int callHandle)
{
CallConnected(c allHandle);
}

private void oTAPI_CallDisco nnected(int callHandle)
{
CallDisconnecte d(callHandle);
}

}

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

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(C omInterfaceType .InterfaceIsIDi spatch)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected() ;

[DispId(2)]
void CallDisconnecte d();

}
}
Mar 26 '06 #1
2 4800
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*******@yaho o.com> wrote in message
news:OG******** *****@TK2MSFTNG P09.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 COMsupportedIns tance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterf aces(typeof(Idi alerEvents))]
public class COMsupportedIns tance:Idialer
{
myCTapi oTAPI;
public int hLine;

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

public COMsupportedIns tance()
{
oTAPI = new myCTapi();

oTAPI.CallConne cted+=new
my_TAPI_Lib_v1. myCTapi.OnCallC onnect(oTAPI_Ca llConnected);
oTAPI.CallDisco nnected+=new
my_TAPI_Lib_v1. myCTapi.OnCallD isconnect(oTAPI _CallDisconnect ed);
oTAPI.CallIncom ing+=new
my_TAPI_Lib_v1. myCTapi.OnCallI ncoming(oTAPI_C allIncoming);
oTAPI.CallRingi ng+=new
my_TAPI_Lib_v1. myCTapi.OnCallR inging(oTAPI_Ca llRinging);

hLine = oTAPI.startMode m(0);
}

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

public int startModem(stri ng lineIndex)
{
int result = oTAPI.startMode m(Convert.ToInt 32(lineIndex));
return result;//.ToString();
}

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

private void oTAPI_CallConne cted(int callHandle)
{
CallConnected(c allHandle);
}

private void oTAPI_CallDisco nnected(int callHandle)
{
CallDisconnecte d(callHandle);
}

}

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

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(C omInterfaceType .InterfaceIsIDi spatch)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected() ;

[DispId(2)]
void CallDisconnecte d();

}
}

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*******@yaho o.com> wrote in message
news:OG******** *****@TK2MSFTNG P09.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 COMsupportedIns tance.
/// </summary>
[Guid("C50748B2-9E63-4e8f-B433-44BB55D20293")]
[ComSourceInterf aces(typeof(Idi alerEvents))]
public class COMsupportedIns tance:Idialer
{
myCTapi oTAPI;
public int hLine;

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

public COMsupportedIns tance()
{
oTAPI = new myCTapi();

oTAPI.CallConne cted+=new
my_TAPI_Lib_v1. myCTapi.OnCallC onnect(oTAPI_Ca llConnected);
oTAPI.CallDisco nnected+=new
my_TAPI_Lib_v1. myCTapi.OnCallD isconnect(oTAPI _CallDisconnect ed);
oTAPI.CallIncom ing+=new
my_TAPI_Lib_v1. myCTapi.OnCallI ncoming(oTAPI_C allIncoming);
oTAPI.CallRingi ng+=new
my_TAPI_Lib_v1. myCTapi.OnCallR inging(oTAPI_Ca llRinging);

hLine = oTAPI.startMode m(0);
}

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

public int startModem(stri ng lineIndex)
{
int result = oTAPI.startMode m(Convert.ToInt 32(lineIndex));
return result;//.ToString();
}

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

private void oTAPI_CallConne cted(int callHandle)
{
CallConnected(c allHandle);
}

private void oTAPI_CallDisco nnected(int callHandle)
{
CallDisconnecte d(callHandle);
}

}

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

[Guid("D4B1872F-A167-4013-BA59-0B31AA388E10")]
[InterfaceType(C omInterfaceType .InterfaceIsIDi spatch)]
public interface IdialerEvents
{
[DispId(1)]
void CallConnected() ;

[DispId(2)]
void CallDisconnecte d();

}
}

Mar 27 '06 #3

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

Similar topics

3
5531
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; Auto-attach to process ' w3wp.exe' on machine 'CSS5' failed. Error code 0x80070005 (Access is denied. ). I have found a number of articles and it would appear that the problem
10
8718
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 asp.net page. If I press OK then I get a page with this message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser...
14
8681
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 are an administrator or member of the Debugger Users". I have followed (ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vsdebug/html/vxtbsHTTPServer Errors.htm). I have seen...
0
3205
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 the same error all the time even with this. I haven't changed my project settings. Can anyone tell me what to try next?
0
863
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 project: Unable to start debugging on the web server. You do not have privileges to debug the web server process. The IDE returns the following output:
1
1386
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 another problem and would like some advice... I created a sample console app to out put data and used the web app to run it......., runs perfectly. I created another console app that reads a file, parses it and writes a new file........., and this app...
5
3648
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 New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
1
913
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 directory. I copied the project into the root directory and went to debug the default page however the following error has popped up; "unable to start debugging on the web server. the server does not
0
5764
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 error occurred with only v1.1 installed. I also got the same error when trying to install an old ACAD 2005 version (as a check). I have successfully installed this version a couple of years ago.
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.