Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / August 2004

Tip: Looking for answers? Try searching our database.

Error when using EIF in COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
microsoft news - 13 Aug 2004 12:25 GMT
Hello All,
i am getting the following error when i use the EIF DLL (by creating the TLB
file and all the necessary steps needed) in a VB6.0 application
This is a sample testing that i am doing as my main task is to implement the
EIF in a COM+ application
Someone PLEASE HELP ME

The error message is pasted below

System.InvalidOperationException: Cannot raise events that contain field
types which do not have the 'InstrumentationType' attribute. Ensure that
System.String or one of its base classes has the InstrumentationType
attribute.
at Microsoft.EnterpriseInstrumentation.EventSource.RaiseEvent(Object
eventToRaise, RequestContext requestContext)

Pooja Renukdas
Deloitte Consulting
Mike Hayton [MS] - 19 Aug 2004 19:06 GMT
How are you creating the TLB file?
EIF is not directly callable from COM (except the
Microsoft.EI.Configuration.dll which is Com callable).
The M.EI.dll has a [ComVisible(false)] attribute to prevent regasm from
seeing it.

Now you could provide some sort of COM callable wrapper - so it thunks from
COM into your .NET wrapper and this calls into EIF.

The error below is indicating that the object you passed to
EventSource.Raise(<thisObject>) does not have the [InstrumentationType]
attribute on it (or one of its base classes). Event objects (see the schema
sample code and the other samples) are passed to the Raise() method.

Hope this helps.

Mike

--------------------
| Hello All,
| i am getting the following error when i use the EIF DLL (by creating the TLB
[quoted text clipped - 14 lines]
| Pooja Renukdas
| Deloitte Consulting

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.