View previous topic :: View next topic |
Author |
Message |
Jason Guest
|
Posted: Mon Aug 01, 2005 5:30 pm Post subject: Long running line of code |
|
|
In the class EncryptedLicenseProvider.cs, method LoadLicense() there are two long-running lines of code in the "else" branch when checking to see if the licenseusagemode is DesignTime.
The rsa.VerifyData(encryptionKey, new ......) lines, when executed, take up to 15 seconds each to run. I don't see this when running an unlicensed copy of my software but when I enter a registered key, my app takes about 30 seconds to load.
I have downloaded and applied the 2.0.4 update and have made zero changes to your codebase.
Please advise.
Thanks. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Aug 01, 2005 10:00 pm Post subject: |
|
|
This is very strange. If I run this through the debugger on my machine then these calls are instantaneous. Have you tried running it on another machine? These are standard cryptography methods supplied by the .NET framework - it seems to indicate something seriously amiss with your installation.
Does the first or second call ultimately succeed?
How long is the key that you are verifying? _________________ Infralution Support |
|
Back to top |
|
|
Jason Guest
|
Posted: Tue Aug 02, 2005 11:53 pm Post subject: Long running code |
|
|
Thanks for the reply.
I have tried on three different machines using Beta 2 of .NET 2.0. Each instance takes up to 20 seconds to execute this specific line of code.
A few weeks ago when I first installed Infralution (on same machine using same .NET framework version as above), it was instantaneous as well. Only recently has it become slow. All calls to these lines of code succeed....eventually.
The key that I'm using is 20 characters long. Perhaps you can test with it so here it is: ajs3kl29dkx8D810As89
I appreciate your help.
Thanks. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Aug 03, 2005 12:55 am Post subject: |
|
|
Our keys are hexadecimal - so that key doesn't make a lot of sense. Have you modified the licensing code to use another encoding?
We've rechecked the current release under VS2005 beta 2 without any problems - both using the DLL and with the licensing classes included directly in the project.
If you delete the license file for the LicenseKeyGenerator application that we supply then run it and resintall your license key does it suffer the same problem?
When you tested on other machines did you test by running the compiled code or did you recompile the code and run it under debugger on each machine?
A bit of googling did turn up the following post on RSA performance.
http://groups.google.com.au/group/microsoft.public.dotnet.framework/browse_frm/thread/eebbe509c4ccfd2d/337628ca379ae5a8
This doesn't seem to be exactly the same issue - but it may be related. _________________ Infralution Support |
|
Back to top |
|
|
Jason Guest
|
Posted: Sun Aug 07, 2005 9:41 pm Post subject: Long Running Code |
|
|
I had to reinstall my entire operating system due to an unrelated issue. The code executes sub-second now. Same key, same code base.
Obviously, the base OS/framework install had an issue since a complete reinstall corrected the issue.
Thanks for your assistance in looking to this! |
|
Back to top |
|
|
|