View previous topic :: View next topic |
Author |
Message |
andrewdeakins
Joined: 30 Jan 2013 Posts: 1
|
Posted: Wed Jan 30, 2013 1:41 am Post subject: MVC 4 support |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jan 30, 2013 6:53 am Post subject: |
|
|
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 |
|
|
|