Windows Phone Developers

Saturday, October 11, 2008

Method < MethodName > of extension object < NameSpace > cannot be called because it is not public.


This error occurs in XSLT Processing when the function in the msxsl script is not declared as public

< msxsl:script implements-prefix ="vbadud" language="C#" >

< ![CDATA[

decimal TotalAmount(int Qty, decimal Price)

{

return Qty* Price;

}

]] >

< /msxsl:script >

Solution :

Declare the TotalAmount as public

< msxsl:script implements-prefix ="vbadud" language="C#" >

< ![CDATA[

public decimal TotalAmount(int Qty, decimal Price)

{

return Qty* Price;

}

]] >

< /msxsl:script >


Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment

kbAlertz.com :: Visual Studio 2005

kbAlertz.com :: Visual Studio 2008

kbAlertz.com :: Visual Basic 2005