I'm having mixed success. I updated MVC (using the refresh from
haacked.com) and MvcContrib to RC. I made the updates from earlier in
this thread to AreaViewEngine.cs and WindsorExtensions.cs. The
SharpArchitecture project builds, and all tests pass. I copied the
updated SharpArchApplicationWizard.dll to C:\Program Files
(x86)\Microsoft Visual Studio 9.0\Common7\IDE and created a new
project using the wizard. After that, I copied all the updated dlls
from /SharpArchitecture/bin to /MyProject/lib, including the
System.Web.Mvc, System.Web.Routing, System.Web.Abstractions, and all
the MvcContrib.xxx dlls.
My project builds, but I get the error below from the MasterPage when
attempting to run it (CTRL-F5)
(If I copy the url
http://localhost:1062/Content/Images/sharp_arch.jpg
into the address bar, the image is there...)
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.
Source Error:
Line 18: <div class="leftColumn">
Line 19: <p>
Line 20: <%= Html.Image("~/Content/Images/
sharp_arch.jpg") %>
Line 21: </p>
Line 22: <h2>KaizenMgr Pages</h2>
Source File: e:\root\projects\KaizenMgr\app\KaizenMgr.Web\Views\Shared
\Site.Master Line: 20
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.Mvc.UrlHelper.Content(String contentPath) +59
Microsoft.Web.Mvc.ImageExtensions.Image(HtmlHelper helper, String
imageRelativeUrl, String alt, IDictionary`2 htmlAttributes) +65
Microsoft.Web.Mvc.ImageExtensions.Image(HtmlHelper helper, String
imageRelativeUrl) +9
ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w,
Control parameterContainer) in e:\root\projects\KaizenMgr\app
\KaizenMgr.Web\Views\Shared\Site.Master:20
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +43
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1266