BizTalk - hi all, - Asked By Pranav Patel on 25-Jun-09 12:53 AM

I am having problem using Microsoft.BizTalk.ExplorerOM assembly.
While i try to find receive locations within the C# code the below error is thrown.
ERROR:
Could not retrieve transport type data for Receive Location 'Async_Http_Receive' from config store. Access is denied.

My code is as below.
  private void EnableLocation()
        {            
            Microsoft.BizTalk.ExplorerOM.ReceiveLocationCollection Locations = new ReceiveLocationCollection();            
            BtsCatalogExplorer btsCatalogExplorer;            
            btsCatalogExplorer = new BtsCatalogExplorer();            
            btsCatalogExplorer.ConnectionString = "Data Source=localhost;Initial Catalog=BizTalkMgmtDb;Integrated Security=true";            
            
            foreach (ReceivePort RP in btsCatalogExplorer.ReceivePorts)// Assemblies["APP1"] )            
            {
                System.Diagnostics.EventLog.WriteEntry("1", RP.Name);
                if (RP != null)
                {                    
                    System.Diagnostics.EventLog.WriteEntry("2", RP.Name);
                    if (RP.ReceiveLocations != null)
                    {
                        System.Diagnostics.EventLog.WriteEntry("3", "1");
                        foreach (ReceiveLocation RL in RP.ReceiveLocations)
                        {
                            System.Diagnostics.EventLog.WriteEntry("4", "1");
                            if (RL.Enable == false)
                            {
                                RL.Enable = true;
                                System.Diagnostics.EventLog.WriteEntry("5", RL.Name);
                            }
                            btsCatalogExplorer.SaveChanges();

                            //btsCatalogExplorer.Refresh();

                        }
                    }
                }
                //Console.WriteLine(RP.Name);
            }
        }

The Enable location is called from timer_Elapsed method form windows service.

Please help.
Alice J replied to Pranav Patel on 25-Jun-09 12:58 AM

Add the user you are logged in with, to the BizTalk Server Administrators Group.

Could be security and access rights of the user.. - Santhosh N replied to Pranav Patel on 25-Jun-09 01:06 AM

Thanks - Pranav Patel replied to Alice J on 25-Jun-09 01:07 AM

Hi A J,
I have added the User in All biztalk related groups. but still same problem.
San, - Pranav Patel replied to Santhosh N on 25-Jun-09 01:22 AM
I have checked both the sites and got done with all that but same problem arises eveery time i come to If(RP.ReceiveLocations != Null).
here you go.. - Santhosh N replied to Pranav Patel on 25-Jun-09 01:36 AM

YOu could check this if the problem is with registry keys as stated here..

http://weblogs.asp.net/cschittko/archive/2004/06/07/150582.aspx

Thanks san, - Pranav Patel replied to Santhosh N on 25-Jun-09 01:57 AM
I cant find RPC key under the windowsNT.
\\HKLM\SOFTWARE\Policies\Microsoft\Windows NT\RPC.
San, - Pranav Patel replied to Santhosh N on 25-Jun-09 02:10 AM
I created the Key RPC.
Still the damn error dont understands...!!!!

last try.. - Santhosh N replied to Pranav Patel on 25-Jun-09 02:16 AM

check if it is space issue..

http://support.microsoft.com/kb/942251