Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsLinksLinksLink to file on Site crashLink to file on Site crash
Previous
 
Next
New Post
4/16/2014 4:48 PM
 

I installed Links 6.2.3 on DNN 7.2.2 and if I link to a URL or Page I have no issues but linking to a file onsite it returns this error:

Error: Links is currently unavailable. 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.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey) at DotNetNuke.Common.Globals.LinkClick(String Link, Int32 TabID, Int32 ModuleID, Boolean TrackClicks, Boolean ForceDownload, Int32 PortalId, Boolean EnableUrlLanguage, String portalGuid) at DotNetNuke.Common.Globals.LinkClick(String Link, Int32 TabID, Int32 ModuleID, Boolean TrackClicks, Boolean ForceDownload) at DotNetNuke.Common.Globals.LinkClick(String Link, Int32 TabID, Int32 ModuleID, Boolean TrackClicks) at ASP.desktopmodules_links_links_ascx.__DataBinding__control9(Object sender, EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at DotNetNuke.Modules.Links.Links.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 

 
New Post
4/16/2014 10:25 PM
 

Do you have the same issue if you create a link to a file in the HTML module editor and specify that the link be a relative or absolute secured url which will also use the LinkClick handler?

Also, on a hunch that I have as to the cause of the issue, please check the site's web.config to see if the following section is present:

<cryptography defaultProvider="CoreCryptographyProvider">

      <providers>

        <clear />

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

      </providers>

    </cryptography>

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/17/2014 12:27 PM
 

Thank you for responding.

If I use an HTML module to create links to files on the site there is not issues. The issue only happens in the Links module.

I looked in the web.config file for the code and found none. Where should it be inserted?

Thanks

 
New Post
4/17/2014 10:38 PM
 

I'm surprised that the test of creating a secure link to a site file in the HTML editor did not produce a similar error but provided that you are sure that the DNN installation is running version 7.2.2 (or 7.2.1), the cryptography sections introduced in v 7.2.1 should have been automatically merged into web.config during an upgrade from an earlier version or on a new install of 7.2.1 or 7.2.2.

If you have superuser (host) access to the website you can use the Host --> Configuration Manager to merge these changes into the existing web.config file:

1. Verify that the site's root folder has been granted full file system permissions (including modify) for the ASP.Net worker process account (IIS Identity account) and that the web.config file is not marked as read-only.

2. Locate the file 07.02.01.config in either the site's Install/Config/ folder or in the same folder of a newly downloaded and extracted DNN 07.02.01 or 07.02.01 install or update package. Place the file on your local computer were you can easily find it during the next step.

3. Open the Host --> Configuration Manager and select the Merge Scripts tab.

4. Click on the Select File button and select the 07.02.01.config file residing on your local computer.

5. Click on the Upload button. The merge script for the cryptography sections will appear in the editing window.

6. Without making any changes to the merge script, click the Execute Script button.

7. The changes should be merged into web.config and the site's application pool will take 20-30 seconds to recycle.

8. Test to see if this has resolved the issue. Most likely you will need to recreate the links.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/23/2014 10:20 AM
 

Bill thanks for the help. merged the two files and now the Links module is working correctly.

Thanks again.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsLinksLinksLink to file on Site crashLink to file on Site crash


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