Error on Logging tab of UNIFY Event Broker Management Studio

Matthew Woolnough 7 years ago • updated by anonymous 4 years ago 11

System.NullReferenceException: Object reference not set to an instance of an object.
at ASP._Page_Views_Error_Index_cshtml.Execute() in c:\Program Files\UNIFY Solutions\Event Broker\Web\Views\Error\Index.cshtml:line 10
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.StartPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.<>c_DisplayClass1c.<InvokeActionResultWithFilters>b_19()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

Unify.EventBroker.Web\Views\Error\Index.cshtml has been updated to not throw the NullReferenceException in this case. However, it shouldn't be going to this page without there being an error.

Can you please check the windows event log on the web server?

If there is something logged at the time, then that will give us a clue to the problem. If not, then there needs to be error handling around the attempt to write to the event log.


For our reference, this has just been updated in code so that we don't get the original error being suppressed.

Matthew, did you have any further details for this issue? Or can it be closed?


Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 8/23/2012 11:17:31 AM
Event ID: 1314
Task Category: Web Event
Level: Information
Keywords: Classic
User: N/A
Computer: IDSYS.widgetcorp.local
Event code: 4010 Event message: An unhandled security exception has occurred. Event time: 8/23/2012 11:17:31 AM Event time (UTC): 8/23/2012 1:17:31 AM Event ID: 7324fd9ea34a44eb994d1451bb22fa47 Event sequence: 42 Event occurrence: 1 Event detail code: 0 Application information: Application domain: b7cf9837-1-129901582376031265 Trust level: Full Application Virtual Path: / Application Path: C:\Program Files\UNIFY Solutions\Event Broker\Web\ Machine name: IDSYS Process information: Process ID: 1796 Process name: Unify.Service.Event.exe Account name: WIDGETCORP\svc_EventBroker Request information: Request URL: http://localhost:8080/Logging Request path: /Logging User host address: User: WIDGETCORP\svc_EventBroker Is authenticated: True Authentication Type: NTLM Thread account name: WIDGETCORP\svc_EventBroker Custom event details:

Which account is the IIS app pool configured to run under? Does it have permission to list folder contents and read from the logs directory?

Where does it create the log dir by default?

C:\Program Files\UNIFY Solutions\Event Broker\Logs\

Dir did not exist. Created dir, gave svc_EventBroker write access.

Error still present.

Sorry, wrong directory, forgot the Services part:

C:\Program Files\UNIFY Solutions\Event Broker\Services\Logs\

Directory was missing, added directory & restarted service.
Issue resolved.

Matthew Clark has added a troubleshooting article for this issue, at EB300:Issues accessing and writing to logs.

Please close this issue if satisfactory.