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...DotNetNuke.Services.Cryptography.CryptographyProvider issue after upgrading to 7.2.2DotNetNuke.Services.Cryptography.CryptographyProvider issue after upgrading to 7.2.2
Previous
 
Next
New Post
3/27/2014 3:57 PM
 

I'm developing my own module and after upgrading to 7.2.2 I've been getting the following error after running my module in debug mode.

I can't find a reason for it to be doing this. Research online hasn't provided any results or anyone with a similar problem had a different variation of it.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not load type 'DotNetNuke.Services.Cryptography.CryptographyProvider' from assembly 'DotNetNuke, Version=7.1.2.356, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'DotNetNuke.Services.Cryptography.CryptographyProvider' from assembly 'DotNetNuke, Version=7.1.2.356, Culture=neutral, PublicKeyToken=null'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[TypeLoadException: Could not load type 'DotNetNuke.Services.Cryptography.CryptographyProvider' from assembly 'DotNetNuke, Version=7.1.2.356, Culture=neutral, PublicKeyToken=null'.]
DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_Start(Object sender, EventArgs eventArgs) +0

[HttpException (0x80004005): Could not load type 'DotNetNuke.Services.Cryptography.CryptographyProvider' from assembly 'DotNetNuke, Version=7.1.2.356, Culture=neutral, PublicKeyToken=null'.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951237
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Could not load type 'DotNetNuke.Services.Cryptography.CryptographyProvider' from assembly 'DotNetNuke, Version=7.1.2.356, Culture=neutral, PublicKeyToken=null'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949



--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447

 
New Post
3/27/2014 7:52 PM
 

something odd going on here - the issue indicates a problem with the CryptographyProvider which was only introduced in 7.2.1 (and your issue says 7.1.2). That part I don't understand.

As to why it might be happening, it's probable that you are missing the references in web.config -check it and look for the following (usually just before the </dotnetnuke> tag)

  <cryptography defaultProvider="CoreCryptographyProvider">

      <providers>

        <clear />

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

      </providers>

    </cryptography>

 

Note: this can fail to be there is you initially installed an older version (such as 7.1.0) and then upgraded to 7.2.1/7.2.2 - during the upgrade DNN will merge the needed changes into your web.config. However if you have incorrect permissions (e.g. read/write, but not modify), or web.config is read-only (e.g. if you had it stored in TFS) then the change cannot apply, and you would see this issue


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/28/2014 10:08 AM
 

I checked my web config again to make sure.

I had found a thread where you posted the same thing for someone who had a similar problem so I checked it then and I found those lines to be there and in the proper place so I was even more confused as to why this was happening.

But yes that segment is present in my web config.

 
New Post
3/28/2014 10:13 AM
 
Hey Cathal,

Does this not suggest the reverse? Web config is demanding the Cryptography provider, but in the bin folder he has an old (7.1.2) version of DotNetNuke.dll that does not contain the CryptographyProvider?

Ron - when you did the upgrade did it miss the bin files? Maybe the zip you upgraded from wasn't unblocked?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/28/2014 10:18 AM
 

The first time I did the upgrade the zip was blocked, but I have tried the upgrade again after unblocking it and still had this issue.

Is there a separate dll for the Cryptography provider or is it within the DotNetNuke dll?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...DotNetNuke.Services.Cryptography.CryptographyProvider issue after upgrading to 7.2.2DotNetNuke.Services.Cryptography.CryptographyProvider issue after upgrading to 7.2.2


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