Wrox Programmer Forums
|
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 24th, 2009, 03:04 PM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default DeleteUser

I get the following error when I try to delete an user.

Code:
[InvalidOperationException: The view 'DeleteUser' or its master could not be found. The following locations were searched:~/Views/User/DeleteUser.aspx~/Views/User/DeleteUser.ascx~/Views/Shared/DeleteUser.aspx~/Views/Shared/DeleteUser.ascx]   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +105521   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +139   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10   System.Web.Mvc.<>c__DisplayClass11.<InvokeActionResultWithFilters>b__e() +20   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +251   System.Web.Mvc.<>c__DisplayClass13.<InvokeActionResultWithFilters>b__10() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399   System.Web.Mvc.Controller.ExecuteCore() +126   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Shouldn't the view be looking in UserController? And how do I get it to look there? I am thinking that this is a scriptContent issue
 
Old August 26th, 2009, 08:03 AM
Wrox Author
 
Join Date: Aug 2008
Posts: 19
Thanks: 1
Thanked 4 Times in 4 Posts
Send a message via AIM to Al_Katawazi
Default

Are you using thebeerhouse project because that works, I checked it today. Did you try moving manage user to a new project?
 
Old August 26th, 2009, 08:38 AM
Registered User
 
Join Date: May 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Al, the problem was that I downloaded the version of the jQuery script (jquery-1.3.2.min.js) somehow; I was referencing a non existent script.

I corrected the version reference and it now works fine.

Again Thanks,





Similar Threads
Thread Thread Starter Forum Replies Last Post
Roles.deleteuser 16-26 troubles ufdylan BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 August 2nd, 2007 01:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.