XML Runtime Error

When I submit this form

http://www.quickcash123.com/vendor1/index1.php

I get the attached error.  Any thoughts on how to clear it up?
Server Error in '/xml/realtime' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

Open in new window

LVL 1
catonthecouchproductionsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RDWaibelCommented:
First off, have you tested this ON the web server to get the error?  
You could create a TRY block that traps the error and then redirects to a page that you could then display the error.
catonthecouchproductionsAuthor Commented:
Sorry I dont know what you mean. We did test this on the web server and it produced this error. It was previously on another server and worked with no errors.

When we moved it over to the quickcash server it threw this error.

Thanks,

Ryan
RDWaibelCommented:
there is a diffence in "running" on the server and running in IIS.  if you have access to the desk top of the host server, you can open the web page via "localhost" and you will see the details of the error...

however I think the better option would be to create a "errors.aspx", use the TRY block and if it errors, pass the message to "errors.aspx" and display it...  Like so...
TRY
     'Run the save code
Catch ex as exception
     response.redirect("errors.aspx?ErrText=" & ex.message
end TRY

sample "errors.aspx"
<html>
<head></head>
<body>
<div>
<% string val;
  foreach ( string name in Request.QueryString ) {
     If ( Request.QueryString[ name ] != "" ) val = Request.QueryString[ name ];
     else val = "&nbsp;"; %>
</div>
</body>
</html>
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

catonthecouchproductionsAuthor Commented:
Ah I see now.. So this page is hosted on our servers, a user fills out the form and the data is sent to another URL using CURL - working with API's

Below is the code I am using if that helps. What is weird is that it worked on another server config

Ryan
<?

if(@$_REQUEST['submit']=='submit'){


		$content ='<?xml version="1.0" ?> 
					<!DOCTYPE LeadPostResponse > 
					<LeadPostResponse>
					<Parsed>1</Parsed> 
					<LaprotocolID>538BBBBD-C266-4B44-8B00-000000C00C80</LaprotocolID> 
					<RealTime>
					<RtStatus>1</RtStatus> 
					<RtStatusDetail>Accepted</RtStatusDetail> 
					<RtClientLeadID>5656889898</RtClientLeadID> 
					<RtClientCustomResponse Description="RedirectURL">http://www.google.com</RtClientCustomResponse> 
					</RealTime>
					<Debug>
					<PostingClientIP>111.93.217.221</PostingClientIP> 
					<PostingClientType>MSIE6.0</PostingClientType> 
					<ErrorCount>0</ErrorCount> 
					<MissingCount>0</MissingCount> 
					<SSLRequired>0</SSLRequired> 
					<SSLUsed>0</SSLUsed> 
					<PublisherApproved>1</PublisherApproved> 
					<RealTimeAllowed>1</RealTimeAllowed> 
					<RealTimeUsed>1</RealTimeUsed> 
					<PublisherApprovedForRealtime>1</PublisherApprovedForRealtime> 
					<PostingURL>http://laprotocol.com/RealTimeXML</PostingURL> 
					<DataSent>
					   <Field>
					<name>PublisherUID </name> 
					 <value>'.rand().'</value> 
					</Field>
					<Field>
					<name>FirstName</name> 
					 <value>'.$_REQUEST['first_name'].'</value> 
					</Field>
					<Field>
					<name>LastName</name> 
					<value>'.$_REQUEST['last_name'].'</value> 
					</Field>
					<Field>
					<name>Address</name> 
					<value>'.$_REQUEST['Address'].'</value> 
					</Field>
					<Field>
					<name>Address Cont.</name> 
					<value>'.$_REQUEST['Apt'].'</value> 
					</Field>
					<Field>
					<name>City</name> 
					<value>'.$_REQUEST['City'].'</value> 
					</Field>
					<Field>
					<name>zip</name> 
					<value>'.$_REQUEST['zip'].'</value> 
					</Field>
					<Field>
					<name>email</name> 
					<value>'.$_REQUEST['email'].'</value> 
					</Field>
					<Field>
					<name>state</name> 
					<value>'.$_REQUEST['state'].'</value> 
					</Field>
					<Field>
					<name>phoneworkArea</name> 
					<value>'.$_REQUEST['phoneworkArea'].'</value> 
					</Field>
					<Field>
					<name>phoneworkPrefix</name> 
					<value>'.$_REQUEST['phoneworkPrefix'].'</value> 
					</Field>
					<Field>
					<name>phoneworkSuffix</name> 
					<value>'.$_REQUEST['phoneworkSuffix'].'</value> 
					</Field>
					</DataSent>
					</Debug>
					<Messages></Messages>
						</LeadPostResponse>';


$url     = "http://laprotocol.com/xml/RealTime";
$posturl = "http://laprotocol.com/xml/RealTime/default.aspx?first_name=nitesh&last_name=mal";
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $posturl);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 //curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
 //curl_setopt($ch, CURLOPT_HEADER, 1);
 curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
 curl_setopt($ch, CURLOPT_POST, 0);
 //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
 $response = curl_exec($ch);
 echo "<pre/>";
 echo $response;
echo $content;

}

?>

Open in new window

RDWaibelCommented:
I would say that step one here is to verify that CURL and it's APIs (not very familiar with CURL, sorry) are on the host server and permissions are set correctly.
Hans LangerCommented:
To see the error from OUTSIDE the server, change in the web.config the following lines:

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>


to

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
catonthecouchproductionsAuthor Commented:
will that help us eliminate the error?
RDWaibelCommented:
GERENTE's code will help you identify the error.
catonthecouchproductionsAuthor Commented:
From Go Daddy's help:

"web.config files work on our Windows servers."

This file lives on a Linux server, could that be the issue/reason for the error?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.