Hello,
I'm getting crazy with this problem: I have a module control that works perfectly on my development machine, but that gives empty output on the staging server.
I defined a very simple control to serve some ajax calls for data: something like an "ajax responder" that is called with parameters to use no skin and no container, and that gives textual output. From javascript (jQuery) I use such control as my "ajax back-end ", and it works perfeclty.
But this control, installed on the staging server, does not work at all: I only get an empty page. Not an error or an empty page with the control panel (logged in as admin), like when you call a ctl parameter that's not defined: IE shows
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
The control key is correctly configured, module definition is correct, everyting appears to be the same as on my machine.... restarted both DNN and IIS, checked anything I can think of.
What could cause such a problem?
Edit: I found it to be a problem with Response.End, nothing to deal with control definition. On the staging server, if I call Response.End I always get en empty response!
Here's my code (tried both in Page_Load and Page_Init):
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Response.Clear()
Response.ClearContent()
Response.Buffer = False
Response.ContentType = "text/plain"
'some output generated here
Response.Write("Hello World")
response.flush()
Response.End()
End Sub
On my develoment machine this gives me the expected result ("Hello World"), even when I'm logged-in as admin (response.end avoids the control panel to be rendered). On my staging server, no matter the flush: response is empty. If I comment the Response.End I get the output, but off course followd by html of the control panel.
Is this related with some IIS or DNN settings? Can anybody help?
Bye,
al.