VS2012 build fails - by KeithGl

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 777776 Comments
Status Resolved Workarounds
Type Bug Repros 0
Opened 1/29/2013 8:36:20 AM
Access Restriction Public


The VS2012 build throws up spurious errors and warnings about unknown CSS property names or newlines in constants 

"Validation (CSS 3.0): "der-wid" is not a known CSS property name." 
from code 
<td style="border-style: none solid solid solid; border-width: thin; border-color: #C0C0C0;padding: 5px; width: 33%">


"Newline in constant"
from code
<asp:Label ID="lbDateSet" runat="server" Text='<%# "Set: " + Eval("DateSet", "{0:dd/MM/yy}")  + "&nbsp;&nbsp;" %>' />

These are reported in the error list but do not stop the build from succeeding. The code builds ok in VS2010 and does not cause any run time issues.
Sign in to post a comment.
Posted by Microsoft on 2/11/2013 at 8:17 PM
Hi, given that we have not heard back from you in these days. We will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue.
Posted by Microsoft on 2/6/2013 at 12:12 AM
I am having trouble reproducing your issue. Can you share a sample project on which you are seeing this problem?

Posted by KeithGl on 2/4/2013 at 2:08 AM
I have created a simple project:


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ErrorDemo.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <form id="form1" runat="server">
            <asp:Label ID="lbDateSet" runat="server" Text='<%# "Set: " + Eval("DateSet", "{0:dd/MM/yy}") + "  " %>' />


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ErrorDemo
    public partial class WebForm1 : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)


Error list on build:

Error    1    Newline in constant    c:\users\keithgl.hof\documents\visual studio 2012\Projects\ErrorDemo\ErrorDemo\WebForm1.aspx    12    109    ErrorDemo
Error    2    ; expected    c:\users\keithgl.hof\documents\visual studio 2012\Projects\ErrorDemo\ErrorDemo\WebForm1.aspx    12    124    ErrorDemo

This type of error occurs sporadically throughout my project as indicated in earlier query. Identical constructs elsewhere can be passed without issue. Although listed as errors, VS2012 still reports the build as succeeded and causes no issues at runtime.
Posted by Microsoft on 2/4/2013 at 1:33 AM

I am currently standing by for an update from you and would like to know how things are going on your end. If you could get back to me at your earliest convenience with information I request, we will be able to make headway towards a resolution. I look forward to hearing from you.
Posted by Microsoft on 1/29/2013 at 5:55 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 1/29/2013 at 8:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)