ESB Toolkit 2.0 - Configuring Exception Management Portal

Posted at: 6/10/2009 at 3:22 PM by saravana

There is enough buzz in the BizTalk community about the announcement of the newly renamed ESB Guidance Toolkit 2.0 which sits on top of BizTalk Server 2009. You can download it from here.

The documentation that comes out of the package is really good, but since its a first release of the tool kit there is obviously some gaps. In this post I'll explain the issues I came across while configuring the Exception management portal on Windows 2008 machine with IIS 7.0 and how I overcame them to have a working portal. The issues are mainly surrounding the supporting technologies like power shell and Windows communication foundation.

Step 1: Install the BizTalk ESB ToolKit Core.msi

This MSI file is a typical BizTalk Application MSI file so follow the procedures you'll follow to install a BizTalk Application MSI. Open the BizTalk administration console and import the MSI, later in the wizard select the "Run the MSI" option to install it.

Step 2: Run the Management_Install.cmd powershell command:

You need to unzip the ESBSource.zip file which contains the set of sample applications. Exception management portal is provided more like a sample web site, which you can enhance it according to your needs. Before running this command, you need to make sure

1. You generated the key file under C:\Program Files\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Keys\Microsoft.Practices.ESB.snk

2. Fix the Windows PowerShell execution policy restriction as described below.

Navigate to \Samples\Management Portal\Install\Scripts, and then run ManagementInstall.cmd. At this stage you'll receive an error message as "ManagementInstall.ps1 cannot be loaded because the execution of scripts is disabled on this system.. Please see "get-help about_signing" for more details"

The problem is mainly because Windows PowerShell restricts the execution of saved scripts by default. To see your current settings, open power shell command window and type "get-executionpolicy", the output will be "Restricted", which is default. Change it to unrestricted by issuing the command "set-executionpolicy Unrestricted". This changes the policy until you change it again (For obvious reasons you'll need to change the execution policy to restricted after finishing your task).

Now, you'll be able to run the ManagementInstall.cmd, which should complete without giving any errors.

Now, If you navigate to the url http://localhost/ESB.Portal/Default.aspx, you will be redirected to an error page asking you to check your event log. The event log will have an entry saying 404 not found.

Step 3: Follow the instructions in the documentation under "Configuring Services and Components".

The Exception management portal internally relies on set of web services (operations, ExceptionService etc) to function correctly. So, if these services  are not installed an exception will be raised. Follow all the steps under "Configuring Services and Components" to install the supporting services.

Step 4: Update IIS script maps to register .svc extension

Exception management portal relies on a WCF service called http://localhost/ESB.Exceptions.Service/ExceptionService.svc for its internal operations. By default there is no script map for .svc file with default IIS 7.0 installation, so register the script map using the following command

C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg.exe -r -y

Step 5: Make sure the users are in right NT roles

Exception management portal relies on BizTalk NT groups for authentication and authorization. So make sure you are in the correct group "BizTalk application users" for normal users and "BizTalk Administrators group" for admin users.

If you still face issues, there is a trouble shooting section in the documentation, which will give you more help.

Nandri!

Saravana 

Tags:  Categories: BizTalk 2009
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(3) | Comments RSS

Comments

Sunday, July 05, 2009 2:41 PM
Naushad India
Naushad
Hi ..
Getting following error ,
Event Type:  Warning
Event Source:  ASP.NET 2.0.50727.0
Event Category:  Web Event
Event ID:  1309
Date:    7/5/2009
Time:    2:23:17 PM
User:    N/A
Computer:  NAUSHAD-74EEB33
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/5/2009 2:23:17 PM
Event time (UTC): 7/5/2009 1:23:17 PM
Event ID: d8cc3458dea44630a1359faef80cf2ac
Event sequence: 4
Event occurrence: 1
Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/1/Root/ESB.Portal-1-128912737807416250
    Trust level: Full
    Application Virtual Path: /ESB.Portal
    Application Path: C:\Program Files\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Source\Samples\Management Portal\ESB.Portal\
    Machine name: NAUSHAD-74EEB33

Process information:
    Process ID: 5784
    Process name: w3wp.exe
    Account name: NAUSHAD-74EEB33\Administrator

Exception information:
    Exception type: WebException
    Exception message: The remote server returned an error: (400) Bad Request.

Request information:
    Request URL: http://localhost/ESB.Portal/Default.aspx
    Request path: /ESB.Portal/Default.aspx
    User host address: 127.0.0.1
    User: NAUSHAD-74EEB33\Administrator
    Is authenticated: True
    Authentication Type: Negotiate
    Thread account name: NAUSHAD-74EEB33\Administrator

Thread information:
    Thread ID: 1
    Thread account name: NAUSHAD-74EEB33\Administrator
    Is impersonating: False
    Stack trace:    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)


Custom event details:

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

Could you please give me some idea on this ?
Naushad.
Tuesday, January 05, 2010 1:48 AM
Dipesh A. Australia
Dipesh A.
Hi,

I have configured the ESB portal and cant seem to access it, even when I am a member of the BizTalk Server Administrators group. I keep getting the Bad request (400) exception.

I have a multi server environment with sql server seperate from the BT server.

I also had a look at the troubleshooting section and everything there specified there is as expected to be.

One thing I noticed was that if I try an access the portal as the local administrator of the box, it works!

any ideas?

D
Friday, January 29, 2010 10:12 PM
Ssalam France
Ssalam
Hi, nice and useful article. However, this applies very well to single machine setup. I ran into several issues as I have a multi-computer setup(1 BT, 1 sql).
I created manually DB, run management script and followed your instructiuons, when I browse to the esb porta, I get unhandled error, 2 warniongs and 2 errrors in event viewer which are not really usefull

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading