Hello, I've noticed an issue with the Northwind application in
SharpArchitecture 1.0 rc2 (SharpArchitecture_1.0.48.410_RC2) so I'm
posting the changes I needed to make to get it working here.
When you run the application you get a
System.Web.HttpUnhandledException
"The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>)."
within the Default.aspx Page_Load method.
This bug is described here:
http://haacked.com/archive/2009/01/27/controls-collection-cannot-be-modified-issue-with-asp.net-mvc-rc1.aspx
and the change I made to get it working was to update the <head> tag
in Site.Master to the following:
<head id="Head1" runat="server">
<asp:ContentPlaceHolder ID="head" runat="server">
<title>S#arp Architecture</title>
</asp:ContentPlaceHolder>
<asp:PlaceHolder runat="server" id="mainScripts">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<link href="<%= ResolveUrl("~") %>Content/Site.css"
rel="stylesheet" type="text/css" />
</asp:PlaceHolder>
</head>
Ie. put the meta tag and the css link into a PlaceHolder control
Rupert