Problem with the Registry tab of the ESB Portal

I got hit by a problem when trying to browse to the Registry tab of the ESB Portal. The event log gave me one of those pretty generic unhandled ASP.NET exceptions with event ID 1309, and told me that something was wrong when hitting the http://localhost/ESB.Portal/uddi/uddi.aspx

See the full event-id at the bottom of this post.

I also set the <customErrors mode="Off" in the web.config for the portal, and it told med that the culprit was this line 555, in the serviceproxy.cs file:

string strCategoryKey = tModelCategory.tModelKey;    Basically it is calling a method on the the UDDI service, so something was propably not quite right there.

The reference to the UDDI service looked like this:

Check out the Web reference URL.  From my previous post I stumbled upon another reference to the UDDI service that wasn’t correct either.

I corrected it to http://localhost/ESB.UDDI.Service/UDDIservice.asmx, and rebuild the portal.

BUT that didn’t really solve anything. But it might have been just one problem in a longer sequence of problems.

I eventually solved it by running this command:

C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit 2.0\Bin\Microsoft.Practices.ESB.UDDIPublisher.exe

I chose to just run with windows authentication – just hit the ole’ Enter button  :D 

And after I did that, it just worked.  I have absolutely NO clue as to why. I’m going to find out, because if I don’t I just know that something will come back and bite me at one point … It’s a tool that deploys endpoint definitions to the UDDI Service – I could read that much from the web and from the ESB documentation. It even states in the “msdn Prerequisites for the Development Activities” in the documentation, in step no. 2,  that the tool should be run. But not why it should be run. What is it that this tool is doing when run without parameters???

And why did I run that command in the first place?   Well … I had my girlfriend on the phone from Hawai, and just did a little clicking around … So thanks to her really … I got it working.  So if you read this honey … heres to you!  :D 

/Lars

 

Event ID 1309

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 20-09-2009 22:10:28
Event time (UTC): 20-09-2009 20:10:28
Event ID: bf8cd302d84f49a99fcfe593fdb5a7d0
Event sequence: 103
Event occurrence: 2
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/1/ROOT/ESB.Portal-3-128979504641384844
    Trust level: Full
    Application Virtual Path: /ESB.Portal
    Application Path: C:\Projects\Microsoft.Practics.ESB\Source\Samples\Management Portal\ESB.Portal\
    Machine name: LWABTS2009
Process information:
    Process ID: 3304
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
    Exception type: TargetInvocationException
    Exception message: Exception has been thrown by the target of an invocation.
Request information:
    Request URL: http://localhost/ESB.Portal/uddi/uddi.aspx
    Request path: /ESB.Portal/uddi/uddi.aspx
    User host address: 127.0.0.1
    User: LWABTS2009\Lars
    Is authenticated: True
    Authentication Type: Negotiate
    Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
    Thread ID: 4
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
   at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
   at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:

Comments are closed