<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Me and my Cerebrations</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/chiragpavecha/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/chiragpavecha/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:39:43 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Cannot determine the SID for the user while browsing BAM Portal</title>
      <link>https://docs.microsoft.com/archive/blogs/chiragpavecha/cannot-determine-the-sid-for-the-user-while-browsing-bam-portal</link>
      <pubDate>Tue, 30 Jun 2009 12:54:00 GMT</pubDate>
      <dc:creator><![CDATA[chiragpa]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/chiragpavecha/2009/06/30/cannot-determine-the-sid-for-the-user-while-browsing-bam-portal/</guid>
      <description><![CDATA[Recently I came across this very well known issue while browsing to BAM Portal and after lot of...]]></description>
      <content:encoded><![CDATA[<P>Recently I came across this very well known issue while browsing to BAM Portal and after lot of troubleshooting it turned out to be an issue with the way BAM Mgmt Service do the authentication.</P>
<P>In our case we were able to browse the BAM Portal but BAM Portal was not able to consume out of the box BAM Mgmt Web Service. And we were getting following entry in the event viewer:</P>
<P><EM>Event Type: Error<BR>Event Source: Bam Web Service<BR>Event Category: None<BR>Event ID: 12033<BR>Date: 20/06/2009<BR>Time: 13:56:00<BR>User: N/A<BR>Computer: MyComputer<BR>Description:<BR>Referenced database 'BAMPrimaryImport' on server 'MyComputer' is not accessible. The error is:<BR>System.NullReferenceException: Object reference not set to an instance of an object.<BR>at Microsoft.BizTalk.Bam.WebServices.AsyncResult.End(AsyncResult asyncResult)<BR>at Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult.End(IAsyncResult result)<BR>at Microsoft.BizTalk.Bam.WebServices.Management.BamManagementService.GetViewSummaryForCurrentUser()</EM></P>
<P>We enabled BAM traces. It contains following information:</P>
<P><EM>06/20/2009 13:57:00 Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult CompleteGetViewSummary Error Exception thrown<BR>Source:<BR>Microsoft.BizTalk.Bam.WebServices<BR>Error messages:<BR>Object reference not set to an instance of an object.<BR>Call stack:<BR>at Microsoft.BizTalk.Bam.WebServices.TraceHelper.ThrowHelperSoapException(XmlQualifiedName faultCode, Exception exception, Int32 eventId, String message)<BR>at Microsoft.BizTalk.Bam.WebServices.SecurityHelper.CompareUsernames(String user1, String user2)<BR>at Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult.ReadCurrentUsersViews(SqlDataReader sqlReader, Boolean isDbo)<BR>at Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult.GetViewSummaryForDatabase()<BR>at Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult.CompleteGetViewSummary()</EM></P>
<P>I came across <A href="https://blogs.msdn.com/tihot/archive/2006/06/13/630313.aspx" target=_blank mce_href="https://blogs.msdn.com/tihot/archive/2006/06/13/630313.aspx">this</A> blog by Tiho, so we cross checked following points:</P>
<OL>
<LI>BAMPrimaryImportDB is running under a domain account.</LI>
<LI>SQL Server is running under Windows Authentication. </LI>
<LI>We were able to browse the BAM Mgmt Web Service directly and we can invoke the Web Methods without any issue.</LI></OL>
<P><BR>Later, while looking at the list of users who has access to the view, we found that there is a user who no longer exist in the Active Directory, but has still access to the view. Once we removed that user from the access list of the view, everything started working properly!!! So we wonder how a user who is not even present in Active Directory can cause such a issue. </P>
<P>We took a dive in the code and found that when you browse to BAM portal, you will see the list of views for which you have the access. The job of filtering the views based on authorization is done by the BAM Mgmt WS. In order to do the authorization BAM will take a list of all the users/groups who has access to the view and then tries to compare it with the current user. The catch here is the way comparison is happening. It is not a a string comparison. We translate the username/group to its security identifiers (SID) and then do the comparison. And in our case it was failing when the username to SID conversion was happening, as the user was not present in AD.</P>
<P><BR>Unfortunately, the behaviour is same in BizTalk 2009. Product team is working on this and we should see a fix soon.<BR></P>]]></content:encoded>
    </item>
    <item>
      <title>MSDTC duplicate CID warning message in MBV report</title>
      <link>https://docs.microsoft.com/archive/blogs/chiragpavecha/msdtc-duplicate-cid-warning-message-in-mbv-report</link>
      <pubDate>Thu, 04 Jun 2009 03:50:00 GMT</pubDate>
      <dc:creator><![CDATA[chiragpa]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/chiragpavecha/2009/06/04/msdtc-duplicate-cid-warning-message-in-mbv-report/</guid>
      <description><![CDATA[&lt;CID&gt; is duplicated on servers &lt;Machine-1&gt; and &lt;Machine-2&gt; - Check if...]]></description>
      <content:encoded><![CDATA[<P mce_keep="true"><SPAN><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><EM><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 14pt; mso-bidi-font-size: 11.0pt">&lt;CID&gt; is duplicated on servers &lt;Machine-1&gt; and &lt;Machine-2&gt; - Check if &lt;Machine-1&gt; and &lt;Machine-2&gt; are not cluster nodes as CID must be unique on non-clustered servers!</SPAN></EM><SPAN style="LINE-HEIGHT: 115%; FONT-SIZE: 14pt; mso-bidi-font-size: 11.0pt"><o:p></o:p></SPAN></P></o:p></SPAN>
<P>You might see above warning message when you run MBV report on a BizTalk Server, where BizTalk DB is configured on a Windows SQL Cluster. It completely safe to ignore this warning message iff &lt;Machine-1&gt; and &lt;Machine-2&gt; are part of same cluster i.e. &lt;Machine-1&gt; and &lt;Machine-2&gt; are configured as two physical nodes of the cluster. I am assuming that MSDTC is configured as a cluster resource. However if &lt;Machine-1&gt; and &lt;Machine-2&gt; are NOT configured as a part of same cluster, then it is must to fix it, in order to run Distributed Transaction successfully. </P>
<P>Whenever there is a Distributed Transaction happens between two different physical machines a superior and subordinate relationship established between them, superior being the one who starts the transaction and subordinate being the one which will participate in the transaction. And we cannot flow the transaction to subordinates if they have same CID as superior. So we HAVE to make sure that we have unique CID corresponding to MSDTC resource. While working with cluster where you have MSDTC as a clustered resource, you can have only one MSDTC service running doesn't matter how many nodes you have in the cluster. So that makes it as only single MSDTC service between all the nodes and that's why they have same CID</P>
<P>How to check if two machines have same CID for MSDTC service and How to fix it?</P>
<P>1-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open registry editor.</P>
<P>2-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Browse to HKCR\CID.</P>
<P>3-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You will see four keys under it.</P>
<P>4-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Each of these keys has the same tree structure and there is one sub-key called "Description".</P>
<P>5-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You need to go through all the Keys and search for the one which has "Description" as "MSDTC".</P>
<P>Note: The "Description" should be "MSDTC" only as shown below:</P>
<P><IMG src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/09/69/88/62/New%20Bitmap%20Image.jpg" original-url="https://blogs.msdn.com/photos/chiragpa/images/9698862/original.aspx" mce_src="https://blogs.msdn.com/photos/chiragpa/images/9698862/original.aspx"></P>
<P mce_keep="true">6-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You can follow the same steps on other interrogated machines; if they are same continue following rest of the steps to change the CID value for MSDTC.</P>
<P>7-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Browse to <A href="https://www.guidgen.com/" mce_href="https://www.guidgen.com/">www.GuidGen.com</A> </P>
<P>8-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click on "Create new GUID".</P>
<P>9-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copy the newly create GUID under "Your GUID"</P>
<P>10-&nbsp;&nbsp; Rename the key with the sub-key "Description" as "MSDTC" with the newly created GUID. For e.g. in above snapshot I would rename "2e2a8d19-18e3-4df0-8306-938d43895b89".</P>
<P>11-&nbsp;&nbsp; Once you renamed it, please restart "Distributed Transaction Co-ordinator" service from Services.msc.</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
  </channel>
</rss>