Hi I'm new to umbraco and I've been asked to help out on a project that is using it [6.1.6 I believe, using .NET 4.0 with MVC, Razor, and MiniProfiler]. I created a form following the guidelines outlined in the documentaiton here.
When the submit button on the form is submitted the following action is successfully called in the surface controller:
public class OurSurfaceController : SurfaceController {
...
[HttpPost]
public ActionResult SubmitThisForm(FormModel model) {
if(ModelState.IsValid) {
// pass some information to the service layer here
}
return CurrentUmbracoPage();}
}
I'm debugging the project locally and whenever I attempt to call return CurrentUmbracoPage(); get a null reference exception and a message in visual studio stating that ProfilingActionFilter.cs could not be found. I tried the solutions contained in this forum post, read this forum post, and trying searching via google for help but I'm coming up blank.
Here is the stack trace. I'd appreciate any help. Thanks!
MVC Partial View Form - Null Reference Exception
Hi I'm new to umbraco and I've been asked to help out on a project that is using it [6.1.6 I believe, using .NET 4.0 with MVC, Razor, and MiniProfiler]. I created a form following the guidelines outlined in the documentaiton here.
The form is contained in a partial view:
I'm debugging the project locally and whenever I attempt to call return CurrentUmbracoPage(); get a null reference exception and a message in visual studio stating that ProfilingActionFilter.cs could not be found. I tried the solutions contained in this forum post, read this forum post, and trying searching via google for help but I'm coming up blank.
Here is the stack trace. I'd appreciate any help. Thanks!
is working on a reply...