erikest
Joined: 30 May 2007 Posts: 17
|
Posted: Mon Mar 16, 2009 1:47 am Post subject: My ICustomGenerator cannot be cast to ICustomGenerator |
|
|
Hello kind sirs,
I'm trying to get everything set up with IPN.NET and ILS, but I'm having a slight problem in that the custom generator I've created only works through the license tracker and not IPN.NET.
I get the following exception (in an email) when posting data through the IPN.NET Test Tool:
Unhandled Exception: InvalidCastException
Message: CustomGenerator type (EnergySoft.Licensing.KeyGenerators.EnergyProKeyGenerator, EnergySoft.Licensing) does not implement ICustomGenerator interface Stack Trace:
at PurchaseItem.GetCustomGenerator()
at _Default.GetProductInfo(PurchaseItem item, Int32 quantity)
at _Default.ProcessPurchaseItem(PurchaseItem item, Int32 quantity)
at _Default.ProcessShoppingCartItems()
at _Default.ProcessPayment()
at _Default.Page_Load(Object sender, EventArgs e)
Which would make you think that I'm not implementing the required interface, but of course I am, since I just copied the example generator and renamed the class and namespace before filling out some custom logic in the GetLicenseKeyData method.
Like I mentioned before, I've set up the license tracker to use the same dll and it works fine.
Any idea what could be going on here?
Thanks _________________ Erik Taylor
Developer
EnergySoft, LLC. |
|