|
|
tubang
发表于 2010-9-1 10:27:03
|
显示全部楼层
帮主啊,, 给我看了没有啊。。。 邮件有新的回复
Dear Jecky,
Thank you for your reply. The error that you are receiving is a generic error for your hosting account.
By default, our Windows hosting servers display a generic error when any .NET application generates an exception. We display a generic error because the detailed error messages allow a malicious user to obtain sensitive information.
To troubleshoot the error, you can modify your web.config file and specify that a custom error message displays. A custom error message helps you to locate the specific code that is causing the issue.
CAUTION: The code samples we provide below do not constitute a complete web.config file. Do not replace your existing web.config file with the code we provide. Before changing your web.config file, we recommend creating a backup.
Displaying Custom Error Messages / Enabling Detailed Errors on IIS 7
Use the sample code below to display custom error messages on IIS 7:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
If you are unable to use a custom form mailer, you may consider using a default form mailer for your hosting account.
Two form mailers are included with new Windows shared hosting accounts: webformmailer.asp and gdform.php. To use a form mailer, create a Web form in HTML that links to one of our scripts and upload it to your hosting account.
NOTE: Do not use test@test.com to test your form mailer.
WARNING: The gdform.asp and gdform.php files cannot be recovered if they are deleted.
The form mailers are not installed until you specify the email address you want to use with the form mailer in your account manager. For more information, see Specifying an Email Address for the ASP Form-Mailer.
webformmailer.asp
To Use webformmailer.asp
Create a Web form, assigning unique names to your form fields.
In the form tag, assign _gdForm/webformmailer.asp to the action attribute and set the form method to post:
<form action="_gdForm/webformmailer.asp" method="post">
In addition to the form fields you create, there are three hidden elements you can use.
form_format determines in what format the information is delivered. Its values are 'text', 'csv', 'html', 'xml', and 'default' (same as 'text').
form_order dictates in what order the fields are reported. Its values are 'default' (the same order as they appear on in the form), 'alpha' (alphabetized by field name) or a comma-separated, case-sensitive list of all or some field names.
form_interval determines the frequency and packaging of delivery. To receive one email per form submission, the form_interval values are 'default' (every 10 minutes), 'hourly', and 'daily'. To specify when the attached submissions are received, the form_interval values are 'digest', 'hourly_digest', and 'daily_digest'.
For example:
<form action="_gdForm/webformmailer.asp" method=" OST">
<input type="hidden" name="subject" value="Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
First Name: <input type="text" name="FirstName" />
Last Name :<input type="text" name="LastName" />
Email: <input type="text" name="email" />
Comments: <textarea name="comments" cols="40" rows="10">
Type comments here.</textarea>
<input type="submit" name="submit" value="submit"/>
<input type="hidden" name="form_order" value="alpha"/>
<input type="hidden" name="form_interval" value="hourly"/>
<input type="hidden" name="form_format" value="html"/>
</form>
NOTE: The webformmailer.asp file is accessed through a virtual directory. You cannot modify the file, and it does not display in the file manager.
gdform.php
Only Windows accounts running IIS7 can use gdform.php.
To Use gdform.php
Create your Web form as normal and assign unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
For the form action line, enter /gdform.php. For example:
<form action="/gdform.php" method="post">
Set the form method to "post."
In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form.
Email. Controls the return address for the form email.
For example:
<form action="/gdform.php" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
<p>First Name:<input type="text" name="FirstName" /></p>
<p>Last Name:<input type="text" name="LastName" /></p>
<p>E-Mail:<input type="text" name="email" /></p>
<p>Comments:<textarea name="comments" cols="40" rows="10">
Type comments here.</textarea></p>
<input type="submit" name="submit" value="submit"/>
</form>
Save and upload your file to your hosting account.
gdform.asp
To Use gdform.asp
WARNING: As of October 29th, 2008, gdform.asp is no longer offered on Windows shared hosting accounts. If your account does not have gdform.asp, these instructions will not work.
Create your Web form as normal and assign unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
For the form action line, enter gdform.asp. For example:
<form action="gdform.asp" method="post">
Set the form method to "post."
In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form. If the page exists off your hosting root, the subdirectory must be specified.
Email. Controls the return address for the form email.
For example:
<form action="gdform.asp" method="post">
<input type="hidden" name="subject" value="Form Submission" />
'This example assumes thankyou.html resides in the hosting
'account root directory.
'The appropriate path must be supplied if the file
'exists in a subdirectory.
<input type="hidden" name="redirect" value="thankyou.html" />
<p>First Name:<input type="text" name="FirstName" /></p>
<p>Last Name:<input type="text" name="LastName" /></p>
<p>E-Mail:<input type="text" name="email" /></p>
<p>Comments:<textarea name="comments" cols="40" rows="10">
Type comments here.</textarea></p>
<input type="submit" name="submit" value="submit"/>
</form>
Save and upload your file to your hosting account.
NOTE: Your file and gdform.asp need to be placed in the same directory of your hosting account in order for the form to properly function. If the directory in which they reside is off your hosting account root, you must provide the complete confirmation page path in your code.
For information on reinstalling your default scripts, see Reinstalling the Default Scripts Directory on Windows Shared Hosting.
To assist us in pinpointing the source of this issue we ask that you provide us with the results of a "trace route" from a location that is not able to connect to your site. A trace route shows that path that a connection takes from your computer to a website, or another computer.
If you are using the Windows operating system, follow these steps to get the trace route results:
• From your Start Menu, go to " rograms", then to "Accessories".
• Here you will find either "MS-DOS Prompt" or "Command Prompt".
• Click on that program and a window should appear with some information regarding your version of windows and a prompt. The prompt should be similar to the following:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS>
NOTE: The command prompt window may show different text than the above. However, that will not affect this process.
At the prompt, enter the following:
tracert evnglab.com
After typing this press ENTER, you will get back a long list of information, and it will return to the original prompt you started with. To copy the results, right click on the menu bar of this window, go to "Edit" and select "Mark". Starting at the upper left-hand corner of the command prompt window, highlight the full contents of the trace results. Once you have it all highlighted, press the ENTER key on your keyboard. This will put the highlighted information into your Windows clipboard, allowing you to paste that into a text file to attach to your response.
If you are using Macintosh OSX, you can use an application called Terminal to run a trace route. You should be able to locate Terminal in your hard drive in the Utilities folder, under Applications.
NOTE: Terminal uses a command-line inte**ce. This means you'll be entering commands at a prompt rather than using the more familiar Aqua graphic inte**ce.
Once you have launched Terminal, enter the following to run the trace route:
traceroute evnglab.com
Once this has completed, highlight the contents of the Terminal window. Click on the "Edit" menu and select "Copy". You can then paste this information into a text file, which you would then attach to your response.
We understand that this is quite a few steps; however this will allow us to further research the problem you are experiencing. We appreciate your assistance in tracking down the source of this problem.
Please let us know if we can help you in any other way.
Sincerely,
Christian P.
Online Support Team :L |
|