Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cutom ipnserver.dll update

 
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support
View previous topic :: View next topic  
Author Message
nmunro



Joined: 22 Nov 2009
Posts: 75

PostPosted: Wed Jun 05, 2013 1:03 pm    Post subject: Cutom ipnserver.dll update Reply with quote

ILS 5.91.
IPN.Net 3.7

We have modified the IpnServer source code, making a single change to Default.aspx.cs that changes which paypal property is assigned to one of the Customer properties.

We have built the solution, uploaded the four generated dll's to our IPN site, and have run Install.aspx on the site. License tracker then used to Configure IPN Server, runs OK.

When making a test purchase, we get some versioning error (see below). What might we be missing?




Unhandled Exception: FileLoadException
Message: Could not load file or assembly 'Infralution.Licensing.CustomGenerator, Version=5.9.0.0, Culture=neutral, PublicKeyToken=3e7e8e3744a5c13f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack Trace:
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at Infralution.Licensing.Data.Product.GetIpnCustomGenerator()
at Infralution.Licensing.Data.Product.GetIpnCustomGenerator()
at IpnServer._Default.GetCustomGeneratorData(Product product, Customer customer, Sale sale)
at IpnServer._Default.ProcessPurchaseItem(Product product, Int32 quantity, Int32 cartItem)
at IpnServer._Default.ProcessShoppingCartItems()
at IpnServer._Default.ProcessPayment()
at IpnServer._Default.Page_Load(Object sender, EventArgs e)
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jun 06, 2013 1:21 am    Post subject: Reply with quote

It looks like you have created a custom generator for the product which is compiled against a different version of Infralution.Licensing.CustomGenerator dll then your IpnServer is. You should probably recompile your customer generator referencing the same Infralution.Licensing.CustomGenerator assembly that your Ipn Server is using.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
nmunro



Joined: 22 Nov 2009
Posts: 75

PostPosted: Thu Jun 06, 2013 6:43 am    Post subject: Reply with quote

Some different result but it still does not work. When the IpnServer solution is built, four different Infralution assemblies are complied. Do these have to replace the ones that are referenced by all infralution tools, ie. License Tracker, IPN, the Authentication server site?

When I place a Custom Generator dll compiled against the new Infralution.Licensing.CustomGenerator dll into the License Tracker directory, generating keys for the product results in could not resolve type error for my custom generator (worked fine before compiling new IpnServer assembly).
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jun 06, 2013 6:57 am    Post subject: Reply with quote

Are you using the same CustomGenerator for both License Tracker and IPN.NET?

The problem is that the source code that you download uses a different strong name to the one we use to sign the distributed assemblies. This is to prevent someone spoofing our compiled assemblies. This means that the distributed CustomGenerator assembly is not compatible with the one you compile. If you want a CustomGenerator that works with both the distributed License Tracker and IpnServer compiled from source code then you will need to change the IpnServer project to remove the CustomGenerator project and instead add a reference to the distributed Infralution.Licensing.CustomGenerator assembly (found in C:\Program Files (x86)\Infralution\Licensing System 5\Bin)
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
nmunro



Joined: 22 Nov 2009
Posts: 75

PostPosted: Thu Jun 06, 2013 7:45 am    Post subject: Reply with quote

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group