2012-02-25 3 views
0

왜이 오류가 발생하는지 알 수 없습니다. 실제로 컨텐츠 위치 보유자는 올바른 위치에 배치됩니다. 전에는 웹 서버에서 볼 수 있었지만 지금은이 오류가 발생했지만 문제는 웹이 오류없이 내 로컬 컴퓨터에서 원활하게 실행되고 있다는 것입니다.서버에서 Asp.NET 콘텐츠 자리 표시 자 오류가 발생합니다.

여기 내 sitemaster 코드입니다.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="Site" %> 
<!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" xmlns:v="urn:schemas-microsoft-com:vml"> 

    <head> 
    <title>Manila Teachers'</title> 


<link rel="shortcut icon" href="images/wrench84watermark.png"/> 
<script type="text/javascript"> 
var GB_ROOT_DIR = "./assets/greybox/"; 
</script> 
<script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script> 
<script type="text/javascript" src="scripts/jquery.ie6blocker.js"></script> 
<script type="text/javascript" src="assets/greybox/AJS.js"></script> 
<script type="text/javascript" src="assets/greybox/AJS_fx.js"></script> 
<script type="text/javascript" src="assets/greybox/gb_scripts.js"></script> 
<link rel="Stylesheet" type="text/css" href="assets/greybox/gb_styles.css" /> 
<script type="text/javascript" src="scripts/jquery-1.4.2.js"></script> 
<script type="text/javascript" src="scripts/coin-slider.min.js"></script> 
<link rel="stylesheet" type="text/css" href="css/StyleSheet.css" /> 
<link rel="stylesheet" href="css/coin-slider-styles.css" type="text/css" /> 
<style type="text/css"> 
v\:* { behavior:url(#default#VML); } 
</style> 
<style type="text/css"> 
iframe { 
overflow-x: hidden; 
} 
</style> 
<style type="text/css"> 
a { 
    outline: none; 
} 
a img { 
    border:none; 
} 
    .style1 
    { 
     text-align: left; 
    } 
</style> 
<script type="text/javascript"> 
if (window.XMLHttpRequest) 
    {// code for IE7+, Firefox, Chrome, Opera, Safari 
    xmlhttp=new XMLHttpRequest(); 
    } 
else 
    {// code for IE6, IE5 
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    } 
xmlhttp.open("GET","xmlFiles/feedbacks.xml",false); 
xmlhttp.send(); 
xmlDoc=xmlhttp.responseXML; 

x=xmlDoc.getElementsByTagName("FEEDBACK"); 
i=0; 

function displayFeedback() 
{ 
numero=(x[i].getElementsByTagName("NUMBER") [0].childNodes[0].nodeValue); 
description=(x[i].getElementsByTagName("DESCRIPTION")[0].childNodes[0].nodeValue); 
author=(x[i].getElementsByTagName("NAME")[0].childNodes[0].nodeValue); 
profile=(x[i].getElementsByTagName("PROFILE")[0].childNodes[0].nodeValue); 
txt="<center><img src='images/headerfeed.jpg'></center>"+"<br />Feedback#" + numero+ "<br /><br/><b>Message:</b> " + "<br/><br/>"+description + "<br /><br/><b>Name:</b>&nbsp;&nbsp; " + "<u>"+author +"</u>"+ "<br /><b>Profile:</b>&nbsp;&nbsp; "+"<u>"+ profile+ "</u>"; 
document.getElementById("showFB").innerHTML=txt; 
} 
function next() 
{ 
if (i<x.length-1) 
    { 
    i++; 
    displayFeedback(); 
    } 
} 

function previous() 
{ 
if (i>0) 
    { 
    i--; 
    displayFeedback(); 
    } 
} 

</script> 

</head> 
<body onload="displayFeedback()" > 


<div id="top"></div> 


<div id="wrapper"> 

<div id="header"> 
<img src="images/mt2.jpg" alt="banner" width = "100%" height= "100%" /> 
</div> 

<div id="top-menu" class="funtext"> 
<ul id="menu"> 
<li><a href="Default.aspx">Home</a></li> 
<li><a href ="About.aspx">About Us</a></li> 
<li><a href = "">Products</a></li> 
<li> <a href ="Contact.aspx">Contact Us</a> </li> 
</ul> 
</div> 


<asp:ContentPlaceHolder id="Content" runat="server"> 
<div id="mainContent"></div> 
</asp:ContentPlaceHolder> 
<div class="horizontalRule"></div> 
     <div id="footer-menu"> 
     <a href="Default.aspx" class="myLink">Home</a> 
     &nbsp; &nbsp; 
     <a href="About.aspx" class="myLink">About Us</a> 
      &nbsp; &nbsp;<a class="myLink" href="Careers.aspx">Careers</a> &nbsp; &nbsp;<a class="myLink" href="news.aspx" >News</a> &nbsp; &nbsp;<a class="myLink" href="Privacy.aspx">Privacy Policy</a> &nbsp; &nbsp;<a class="myLink" href="Terms.aspx">Terms of Use</a> 
     </div>  

<hr style ="color:#CCCCCC;" />  



<div id="footer"> 

@ 2012 All Rights Reserved. 
    <br /><br /> 
This website is best viewed on Internet Explorer 7 or above, Mozilla Firefox and Safari Browsers. 

</div> 

    <div class="clear"></div> 
</body> 
</html> 

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: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

Line 110: Line 111: Line 112: Line 113: Line 114:

Source File: /Site.master Line: 112

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

내 web.config 파일

<?xml version="1.0"?> 
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use 
    the Website->Asp.Net Configuration option in Visual Studio. 
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
--> 
<configuration> 
    <configSections> 
     <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
       <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
       <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> 
        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
       </sectionGroup> 
      </sectionGroup> 
     </sectionGroup> 
    </configSections> 

    <system.web> 
     <httpRuntime enableHeaderChecking="true" /> 
     <customErrors mode="Off" defaultRedirect="Oops.aspx"> 
      <error statusCode="404" redirect="Oops.aspx" /> 
     </customErrors> 
    <!-- 
      Set compilation debug="true" to insert debugging 
      symbols into the compiled page. Because this 
      affects performance, set this value to true only 
      during development. 
     --> 
    <compilation debug="true"> 
     <assemblies> 
     <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
     <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
     </assemblies> 
    </compilation> 
    <!-- 
      The <authentication> section enables configuration 
      of the security authentication mode used by 
      ASP.NET to identify an incoming user. 
     --> 
    <authentication mode="Windows" /> 
    <!-- 
      The <customErrors> section enables configuration 
      of what to do if/when an unhandled error occurs 
      during the execution of a request. Specifically, 
      it enables developers to configure html error pages 
      to be displayed in place of a error stack trace. 

     <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 
      <error statusCode="403" redirect="NoAccess.htm" /> 
      <error statusCode="404" redirect="FileNotFound.htm" /> 
     </customErrors> 
     --> 
    <pages> 

     <controls> 
     <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     </controls> 
    </pages> 
    <httpHandlers> 
     <remove verb="*" path="*.asmx" /> 
     <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
     <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" /> 
    </httpHandlers> 
    <httpModules> 
     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </httpModules> 
    </system.web> 
    <system.codedom> 
    <compilers> 
     <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     <providerOption name="CompilerVersion" value="v3.5" /> 
     <providerOption name="WarnAsError" value="false" /> 
     </compiler> 
     <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     <providerOption name="CompilerVersion" value="v3.5" /> 
     <providerOption name="OptionInfer" value="true" /> 
     <providerOption name="WarnAsError" value="false" /> 
     </compiler> 
    </compilers> 
    </system.codedom> 
    <!-- 
     The system.webServer section is required for running ASP.NET AJAX under Internet 
     Information Services 7.0. It is not necessary for previous version of IIS. 
    --> 
    <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
     <remove name="ScriptModule" /> 
     <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </modules> 
    <handlers> 
     <remove name="WebServiceHandlerFactory-Integrated" /> 
     <remove name="ScriptHandlerFactory" /> 
     <remove name="ScriptHandlerFactoryAppServices" /> 
     <remove name="ScriptResource" /> 
     <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
     <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </handlers> 
    </system.webServer> 
<runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
     <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
     </dependentAssembly> 
     <dependentAssembly> 
     <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
     </dependentAssembly> 
    </assemblyBinding> 
    </runtime> 
    <appSettings> 
     <add key="googlemaps.subgurim.net" value="AIzaSyAcp1BPyW4rV8NTn9iqgzhQLOE2eaE_sVI" /> 
    </appSettings> 
</configuration> 
+1

서버 측 코드를 게시 할 수 있습니까? 오류는 html이 아닌 112 행에서 오류가 발생했다는 것을 알려주고 있습니다. 또한 웹 서버가 .net 4.0을 실행하고 사이트가 3.5로 컴파일 된 것을 확인할 수 있습니다. 그게 문제가되는지는 모르겠지만 그냥 던지기 만하면됩니다. 라인 110 : – Induster

+0

여기서 에러를 생성하는 코드 선 111 : 선 112 : 선 113 :

선 114 : Dhenn

+0

다음과 같이 시도하십시오 : '

' – Mubarek

답변

0

에서 제거합니다.

<script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script> 
<script type="text/javascript" src="scripts/jquery-1.4.2.js"></script> 

하나만 남겨 두십시오.

+0

나는 그것이 해결책이 아니라고 생각하고 오류가 있는지 확인하자. – Dhenn

+0

@Dhenn 아마도 예.하지만 시작일 것입니다. 명백한 버그입니다. – Aristos

0

당신이 당신의 마스터 페이지 구문에 실수를하고있는 당신의 web.conifg 파일에 오류가 없습니다. 제거하려면 다음 코드를 사용하십시오. 나는 그 파일을 가지고 있지 않기 때문에 귀하의 링크 등을 제외 시켰습니다. 사용이 코드는이 문제 난 당신이 jQuery를 두 번 포함한다는 것입니다 볼 수있는 버그에

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %> 

<!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> 
    <asp:ContentPlaceHolder id="head" runat="server"> 
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
     <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> 
     <div id="top"></div> 


<div id="wrapper"> 

<div id="header"> 
<img src="images/mt2.jpg" alt="banner" width = "100%" height= "100%" /> 
</div> 

<div id="top-menu" class="funtext"> 
<ul id="menu"> 
<li><a href="Default.aspx">Home</a></li> 
<li><a href ="About.aspx">About Us</a></li> 
<li><a href = "">Products</a></li> 
<li> <a href ="Contact.aspx">Contact Us</a> </li> 
</ul> 
</div> 


<asp:ContentPlaceHolder id="Content" runat="server"> 
<div id="mainContent"></div> 
</asp:ContentPlaceHolder> 
<div class="horizontalRule"></div> 
     <div id="footer-menu"> 
     <a href="Default.aspx" class="myLink">Home</a> 
     &nbsp; &nbsp; 
     <a href="About.aspx" class="myLink">About Us</a> 
      &nbsp; &nbsp;<a class="myLink" href="Careers.aspx">Careers</a> &nbsp; &nbsp;<a class="myLink" href="news.aspx" >News</a> &nbsp; &nbsp;<a class="myLink" href="Privacy.aspx">Privacy Policy</a> &nbsp; &nbsp;<a class="myLink" href="Terms.aspx">Terms of Use</a> 
     </div>  

<hr style ="color:#CCCCCC;" />  



<div id="footer"> 

@ 2012 All Rights Reserved. 
    <br /><br /> 
This website is best viewed on Internet Explorer 7 or above, Mozilla Firefox and Safari Browsers. 

</div> 

    <div class="clear"></div> 
     </asp:ContentPlaceHolder> 
    </div> 
    </form> 
</body> 
</html> 
+0

그것은 작동하지 않습니다 .. 내 메뉴 꼬리말 및 기타 요소를 정적 싶습니다 및 콘텐츠 위치 보유자에 콘텐츠를 배치합니다. 그것은 내 localmachine 일하고 있었지만 웹 서버에 않습니다. – Dhenn

+0

내게 전체 보내기 내 아이디 [email protected]에 대한 프로젝트는 왜 당신이 오류 –