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 

MVC 4 support

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
andrewdeakins



Joined: 30 Jan 2013
Posts: 1

PostPosted: Wed Jan 30, 2013 1:41 am    Post subject: MVC 4 support Reply with quote

hi there,

trying to call the licensing stuff like so:

public static bool HasLicenceKey
{
get
{
EncryptedLicenseProvider provider = new EncryptedLicenseProvider(LICENSE_PARAMETERS, LICENSE_FILE);
EncryptedLicense license = provider.GetLicense();
return (license != null);
}
}

public static void InstallLicence(string licenceKey)
{
if (!string.IsNullOrEmpty(licenceKey))
{
EncryptedLicenseProvider provider = new EncryptedLicenseProvider(LICENSE_PARAMETERS, LICENSE_FILE);
EncryptedLicense license = provider.InstallLicense(licenceKey);
}
}

have included the infrulation.licensing.asp.dll and when i call these functions externally i get an Xml node error:

'None' is an invalid XmlNodeType. Line 1, position 1.

I am using mvc 4 .net 4.5 and was wondering is the software compatible or am i using the wrong dll

thanks
andrew.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jan 30, 2013 6:53 am    Post subject: Reply with quote

You should be able to use Infralution.Licensing.ASP in MVC apps. That error looks like there is a problem with your LICENSE_PARAMETERS string (which is XML).

For the encrypted license provider this should look something like:

Code:
const string LICENSE_PARAMETERS =
@"<EncryptedLicenseParameters>
   <ProductName>Sample Licensed Product</ProductName>
   <RSAKeyValue>
   <Modulus>zX4VW8ukM8aBMgIeYOhBsH6s+UlbYM3jv3kGy59NA5vBDxaCRclowIXkHC+Ue+ua0am7brgWss/N7PetcaleXWUJacRaisC5yjl3WK2UWoPQ37HjKijXM++eCOq+mEProZYO7Ux2Q8aA13glAXn5Ry9OePA3YmD4f+658k0x1AE=</Modulus>
   <Exponent>AQAB</Exponent>
   </RSAKeyValue>
   <DesignSignature>VyWFO92791568I4C/iw5bNi8y4yhv0GE4/m+5MWMsAlOdIe7GWr3v57rxtMo9iPyfMyHJhLLJHBkuANsI0gWUiaAfyMhpHdM893mkc4PEz8KS+ZSvUCVklNWiPWPQUT0cDd6FSxCVjujBoZmIGYe4KglA8vjd2YxtHm7ZgTPYG4=</DesignSignature>
   <RuntimeSignature>YCO+TnF/qnmLuY+NiINXPal3uSZiBuCvlI6RUDtsoVxSV5eld0P4ava+m9+viKYMBLd/tOIiNH+Jh1ZQIMeWtDNndxyoRr2S1eRp0fb5XYHk8bvUUJB81a9eSrJ366YgZwzXuL2oNw4hilZBQCgUgDWEwD4c2meD0dkE5MkTOdI=</RuntimeSignature>
   <KeyStrength>7</KeyStrength>
</EncryptedLicenseParameters>";
 

_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing 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