Re: Explorer OM is not supported in a 64 bit process. –

Home Page Forums BizTalk 2004 – BizTalk 2010 Explorer OM is not supported in a 64 bit process. – Re: Explorer OM is not supported in a 64 bit process. –

#21602

I have faced this issue too.

When we compile  with Platform:x86  switch then the application runs on 32 bit host instance not the 64 bit host. Then we can not  get the advantage of 64 bit.

Only option that I found  to use the below . Hope this will help you

// Query for the BizTalk Receive Location.
    
        private const string queryCom= “SELECT * FROM MSBTS_ReceiveLocation”;

         string receiveLocationName = string.Empty;

                //Create the WMI search object.
                ManagementObjectSearcher Searcher = new ManagementObjectSearcher();

                // create the scope node so we can set the WMI root node correctly.
                ManagementScope scope = new ManagementScope(“root\\MicrosoftBizTalkServer”);
                Searcher.Scope = scope;

                // Build a Query to enumerate the MSBTS_ReceiveLocation instances if an argument
                // is supplied use it to select only the matching URL.
                SelectQuery selectQuery = new SelectQuery();

                query.QueryString = queryCom;

                // Set the query for the searcher.
                Searcher.Query = selectQuery;

                // Execute the query and determine if any results were obtained.
                ManagementObjectCollection queryCol = Searcher.Get();

                //Get the Recive Location Name from InboundTransportURL property
                foreach (ManagementBaseObject envVar in queryCol)
                {
                    PropertyDataCollection envVarProperties = envVar.Properties;
                   
                    foreach (PropertyData envVarProperty in envVarProperties)
                    {
                        if ((envVarProperty.Name.Equals(“InboundTransportURL”)) &&
                            (inboundAddress.Equals(envVarProperty.Value)))
                        {
                            //Set the reciveLocationName from the InboundTransportURL property
                            receiveLocationName = envVar[“Name”].ToString();
                            break;
                        }
                    }
                }               

 

 

Regards,

Nandika