s
Contact Login Register
h M

Data Springs Modules Community Questions & Answers

Server cannot set content type after HTTP headers have been sent.

I'm getting this error when using DF to send http post to Dynamic Registration to silently register a new user. I have the "Send reply to Administrator" check box ticked and this error is being sent to my email. The registrations are working fine. But what does it mean and how do we fix it?

Server Error in '/' Application.


Server cannot set content type after HTTP headers have been sent.

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.Web.HttpException: Server cannot set content type after HTTP headers have been sent.

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:


            

            
[HttpException (0x80004005): Server cannot set content type after HTTP headers have been sent.]
 System.Web.HttpResponse.set_ContentType(String value) +12366670
 System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) +226
 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +19
 System.Web.UI.Page.ProcessRequest(HttpContext context) +99
 System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2004

            
[HttpException (0x80004005): Error executing child request for /ErrorPage.aspx.]
 System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2684
 System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +1273
 System.Web.HttpServerUtility.Transfer(String path) +146
 DotNetNuke.Framework.PageBase. (EventArgs e) +558
 System.Web.UI.Page.HandleError(Exception e) +164
 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12309527
 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12309057
 System.Web.UI.Page.ProcessRequest() +119
 System.Web.UI.Page.ProcessRequest(HttpContext context) +99
 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

 


 

asked 7/10/2015
Mark Buelsing159
Mark Buelsing
  • HI, how about creating a separate email completion event to be sent to the admin instead of using that checkbox?

    [HttpException (0x80004005): Server cannot set content type after HTTP headers have been sent.]

    I think that since the post has already been set successfully, and the email to the admin occurs afterwards, it's not able to set the content type to be included in the email? I'm not sure but it looks that way.

    david to - Chad Nash 7/17/2015

  • I'll try this suggestion when I get a chance. But maybe I will start by unchecking the "Send to Admin" checkbox and see if the errors continue to appear in the Event Manager. - Mark Buelsing 7/17/2015

1 Answer

Data spring and all related items have been done for the hosting of the items for the people. The changes of the patty is ensured in this article for the prospects of the joyful  items for the members in the field.
answered 4/13/2019 Hatfield 2
Hatfield

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...

10 inform moderator flags remaining

I am deleting this question because...

I am flagging this answer because...

10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...

Looking for a DNN Module?

If you’ve used Data Springs modules before, you know how easy they are to install and use. We have built each individual module in our collection with integration in mind, so when you opt for Collection 7.0 you’ll be able to install our entire toolbox quickly and start putting it to work for your business today.Yes, in the blink of an eye you will arrive on the scene like a Superhero!

Data Springs has long been recognized as a leader in the DotNetNuke (DNN) community through hard work, integrity, and commitment. We’ve helped thousands of people POWER UP their website and our Collection 7.0 will do the same for you.

You deserve more than just an average website. You deserve a MACHINE!

Enter your email below AND grab your spot in our big giveaway!

The winner will receive the entire Data Springs Collection 7.0 - Designed to get your website up and running like a DNN superhero (spandex not included).

Subscribe