EditException Troubleshooting
Exception: "The controller for path ‘/SomeArea/SomeObjects’ could not be found or it does not implement IController." Alternatively, this exception may show up as "The resource cannot be found."
Fix: This is likely occurring because you have a missing route in YourProject.Web.Controllers/RouteRegistrar.cs.
Exception: Reference to unmapped class
Fix: It is usually because the NHibernate HBM is not configured to be an embedded resource. Right click the newly added HBM, click properties, and then set its compilation mode to “Embedded Resource.”
Exception: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. (If the page is refreshed, it may then say "The controller for path … could not be found..."
Fix: This is actually a mask over another exception due to the ASP.NET MVC framework. To see the actual exception, add the following code to
Global.Application_Error: Exception exception = Server.GetLastError(). Then, place a breakpoint on the closing tag of
Global.Application_Error and run the application in debug mode. The exception variable in the debug window will hold the details of the underlying exception.
Exception: "Cannot retrieve ProjectItem" when running CRUD scaffolding.
Fix: You haven’t patched the T4 Toolbox. See the section entitled "
Installing and Configuring Prerequisites" for instruction details.
Exception: Compilation error due to a bad T4Toolbox.tt reference when running CRUD scaffolding.
Fix: You may have a tool installed on your computer which hindered T4 Toolboxes ability to fully integrate with the VS IDE. Accordingly, after attempting to install T4 Toolbox, try taking the following
essay help steps:
1. Copy %programfiles%\T4 Toolbox\T4Toolbox\ to C:\\tools\CrudScaffolding\
2. Copy %programfiles%\T4 Toolbox\T4Toolbox.tt to C:\\tools\CrudScaffolding\