2008年10月30日

[BizTalk]BizTalk Server 2006 R2 not compatible with 2008 Server Series

BizTalk Server 2006 R2 does not compatible with Windows Server 2008 and SQL Server 2008.

I setup BizTalk 2006 R2 on Windows Server 2008 (64bit) with SQL Server 2008(64 but), and tested with a simple publish-subscribe application, it seems work fine. But Microsoft states that the compability issue of BizTalk Server should be fixed on BizTalk Server 2009 which should be released around 2009 Q1.

I even try to user Visual Studio 2008 with BTS 2006 R2 (64 bit with Server 2008 64 bit,SQL 2008 64 bit), and sadly find out that VS2008 simply can not recognize BTS 2006 R2 Project file. This should also be fixed on BTS 2009.

2008年10月20日

[BizTalk][EDI]Repository was locked on host when validating EDI Schema

When Validating EDI Schema, you may get the following error:

Repository was locked on host[host name]


This occurs when compeif or xsd2edi runs and the EDI repository is locked in BTS EDI Database.

To solve this issue,

  1. connect to BizTalk Database server and execute the following SQL statement against BizTalkEDIDb
    USE BizTalkEDIDb


    GO


    UPDATE parame SET repolock=null


    GO




    This should effect only 1 row.




  2. Then open command prompt, execute “compeif” locate on BizTalk EDI subsystem folder.

2008年10月11日

[Dual-Boot] Vista & windows Server 2008

Things are not so diffcult as those internet users describes.

CPU:Intel Q9400
MB:ASUS P5QC
RAM:Transcend DDR2 800 - 2G * 4
Display:MSI 9500GT 512M
HD:WD 320GB * 2

First at all, download and update ASUS BIOS updates from ASUS website and update your BIOS to newest version. This is mandatory (I stuck here for almost one day), at this time, newest version should be 1409.

Then bootup with Vista install CD(I am installing Vista Ultimate 64 bit version), follow the instruction to setup Vista

After installation completed, reboot with Windows Server 2008 CD, following the wizard to complete server 2008 setup process.

Once the installation is done, reboot your machind and you’ll see both Vista & Windows 2008 are listed on bootup menu.

reference:

2008年10月1日

[.Net][ADSI]Get User Information from AD by SID

System.DirectoryService namespace provides many useful utilitu to communicate with AD, especially when you are querying object information. However, when querying AD object by objectSID, there’s a trick.

To query AD via System.DirectoryService namespace, first we have to create searcher object.

private static DirectorySearcher GetSearcher()


{


    DirectoryEntry de = new DirectoryEntry("LDAP://dc=mydomain,dc=com");


    DirectorySearcher ds = new DirectorySearcher(de);


    return ds;


}




Then to set query filter, in this case , I am searching objects by its sid.





ds.Filter = string.Format("(&(objectClass=user)(objectSid={0}))", ConvertByteToStringSid(binaryForm));




And to get correct SID string for query.





private static string ConvertByteToStringSid(Byte[] sidBytes)


{


    StringBuilder strSid = new StringBuilder();


 


    foreach (byte b in sidBytes)


    {


        strSid.Append("\\").Append(b.ToString("X2"));


    }


    return strSid.ToString();


}




We can not simply put filter like objectSid=S-1-5, to get this query work, we have to convert SID into format like \00\01\05…

Blog Archive

About Me