Tuesday, July 14, 2009

ESB Error: UDDI.aspx page throws error

If you open the UDDI page on the ESB Portal you get the following error:

An unexpected error occurred retrieving the category, 'microsoft-com:esb:runtimeresolution:biztalkapplication', from the system. ---> The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'. ---> The remote server returned an error: (401) Unauthorized.

To fix this error, open system32\inetsrv\applicationHost.config (you may want to make a copy first), and go down to the UDDI web site tags. Change the windowsauthentication value and add "Negotiate" as a provider. Example follows:

Change
<location path="Default Web Site/uddi">
<system.webserver>
...
<security>
<windowsauthentication enabled="true"/>
...

to

<location path="Default Web Site/uddi">
<system.webserver>
...
<security>
<authentication>
<windowsauthentication enabled="true">
<providers>
<add value="Negotiate">
</add>
</providers>
</windowsauthentication>...

Restart IIS and it works.

ESB Error: Microsoft.Practices.ESB.UDDIPublisher.exe

When running the Microsoft.Practices.ESB.UDDIPublisher.exe in the bin folder (called the UDDI Publisher Utility in the documentation), you get the following error:

The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM,Basic realm="localhost"'

To fix this problem open Microsoft.Practices.ESB.UDDIPublisher.exe.config in the bin folder and change the credentialType tag from "Windows" to "Ntlm".

Friday, July 10, 2009

ESB Error: The remote server returned an error: (401) Unauthorized

Error: On ESB.Portal/Default.aspx page.


The remote server returned an error: (401) Unauthorized.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.

Source Error:

Line 287: {

Line 288: client = PortalHelper.GetExceptionService();

Line 289: List settings = client.GetUserSettings(context.User.Identity.Name);

Line 290:

Line 291: context.Session.Clear();


Source File: c:\Program Files (x86)\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Source\Samples\Management Portal\ESB.Portal\Code\PortalHelper.cs Line: 289

Stack Trace:

[WebException: The remote server returned an error: (401) Unauthorized.]

System.Net.HttpWebRequest.GetResponse() +1126

System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +81

[MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'.]


Fix:

Change the security in the ESB.Portal web.config.

In the web.config change the security mode for the webBam webHttpBinding to match the correct security for your portal. For more information review: http://msdn.microsoft.com/en-us/library/ms731362.aspx.

To get mine to work I changed:

<webHttpBinding>

<binding name="webBam" maxBufferPoolSize="5000000" maxReceivedMessageSize="5000000">

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />

<security mode="TransportCredentialOnly">

<transport clientCredentialType="Windows" />

security>

binding>

webHttpBinding>

To:

<webHttpBinding>

<binding name="webBam" maxBufferPoolSize="5000000" maxReceivedMessageSize="5000000">

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />

<security mode="TransportCredentialOnly">

<transport clientCredentialType="Ntlm" />

security>

binding>

webHttpBinding>



ESB Error: Application. Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts th

Server Error in '/ESB.Exceptions.Service'

Application. Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service.

Fix:
Open the web service web.config file (for exmple: C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Source\Samples\Management Portal\ESB.Exceptions.Service\ESB.Exceptions.Service)

Change the security mode to the following:

<security mode="TransportCredentialOnly">

<transport clientCredentialType="Ntlm" />

security>


ESB Error: System.Web.DataVisualization

Error: Exception message: Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Error occurs when trying to open the ESB.Portal.

Fix: Install Microsoft Chart Controls for Microsoft .NET Framework 3.5