Update (Oct 3, 2009): Thanks to the reader that pointed out that the MS Build task was using a hard-coded path. The example has been corrected to use a parameterized path that relies on the MSBuildProjectDirectory [3] reserved property.
An innocent “mistake” [1], if you can even call it that, has been punishing developers worldwide for a good part of the last decade – can you spot it?
1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>2:3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">4:5: <html xmlns="http://www.w3.org/1999/xhtml" >6: <head runat="server">7: <title></title>8: </head>9: <body>10: <form id="form1" runat="server">11: <div>12: <asp:HiddenField runat="server" ID="RecordId" />13: </div>14: </form>15: </body>16: </html>1: using System;2:3: namespace WebApplication14: {5: public partial class _Default : System.Web.UI.Page6: {7: private int recordId = 0;8:9: protected void Page_Load(object sender, EventArgs e)10: {11: Response.Write(recordId);12: }13: }14: }