infinate loop I’m told – page refuses to load

I have a contact page at my site:

 http://www.link-exchangers.com/contactus.aspx

 I'm told by my ISP that they could not load this page directly in IIS and that the page keeps resolving to itself. It's very strange.

I didn't program the site.  I can tell you that on my local machine when I debugged it and page would load and I made sure by refreshing.

Web.config has a key which is tested in the .vb file.

<add key="SupportDesk" value="contactus.aspx" />

here is my aspx page and code behind:

1    <%@ Page AutoEventWireup="false" CodeFile="contactus.aspx.vb" Inherits="users_contactus"
2        Language="VB" MasterPageFile="~/templates/default.master" Title="Contact Us" %>
3    <asp:Content ID="Content1" ContentPlaceHolderID="BreadCrumb" Runat="Server">
4    </asp:Content>
5    <asp:Content ID="Content2" ContentPlaceHolderID="PageHeading" Runat="Server">
6    Contact us
7    </asp:Content>
8    <asp:Content ID="Content3" ContentPlaceHolderID="PageContents" Runat="Server">
9        <asp:Panel ID="pnlForm" runat="server">
10           <asp:Label ID="lblMsg" runat="server" SkinID="error" /><br />
11          <table width="50%"><tr><td> If you have any questions or would like more specific information about any of our
12               services, please use one of the following to contact us at your convenience:
13          </td></tr></table>
14            <br /><br />
15           <table>
16               <tr valign="top">
17                   <td class="th">
18                       Name:
19                   </td>
20                   <td style="width: 188px">
21                       <asp:TextBox ID="tbName" runat="server" />
22                       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbName"
23                           ErrorMessage="Required"></asp:RequiredFieldValidator></td>
24                   <td rowspan="5" style="width: 119px">
25                       <div style="border: solid 1px #dddddd; padding:3px; background-color:#efefef;">
26                           <b><u>Advanced Membership</u></b>
27                           <br />
28                           Completely automate your link building. Monitor your link partner status. Automatically
29                           add link partners to your website. Add/Modify/Delete link page categories. Plus
30                           much more !
31                           <hr size="1" color="white" />
32                           <b><u>Featured Sites</u></b>
33                           <br />
34                           Featured websites are listed at the beginning of their selected category, and also
35                           on the homepage. Featured websites receive many more link exchange requests than
36                           a non featured website. We display five websites at a time. Each website is evenly
37                           rotated to display an equal number of times for maximum exposure.
38                       
39                       <br />
40                        <br />
41                       
42                       </div>
43                   </td>
44               </tr>
45               <tr>
46                   <td class="th">
47                       Phone:
48                   </td>
49                   <td style="width: 188px">
50                       <asp:TextBox ID="tbPhone" runat="server" />
51                   </td>
52               </tr>
53               <tr>
54                   <td class="th" style="height: 40px">
55                       Email:
56                   </td>
57                   <td style="width: 188px; height: 40px;">
58                       <asp:TextBox ID="tbEmail" runat="server" />
59                       <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbEmail"
60                           ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator>
61                       <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbEmail"
62                           ErrorMessage="Invalid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" TabIndex="1" Display="Dynamic"></asp:RegularExpressionValidator></td>
63               </tr>
64               <tr>
65                   <td colspan="2">
66                       <br />
67                       How would you like someone to contact you?
68                       <br />
69                       <asp:RadioButtonList ID="rdoContactMode" runat="server">
70                           <asp:ListItem Text="Phone" Value="phone" />
71                           <asp:ListItem Selected="true" Text="Email" Value="email" />
72                       </asp:RadioButtonList>
73                   </td>
74               </tr>
75               <tr>
76                   <td colspan="2">
77                       <br />
78                       Please detail your request:<br />
79                       <asp:TextBox ID="tbRequest" runat="server" Columns="30" Rows="10" TextMode="multiLine" />
80                       <br />
81                       <br />
82                       <asp:Button ID="btnSubmit" runat="server" Text=" Submit " />
83                   </td>
84               </tr>
85           </table>
86       </asp:Panel>
87       <asp:Panel ID="pnlMsg" runat="server" Visible="false"><b>Thank you for contacting us. Your 
88           message and information has been sent to the administrator of the site. We will
89           contact you shortly via <%=rdoContactMode.SelectedItem.Text%>. </b></asp:Panel>
90   </asp:Content>
91   

 

1    Imports BusinessLogic
2    
3    Partial Class users_contactus
4        Inherits System.Web.UI.Page
5    
6        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
7            If Not IsPostBack Then
8                If SupportDesk <> "" Then
9                    Response.Redirect(SupportDesk)
10               End If
11           End If
12       End Sub
13   
14       Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
15   
16           Dim msg As String = ""
17           msg += "The contact us information form has been submitted by a user.<br><br>"
18           msg += "Name: " & "<b>" & Me.tbName.Text & "</b><br>"
19           msg += "Phone: " & "<b>" & Me.tbPhone.Text & "</b><br>"
20           msg += "Email: " & "<b>" & Me.tbEmail.Text & "</b><br>"
21           msg += "Message / Request: " & "<b>" & Me.tbRequest.Text & "</b><br>"
22   
23           Try
24               SiteMail.SendSimpleMail(AppInfoEmail, AppInfoEmail, "Contact Us email", msg)
25               Me.pnlForm.Visible = False
26               Me.pnlMsg.Visible = True
27   
28           Catch ex As Exception
29               Me.lblMsg.text = "Mail couldn't be sent. " & ex.Message
30           End Try
31   
32       End Sub
33   
34   
35   
36   End Class

What would cause this page to not load on the server while be ok locally on my machine?

Thanks,

Scot

Read More

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s