[Mono-bugs] [Bug 700208] New: (Mono 2.10.2) Parser Error when an ASP.NET/C# page has a conditional comment enclosing a <script> tag
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jun 15 19:16:40 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=700208
https://bugzilla.novell.com/show_bug.cgi?id=700208#c0
Summary: (Mono 2.10.2) Parser Error when an ASP.NET/C# page has
a conditional comment enclosing a <script> tag
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: i386
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: perryv at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101
Firefox/4.0.1
I had an ASP.NET/C# with the following code (in Default.aspx):
================
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="test.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>Test Page</title>
<!--[if lt IE 9]><script type="text/javascript"
src="myjs.js"></script><![endif]-->
</head>
<body>
<form id="form1" runat="server">
<div>
<p>Hello, World!</p>
</div>
</form>
</body>
</html>
================
I created this ASP.NET page using Visual Studio 2010. I deployed this page to
my local IIS 7.5 server, then I loaded it on my web browser. It displayed the
page without problem.
Then, still using Visual Studio 2010, I deployed it to my Fedora 15 laptop
running Apache 2.2.17 and Mono 2.10.2 server. I used the "File System" publish
method to deploy my ASP.NET project (i.e., I deployed it to
"\\mylaptop\mywebroot\" network folder). When I loaded the page using my
browser, it displayed an error message:
================
Server Error in '/' Application
Parser Error
Description: Error parsing a resource required to service this request. Review
your source file and modify it to fix this error.
Parser Error Message: Expecting </script> and got EOF.
Source Error:
Line 4: <head runat="server">
Line 5: <title>Test</title>
Line 6: <!--[if lt IE 9]><script type="text/javascript"
src="js/html5.js"></script><![endif]-->
Line 7: </head>
Line 8: <body>
Source File: /var/www/vhosts/laptop.testmono.net/html/Test.aspx Lines: 6, 6
Version information: Mono Runtime Version: 2.10.2 (tarball Sat Apr 30 10:15:36
UTC 2011); ASP.NET Version: 4.0.30319.1
================
Reproducible: Always
Steps to Reproduce:
See Details.
Actual Results:
Server Error in '/' Application
Parser Error
Description: Error parsing a resource required to service this request. Review
your source file and modify it to fix this error.
Parser Error Message: Expecting </script> and got EOF.
Source Error:
Line 4: <head runat="server">
Line 5: <title>Test</title>
Line 6: <!--[if lt IE 9]><script type="text/javascript"
src="js/html5.js"></script><![endif]-->
Line 7: </head>
Line 8: <body>
Source File: /var/www/vhosts/laptop.testmono.net/html/Test.aspx Lines: 6, 6
Version information: Mono Runtime Version: 2.10.2 (tarball Sat Apr 30 10:15:36
UTC 2011); ASP.NET Version: 4.0.30319.1
Expected Results:
Hello World!
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list