locked
Viewing webpage RRS feed

  • Question

  • User576587640 posted

    I have a Website on IIS7 which when I view it from the Local PC it looks fine but I alo host my own website / services and When I access it through that I get a

     

    Server Error in '/' Application.


    Runtime Error

     

    The Code for the site is;

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <style type="text/css">
    
            .style1
            {
                width: 231px;
                height: 90px;
            }
            .style2
            {
                text-align: center;
                color: #FF6600;
                font-family: "Accord SF";
            }
        </style>
    </head>
    <body>
        <div>
        
            <img alt="The Official Chuckle Brothers Website" class="style1" 
                src="images/site_logo.gif" /><span class="style1">&nbsp;&nbsp;&nbsp; </span>
            <h2 class="style2">
                Online Order Tracking.</h2>
            <hr />
        
        </div>
        <p style="font-size: small; font-family: Verdana">
            Please Enter Your Order Number....</p>
        <form id="form1" runat="server">
        <div>
        
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                DataKeyNames="OrderID" DataSourceID="AccessDataSource1" Height="50px" 
                Width="125px">
                <Fields>
                    <asp:BoundField DataField="OrderID" HeaderText="OrderID" InsertVisible="False" 
                        ReadOnly="True" SortExpression="OrderID" />
                    <asp:BoundField DataField="OrderName" HeaderText="OrderName" 
                        SortExpression="OrderName" />
                    <asp:BoundField DataField="Order Date" HeaderText="Order Date" 
                        SortExpression="Order Date" />
                    <asp:BoundField DataField="PostCode" HeaderText="PostCode" 
                        SortExpression="PostCode" />
                    <asp:BoundField DataField="OrderAddress" HeaderText="OrderAddress" 
                        SortExpression="OrderAddress" />
                    <asp:BoundField DataField="BillingAddress" HeaderText="BillingAddress" 
                        SortExpression="BillingAddress" />
                    <asp:BoundField DataField="DeliveryStatus" HeaderText="DeliveryStatus" 
                        SortExpression="DeliveryStatus" />
                    <asp:BoundField DataField="SupplierOrderNumber" 
                        HeaderText="SupplierOrderNumber" SortExpression="SupplierOrderNumber" />
                    <asp:BoundField DataField="ExpectOrderIn" HeaderText="ExpectOrderIn" 
                        SortExpression="ExpectOrderIn" />
                    <asp:BoundField DataField="Description" HeaderText="Description" 
                        SortExpression="Description" />
                </Fields>
            </asp:DetailsView>
            <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
                DataFile="/App_Data/onlineTracking.accdb" 
                SelectCommand="SELECT * FROM [CustomerDetails] WHERE ([OrderID] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="OrderID" QueryStringField="OrderId" 
                        Type="Int32" />
                </SelectParameters>
            </asp:AccessDataSource>
        
        </div>
        </form>
    </body>
    </html>
    

    Friday, December 14, 2012 1:23 PM

Answers

  • User-1404016747 posted

    Remote viewers cannot see the error.

    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".

    Do the above or better yet just copy and paste the entire page into this thread.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 14, 2012 3:58 PM

All replies

  • User197322208 posted

    what is saying after runtime error?

    Friday, December 14, 2012 2:31 PM
  • User576587640 posted

    Hi the URL is,

    http://store.thechucklebrothersontour.co.uk/Tracking/Default.aspx?OrderId=1

     

    this will display the error i am getting.

    many Thanks

    Friday, December 14, 2012 3:56 PM
  • User-1404016747 posted

    Remote viewers cannot see the error.

    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".

    Do the above or better yet just copy and paste the entire page into this thread.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 14, 2012 3:58 PM