Re: xslt:Registry access within maps

Home Page Forums BizTalk 2004 – BizTalk 2010 xslt:Registry access within maps Re: xslt:Registry access within maps

#16537

Hi Greg,

For the above method to providing registry:getvalue(), do we need to add a reference to any dll. I am getting an error : "Constructor on type 'Microsoft.Win32.Registry' not found". I am not able to figure out the error.

 I created a key named AccessKeyFolder under Regedit "MyComupter\HKEY_LOCAL_MACHINE\Software\AccessKeyFolder"

Below that Key I created 2 keys AccessKey1 and AccessKey2.

Path is "MyComputer\HKEY_LOCAL_MACHINE\Software\AccessKeyFolder\AccessKey1"

           "MyComputer\HKEY_LOCAL_MACHINE\Software\AccessKeyFolder\AccessKey2"

In the xsl style sheet:

*****

Defined <xsl:variable name="keyname" select="(concat'MyComputer','\','HKEY_LOCAL_MACHINE','\','Software','\','AccessKeyFolder','\','AccessKey1')"/>

<variable1> <xsl:value-of select="Registry:GetValue($keyname,'Name',Nothing)"/></variable1> 

 ****** 'Name' is the property along with type(REG_SZ) and default value when a key is created.  

Please do let me know where I might be going wrong.

Thanks