473,498 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# COM VB6 interop reflection

2 New Member
Hello!

Does any can explain me why the following exception means?


Expand|Select|Wrap|Line Numbers
  1. '((System.Type)(((System.Reflection.MemberInfo)(((System.Exception)($exception)).TargetSite)).DeclaringType)).DeclaringMethod' threw an exception of type 'System.InvalidOperationException'
  2.  
  3. {"Method may only be called on a Type for which Type.IsGenericParameter is true."}
  4.  
  5. at System.RuntimeType.get_DeclaringMethod()"

This is part of the stack trace I have on AccessViolation Exception.
This happens sometimes only when I call a method of a COM object.

Any idea?

Thanks for some help.
Oct 30 '08 #1
0 976

Sign in to post your reply or Sign up for a free account.

Similar topics

0
328
by: Nathan Baulch | last post by:
I have a windows app that has a few Interop assemblies. If I run it on a machine that doesn't have the required COM libraries, I get nasty COMExceptions. What I would like to do is check to see...
0
1069
by: ViperDK \(Daniel K.\) | last post by:
how can i use interop with word so i can run all word versions from 2000 *and* use the features of 2003. it seems not to work to add a reference to word2000 & 2003 at a time in a project. would i...
0
1040
by: Maxim Kazitov | last post by:
Hi, I try to create ObjectBrowser for some COM objects (C# project, I use Interop Assembly for COM). But if following code : Type oType = m_Object.GetType(); always return __ComObject...
22
4812
by: glenn | last post by:
I have a COM Server that I've written based on information from the book ..NET and COM / the complete Interop Guide. I have gotten the project to compile and I've located the regasm.exe program...
1
1556
by: Francesco Mancini | last post by:
Hi all I'm working with c# and I need to load (runtime) a COM ActiveX (written in VB6, I think...); and this is not a problem (with Reflection class)... the problem is that this ocx has a menu,...
1
2158
by: Dan Weatherman | last post by:
Hi all, Using WMI I am attempting to catch and exception when doing a managementscope.connect operation. From the looks of things, this method starts a new worker thread through Interop that then...
2
1655
by: Philip Daniels | last post by:
I am doing some work with a client API via COM interop. I have reached the situation where after this call to their API: object someObj = con.Peek(1); "someObj" contains some type of COM...
0
1458
by: Morgan Cheng | last post by:
I have one webservice written in MC++, which uses another native DLL deployed in %webservice_install_dir%\bin folder. The API invocation between MC++ and native C++ looks seamless. The compilation...
0
1302
by: Michel Walsh | last post by:
I got the following error: ============= Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) ============= when using Interop.Excel.Run. The relevant code is from...
2
5690
by: sanjay1983 | last post by:
Hi Everyone, I am stuck to access file properties using 'Interop.dsofile.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time...
0
7125
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,...
0
7205
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...
1
6887
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...
1
4910
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
4590
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...
0
3093
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
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...

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.