Solved

The XML page cannot be displayed.  Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

Posted on 2008-06-17
1
3,046 Views
Last Modified: 2013-11-26
I am usingVisual Studio 2008 - Web Developer

On my local machine I have created a web page and I am currently testing deployment from my PC (not a seperate web server).  

My steps so far:
Build: Publish Web Site
Target Location: c:\CompiledSite

After publishing I copied the path C:\CompiledSite\Order_Entry.aspx into Internet explorer, but I am getting an XML error (see below).  My knowledge level in web development is low so I need some help resolving this issue.

Thanks for yor help.

Error -

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'file:///C:/CompiledSite/Order_Entry.aspx'. Line 1...

<%@ page language="VB" autoeventwireup="false" inherits="Order_Entry, App_Web_bexbkqbc" %>
-^
 

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Order_Entry.aspx.vb" Inherits="Order_Entry" %>
 
<!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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        Order Entry</div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="orderID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:CommandField ShowEditButton="True" />
            <asp:BoundField DataField="orderID" HeaderText="orderID" ReadOnly="True" 
                SortExpression="orderID" />
            <asp:BoundField DataField="timeSubmitted" HeaderText="timeSubmitted" 
                SortExpression="timeSubmitted" />
            <asp:BoundField DataField="repId" HeaderText="repId" SortExpression="repId" />
            <asp:BoundField DataField="salesRep" HeaderText="salesRep" 
                SortExpression="salesRep" />
            <asp:BoundField DataField="customer" HeaderText="customer" 
                SortExpression="customer" />
            <asp:BoundField DataField="address" HeaderText="address" 
                SortExpression="address" />
            <asp:TemplateField HeaderText="model" SortExpression="model">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("model") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="SqlDataSource2" DataTextField="model" DataValueField="model" 
                        SelectedValue='<%# Bind("model") %>'>
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConflictDetection="CompareAllValues" 
        ConnectionString="<%$ ConnectionStrings:IMSonlineConnectionString %>" 
        DeleteCommand="DELETE FROM [tblOrders] WHERE [orderID] = @original_orderID AND [timeSubmitted] = @original_timeSubmitted AND [repId] = @original_repId AND [salesRep] = @original_salesRep AND [customer] = @original_customer AND [address] = @original_address AND [model] = @original_model" 
        InsertCommand="INSERT INTO [tblOrders] ([orderID], [timeSubmitted], [repId], [salesRep], [customer], [address], [model]) VALUES (@orderID, @timeSubmitted, @repId, @salesRep, @customer, @address, @model)" 
        OldValuesParameterFormatString="original_{0}" 
        SelectCommand="SELECT * FROM [tblOrders]" 
        UpdateCommand="UPDATE [tblOrders] SET [timeSubmitted] = @timeSubmitted, [repId] = @repId, [salesRep] = @salesRep, [customer] = @customer, [address] = @address, [model] = @model WHERE [orderID] = @original_orderID AND [timeSubmitted] = @original_timeSubmitted AND [repId] = @original_repId AND [salesRep] = @original_salesRep AND [customer] = @original_customer AND [address] = @original_address AND [model] = @original_model">
        <DeleteParameters>
            <asp:Parameter Name="original_orderID" Type="Int32" />
            <asp:Parameter Name="original_timeSubmitted" Type="DateTime" />
            <asp:Parameter Name="original_repId" Type="Int32" />
            <asp:Parameter Name="original_salesRep" Type="String" />
            <asp:Parameter Name="original_customer" Type="String" />
            <asp:Parameter Name="original_address" Type="String" />
            <asp:Parameter Name="original_model" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="timeSubmitted" Type="DateTime" />
            <asp:Parameter Name="repId" Type="Int32" />
            <asp:Parameter Name="salesRep" Type="String" />
            <asp:Parameter Name="customer" Type="String" />
            <asp:Parameter Name="address" Type="String" />
            <asp:Parameter Name="model" Type="String" />
            <asp:Parameter Name="original_orderID" Type="Int32" />
            <asp:Parameter Name="original_timeSubmitted" Type="DateTime" />
            <asp:Parameter Name="original_repId" Type="Int32" />
            <asp:Parameter Name="original_salesRep" Type="String" />
            <asp:Parameter Name="original_customer" Type="String" />
            <asp:Parameter Name="original_address" Type="String" />
            <asp:Parameter Name="original_model" Type="String" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="orderID" Type="Int32" />
            <asp:Parameter Name="timeSubmitted" Type="DateTime" />
            <asp:Parameter Name="repId" Type="Int32" />
            <asp:Parameter Name="salesRep" Type="String" />
            <asp:Parameter Name="customer" Type="String" />
            <asp:Parameter Name="address" Type="String" />
            <asp:Parameter Name="model" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:IMSonlineConnectionString %>" 
        SelectCommand="SELECT DISTINCT [model] FROM [tblEquipment]">
    </asp:SqlDataSource>
    <asp:FormView ID="FormView1" runat="server" DataKeyNames="orderID" 
        DataSourceID="SqlDataSource1">
        <EditItemTemplate>
            orderID:
            <asp:Label ID="orderIDLabel1" runat="server" Text='<%# Eval("orderID") %>' />
            <br />
            timeSubmitted:
            <asp:TextBox ID="timeSubmittedTextBox" runat="server" 
                Text='<%# Bind("timeSubmitted") %>' />
            <br />
            repId:
            <asp:TextBox ID="repIdTextBox" runat="server" Text='<%# Bind("repId") %>' />
            <br />
            salesRep:
            <asp:TextBox ID="salesRepTextBox" runat="server" 
                Text='<%# Bind("salesRep") %>' />
            <br />
            customer:
            <asp:TextBox ID="customerTextBox" runat="server" 
                Text='<%# Bind("customer") %>' />
            <br />
            address:
            <asp:TextBox ID="addressTextBox" runat="server" Text='<%# Bind("address") %>' />
            <br />
            model:
            <asp:DropDownList ID="DropDownList3" runat="server" 
                DataSourceID="SqlDataSource2" DataTextField="model" DataValueField="model" 
                SelectedValue='<%# Bind("model") %>'>
            </asp:DropDownList>
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                CommandName="Update" Text="Update" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancel" />
        </EditItemTemplate>
        <InsertItemTemplate>
            orderID:
            <asp:TextBox ID="orderIDTextBox" runat="server" Text='<%# Bind("orderID") %>' />
            <br />
            timeSubmitted:
            <asp:TextBox ID="timeSubmittedTextBox" runat="server" 
                Text='<%# Bind("timeSubmitted") %>' />
            <br />
            repId:
            <asp:TextBox ID="repIdTextBox" runat="server" 
                Text='<%# Bind("repId") %>' />
            <br />
            salesRep:
            <asp:TextBox ID="salesRepTextBox" runat="server" 
                Text='<%# Bind("salesRep") %>' />
            <br />
            customer:
            <asp:TextBox ID="customerTextBox" runat="server" 
                Text='<%# Bind("customer") %>' />
            <br />
            address:
            <asp:TextBox ID="addressTextBox" runat="server" Text='<%# Bind("address") %>' />
            <br />
            model:
            <asp:TextBox ID="modelTextBox" runat="server" Text='<%# Bind("model") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insert" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancel" />
        </InsertItemTemplate>
        <ItemTemplate>
            orderID:
            <asp:Label ID="orderIDLabel" runat="server" Text='<%# Eval("orderID") %>' />
            <br />
            timeSubmitted:
            <asp:Label ID="timeSubmittedLabel" runat="server" 
                Text='<%# Bind("timeSubmitted") %>' />
            <br />
            repId:
            <asp:Label ID="repIdLabel" runat="server" Text='<%# Bind("repId") %>' />
            <br />
            salesRep:
            <asp:Label ID="salesRepLabel" runat="server" Text='<%# Bind("salesRep") %>' />
            <br />
            customer:
            <asp:Label ID="customerLabel" runat="server" Text='<%# Bind("customer") %>' />
            <br />
            address:
            <asp:Label ID="addressLabel" runat="server" Text='<%# Bind("address") %>' />
            <br />
            model:
            <asp:DropDownList ID="DropDownList2" runat="server" 
                DataSourceID="SqlDataSource2" DataTextField="model" DataValueField="model" 
                SelectedValue='<%# Bind("model") %>'>
            </asp:DropDownList>
            <br />
            <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
                CommandName="Edit" Text="Edit" />
            &nbsp;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" 
                CommandName="Delete" Text="Delete" />
            &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                CommandName="New" onclick="NewButton_Click" Text="New" />
        </ItemTemplate>
    </asp:FormView>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </form>
</body>
</html>

Open in new window

0
Comment
Question by:toddpotter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
Zippit earned 500 total points
ID: 21802074
You need to publish a virtual directory or website using the directory where you published your files.  Then, in your browser you should point to the web URL, NOT the file location on your local harddrive.  For example, it should be something like the following that you copy into your browser:

http:\\localhost\mysite\Order_Entry.aspx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reactjs with .NET 3 78
ModalPopup  question 22 39
Create PowerShell 2-Dimensional Array From XML Configuration File 6 33
Set arraylist as datatable 2 10
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question