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...Using Modules a...Using Modules a...How to implement Generic Handler?How to implement Generic Handler?
Previous
 
Next
New Post
8/29/2016 8:28 AM
 

Hello!

I have created a Generic Handler using Studio 2012. I'm able to call it on my local machine. When I move it up to my IIS 8.5 server I'm getting a message saying "An Internal Server Error has occurred" The event viewer lists the error code as 1310.

To deploy I'm going to my project folder and copying TestHandler.ashx and TestHandler.ashx.cs and placing them in the root folder. This folder contains all of the files that run the DotNetNuke 8.0 CMS system. It is not clear to me if DotNetNuke is interfering, or there are additional files to copy, but I've read there is no need to register an ashx with web.config.

I have not added custom code to the TestHandler yet.  Thanks in advance!

public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        context.Response.Write("Hello World");
    }
 
New Post
8/29/2016 3:49 PM
 

The Microsoft documentation states that a Generic Http Handler will compile at runtime, like an aspx page. 

For some reason I took the dll from my local machine, uploaded it on the server and now the ashx is working.

Strange.

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How to implement Generic Handler?How to implement Generic Handler?


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