Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I uploaded my published files in the Domain it showing the error like this
this is my file Default.aspx..how to solve it plz help me..It is occured only when i hosted my website


C#
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HA.Web.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="Inc/CSS/slideshow/imgslide.js" type="text/javascript"></script>
    <link href="Inc/CSS/slideshow/slidecontrole.css" rel="stylesheet" type="text/css" />


    <link href="Inc/CSS/bancss/banner.css" rel="stylesheet"  type="text/css" media="screen" charset="utf-8"/>
    <script src="Inc/CSS/bancss/jquery-1.2.6.js" type="text/javascript"></script>
    
    <script src="Inc/CSS/bancss/startstop-slider.js" type="text/javascript"></script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">






This is my master page

C#
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="HA.Web.SiteMaster" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1"  runat="server">
    <title></title>
     
    <link href="Inc/CSS/menustyle.css" rel="stylesheet" type="text/css" />
    <script src="Inc/JS/script.js" type="text/javascript"></script>
   
    <link href="Inc/CSS/tabmenu.css" rel="stylesheet" type="text/css" />
    <script src="Inc/JS/tabcontent.js" type="text/javascript"></script>

   
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    
</head>
<body>
    <form id="Form1"  runat="server">
    <ajax:ToolkitScriptManager ID="ToolkitScriptManager1"  runat="server">

<ajax:toolkitscriptmanager xmlns:ajax="#unknown">
</form>
</body>
</html></ajax:toolkitscriptmanager>
Posted
Updated 17-Oct-13 0:36am
v7
Comments
Member 9492907 3-Jun-13 6:45am    
It is occured only when i hosted my website

1 solution

In the HTML you posted no where you are closing asp:ContentPlaceHolder

Also ajax:toolkitscriptmanager is closed outsite the html tag. this is not the proper way. It should be declared like given below -

C#
<ajax:toolkitscriptmanager xmlns:ajax="#unknown"></ajax:toolkitscriptmanager>


Additional ajax toolkit scriptmanager is declared which .net will not allow.

Clear all the issues and try to run the page again
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900