views:

21

answers:

1

I get below error on calling dot net code within my XSLT file

error: The type or namespace name 'com' could not be found in the global namespace (are you missing an assembly reference?)

This is code snippet-

<msxsl:script language="C#" implements-prefix="callCode">
<msxsl:using namespace="global::com.myassembly.crs.app.services.contentTypes"/>

<![CDATA[

public int GetValue()

{

Test1 t = new Test1();

return t.GetValue();

}

]]>
</msxsl:script>
A: 

You need to specify an assembly reference.

Use the <msxsl:assembly> extension element for that.

Dimitre Novatchev