Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Encryption error after upgradeEncryption error after upgrade
Previous
 
Next
New Post
2/6/2014 9:57 AM
 

After upgrading from 7.0 to 7.2, we are getting errors in our custom registration module. Here is the stack trace:

DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.PortalSecurity.Encrypt(String key, String data) at <Company Namespace>.CreateReg(UserInfo& clsUser) at stac<Company Namespace>.btnRegister_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---
When we copy over the Encrypt method into our module, it does not throw an error. However, it does fail again on a different method that requires encryption.

Any help would be greatly appreciated!

Thanks,

Ray

 
New Post
2/6/2014 1:51 PM
 

In 7.2.0 we abstracted out the cryptographic items into a provider (so alternative implementations could select other algorithms that might be more secure, harder to crack or meet requirements such as FIPS). As such there is now a provider definition in web.config - if you check your's you should see the following

    <cryptography defaultProvider="CoreCryptographyProvider">

      <providers>

        <clear />

        <add name="CoreCryptographyProvider" type="DotNetNuke.Services.Cryptography.CoreCryptographyProvider, DotNetNuke" providerPath="~\Providers\CryptographyProviders\CoreCryptographyProvider\" />

      </providers>

    </cryptography>

If you don't see that it would suggest there was an issue updating your web.config - which is typically a permissions issue (i.e. it didn't have modify permissions), or that web.config was mistakenly set as readonly (can happen if you check out a copy of a site from source control such as vsts)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/6/2014 2:40 PM
 

Can I add it in manually? And if so, where specifically should it be placed? And lastly, should I change the code I am using to encrypt the password?

Thanks for the quick reply!

-Ray

 
New Post
2/6/2014 3:52 PM
 
yes you can add it manually (add it just below sitemap but before ) - and no, you don't need to change the code. The existing methods call to the provider which uses the old implementation - however having the provider allows us to offer alternative solutions (that would be available for new installs)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Encryption error after upgradeEncryption error after upgrade


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out