Tony Posts:7
 skipping stones
 |
| 05/06/2008 7:19 AM |
|
We are having a lot of difficulty trying to use the HTTP Post completion event. After a few days of troubleshooting it looks like we are not able to use a URL that is on the same webserver as our DNN site. We have tried just making a simple one question form, if the Post URL is say http://www.google.com it goes without a problem, if we change it say to the root of our site, http://www.allsup.com, for example we get a Page Load Exception error (see below for excerpt from the Event Viewer). We have tried several different URLs, both inside and outside of our DNN site, and it appears that if the URL is on the same webserver, it fails. We tried a similar setup on the betasprings site, created a one form field with a HTTP Post completion event, using betasprings for the HTTP Post URL and it worked fine there. We are stuck on what to do from here. We were hoping to use the HTTP Post event to post the form to another page we already had created to handle our form processing that was created pre-DNN that uses a different datasource than the DNN install is using.
DF Version: 02.60.30, DNN Version: 04.08.02
Info from Event Viewer:
AssemblyVersion: 04.08.02
PortalID: 4
PortalName: Allsup Consumer Site
UserID: 17
UserName: twhilliard
ActiveTabID: 453
ActiveTabName: Test
RawURL: /AboutSSDI/Test/tabid/453/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.allsup.com/AboutSSDI/Test/tabid/453/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Flypaper; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 057169c3-cf31-430c-92fa-de8008b89843
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DataSprings.Modules.DynamicForms.DynamicForms.ProcessEvents
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DataSprings.Modules.DynamicForms.DynamicForms.ProcessEvents(Boolean blnRedirectOnly, Boolean blnPaymentGateway, String strPaymentStatus, String strResponseID, Int32 intPaymentUserID) at DataSprings.Modules.DynamicForms.DynamicForms.SubmitForm(Boolean ProcessPaymentNotification, String strResponseID) at DataSprings.Modules.DynamicForms.DynamicForms.lnkSave_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: WEB01 |
|
|
|
|
Chad Posts:2207
 river guide
 |
| 05/06/2008 9:38 AM |
|
Hmmm... This is a very weird error. Does it save the URL correctly when you add/update the event? Also what version of Dynamic Forms are you running on? Is this event set to run based on 'any response'? Is there anything else that would cause your web server to not allow posts from anywhere? For example, if you setup a form post on www.betasprings.com to post to your server does it also return the error there? Maybe its posting to that page/server and not necessarily posting on the same domain? -Chad |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/06/2008 9:52 AM |
|
We are using Dynamic Forms version 02.60.30 according to the module definitions section. Yes, it is set on Any Field Response, I left that portion as the default and only modified the Post URL and Post fields. I just tried on betasprings.com having the one field form point to our site and it went through ok. Also, we had the forms initially on the DNN site using iframes, but that was causing some issues with our site tracking which is why we wanted to get them out of the iframe, however those iframes were submitting forms without an error, so it would seem that the web server is able to allow posts. |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/06/2008 9:54 AM |
|
Sorry, just realized I didn't answer one of your questions. Yes it does appear to be saving the URL and post information, in that when we go back into the settings they are there. |
|
|
|
|
Chad Posts:2207
 river guide
 |
| 05/06/2008 12:50 PM |
|
| Well I am not really sure what would cause this... when I look in this area, changing the URL to another URL is really only a few lines of code etc... Did you choose to email the results to the portal admin in the event? |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/06/2008 2:43 PM |
|
No we haven't checked that option as of yet. |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/07/2008 8:52 AM |
|
We tried checking the email admin option, it appears we only get emails sent to us when it works. We aren't getting any email when this Object Reference error occurs. The error seems to be referencing a function that deals with the payment options, but we don't have any of that turned on, is there possibly something that is trying to be checked that our server is not returning or configured to return? |
|
|
|
|
Chad Posts:2207
 river guide
 |
| 05/07/2008 9:49 AM |
|
Well that function call just includes a lot of optional parameters passed into it (in case this was returning from PayPal it has to pass that token into the function), your specific issue though isn't related to any of that though. The difference in changing the URL and it working VS changing it and it not is really limited (and this is the first instance its been reported at least). I can post the basic code here if you think that will help, and I can also try and add some additional error handling to maybe capture the specific error, but besides that I am not really sure the best scenario from here. I checked and the email to the admin is supposed to go out only after it was successfully so if its throwing an error your right you wouldn't get it. For the next patch or update I will add some additional error handling to throw back a more detailed message... I tried googling 'http post request can't post from and to same domain' but got back only limited results. Is this particular host using a Firewall? Is this a dedicated server or hosted somewhere and what is the trust set at on the site? -Chad |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/07/2008 11:58 AM |
|
We are self-hosting using a dedicated server that is behind a firewall. The trust level is at medium, we tried temporarily changing it to Full Trust, but we still got the same error. I am not sure if looking at the basic code would help, I was just trying to think of what would result in a null reference. |
|
|
|
|
Tony Posts:7
 skipping stones
 |
| 05/16/2008 4:55 AM |
|
We finally solved this issue. Turns out it was a DNS routing issue with our webserver. |
|
|
|
|
Chad Posts:2207
 river guide
 |
| 05/19/2008 4:04 PM |
|
Tony... Thanks for the follow up on this, hopefully if other users run into similar issues your post is much appreciated as those types of issues can be a real headache! -Chad |
|
|
|
|
rakesh Posts:6
 skipping stones
 |
| 07/17/2008 4:39 AM |
|
I am not able to get http post control values
Please give example |
|
|
|
|
Chad Posts:2207
 river guide
 |
|