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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error adding new handler to web.configError adding new handler to web.config
Previous
 
Next
New Post
11/9/2009 9:21 PM
 

Hello all,

Hopefully someone can help. I am trying to register a new handler for RSS feeds. Here is what I have done. We had a need to parse the english and french text, depending on the selected language of the feed requested.

Currently running 5.1.4 (full source version)

  1. Created a new project called Assomption.Handlers
  2. Added a reference to DotNetNuke Library and DotNetNuke.Services.Syndication
  3. Created a new class, RSSHandler with the Namespace Assomption.Handlers. Inherited from the same class as current RSS handler
  4. Copied the code from the current RSSHandler (included in the source) and modified the function for what I needed
  5. Compiled the project, everything compiled fine
  6. Added a reference in my localhost/dotnetnuke_ce project to Assomption.Handlers
  7. Added the following to web.config, <httpHandlers> section <add verb="*" path="RSS.aspx" type="Assomption.Handlers.RssHandler, Assomption.Handlers" />
  8. Added the following to web.config, <handlers><add name="RSSHandler" path="RSS.aspx" verb="*" type="Assomption.Handlers.RssHandler, Assomption.Handlers" preCondition="runtimeVersionv2.0" />

Everytime I run it, I get the following error. Any help is greatly appreciated as this is critical for a project that I am currently working on.

Server Error in '/DotNetNuke_CE' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'Assomption.Handlers.RssHandler' from assembly 'Assomption.Handlers'.

Source Error:

Line 128:      <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke" />
Line 129:      <!-- This adds syndication support -->
Line 130:      <add verb="*" path="RSS.aspx" type="Assomption.Handlers.RssHandler, Assomption.Handlers" /> Line 131:      <!-- This adds legacy support for the Logoff page -->
Line 132:      <add verb="*" path="Logoff.aspx" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" />

Source File: C:\DotNetNuke_Community_05.01.00_Source\Website\web.config    Line: 130


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.4028

 

 
New Post
11/10/2009 8:01 AM
 

Well, the message means that .net " Could not load type 'Assomption.Handlers.RssHandler' from assembly 'Assomption.Handlers'." So, the file Assomption.Handlers.dll will probably be in the bin folder, but it doesn't contain the type Assomption.Handlers.RssHandler.

Use Reflector (or even the object browser to verify the real, fully qualified name of the class. My bet is, that there's something different from what you intended there.

 


Web applications, DNN websites, modules, skins and support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error adding new handler to web.configError adding new handler to web.config


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