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 / June 2004

Tip: Looking for answers? Try searching our database.

ErrorMessageEvent returns exception in EIF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neeraja - 10 Jun 2004 17:15 GMT
Hi,

I have integrated my ASP.NET web application with EIF.

The events AdminMessageEvent, TraceMessageEvent are working fine for me.
I am getting exception in ErrorMessageEvent in EventViewer.

EventViewer returns the following exception

Event Type:    Error
Event Source:    Enterprise Instrumentation
Event Category:    None
Event ID:    0
Date:        06/10/2004
Time:        11:40:54 AM
User:        N/A
Computer:    NJASTYSRVR2003
Description:
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
  at Microsoft.EnterpriseInstrumentation.Schema.Helpers.IObjectContextInfo2.GetApplicationId()
  at Microsoft.EnterpriseInstrumentation.Schema.Helpers.ComPlus.get_ApplicationID()
  at Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo..ctor()
  at Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent.PrepareForSerialization(EventSource eventSource, RequestContext requestContext)
  at Microsoft.EnterpriseInstrumentation.EventSource.RaiseEvent(Object eventToRaise, RequestContext requestContext)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

I am really waiting for an answer to this.
Thanks
Neeraja
Mike Hayton [MS] - 22 Jun 2004 20:50 GMT
Hi there,

My initial guess is that the ASPNET user doesnt have sufficient permissions
to make the COM call (to obtain the Application ID)

If you remove the "PopulateComPlusInfo" parameter from the <eventSource> in
the EI.config file - it should not try and obtain this value and should
work for you.

Hope this helps

Mike

--------------------

| Hi,
|
[quoted text clipped - 16 lines]
| System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
|    at Microsoft.EnterpriseInstrumentation.Schema.Helpers.IObjectContextInfo2.GetAp
plicationId()
|    at
Microsoft.EnterpriseInstrumentation.Schema.Helpers.ComPlus.get_ApplicationID
()
|    at Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo..ctor()
|    at
Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent.PrepareForSeriali
zation(EventSource eventSource, RequestContext requestContext)
|    at Microsoft.EnterpriseInstrumentation.EventSource.RaiseEvent(Object eventToRaise, RequestContext requestContext)
|
[quoted text clipped - 3 lines]
| Thanks
| Neeraja

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

Neeraja - 22 Jun 2004 21:27 GMT
EI.config doesn't contain PopulateComplusInfo parameter.

I have copied my EI.config file here.
Please have a look into this and let me know the answer as quickly as possible

Thanks
Neeraja
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://www.microsoft.com/schema/EnterpriseInstrumentation/v1/EnterpriseInstrumen
tation.xsd
">

    <instrumentedApp name="CGIPortal" mode="released" />

 <eventSources>
   <eventSource name="Application" type="softwareElement" internalExceptionHandler="report" description="Application level event source." />
 </eventSources>

 <filterBindings>
   <eventSourceRef name="Application">
     <filterRef name="defaultSoftwareElementFilter" />
   </eventSourceRef>
 </filterBindings>

 <filters>
   <filter name="defaultSoftwareElementFilter" description="A default filter for the Software Element event sources.">
            <eventCategoryRef name="Standard Events">
                <eventSinkRef name="logSink"/>
            </eventCategoryRef>
        </filter>
 </filters>

 <eventSinks>
   <eventSink name="logSink" description="Outputs events to the Windows Event Log." type="Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85">
     <parameter name="entryTypeFieldName" value="EventLogEntryTypeID" />
     <parameter name="defaultEntryType" value="Information" />
     <parameter name="enableFormatting" value="false" />
     <parameter name="machineName" value="." />
     <parameter name="formatterName" value="logSinkXslt" />
   </eventSink>
   <eventSink name="basicLogSink" description="Outputs events to the Sql Server Basic Log." type="Microsoft.ApplicationBlocks.Logging.EventSinks.BasicLogEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85">
     <parameter name="enableFormatting" value="false" />
     <parameter name="formatterName" value="basicLogSinkXslt" />
     <parameter name="basicLog" value="Server=(local);Database=BasicLog;Integrated Security=True" />
   </eventSink>
   <eventSink name="sqlSink" description="Outputs events to the Sql Server flexible log." type="Microsoft.ApplicationBlocks.Logging.EventSinks.SqlServerEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85">
     <parameter name="formatterName" value="sqlSinkXslt" />
       <parameter name="numberOfRetries" value="0" />
            <parameter name="connectionString" value="Server=(local);Database=AppLog;Integrated Security=True" />
   </eventSink>
 </eventSinks>

 <eventCategories>
   <eventCategory name="Standard Events" description="A category containing all sample schema events.">
     <event type="Microsoft.ApplicationBlocks.Logging.Schema.AdminMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85" />
     <event type="Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85" />
     <event type="Microsoft.ApplicationBlocks.Logging.Schema.AuditOperationEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85" />
     <event type="Microsoft.ApplicationBlocks.Logging.Schema.ErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85" />
     <event type="Microsoft.ApplicationBlocks.Logging.Schema.TraceMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=69c06fe6e86c8d85" />
   </eventCategory>
 </eventCategories>
 
</configuration>

> Hi there,
>
[quoted text clipped - 50 lines]
> | Thanks
> | Neeraja
Neeraja - 23 Jun 2004 21:20 GMT
This solved my problem. But, I want to find the root cause.
What permissions do i need to set for asp.net user account.

> EI.config doesn't contain PopulateComplusInfo parameter.
>
[quoted text clipped - 112 lines]
> > | Thanks
> > | Neeraja

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.