Upgrade Product Request Plugin to 2.40 - The view was not found

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello,
I want upgrade this plugin to last version of nopCommerce.
https://www.nopcommerce.com/p/216/request-quote-plugin.aspx
http://blog.csharpwebdeveloper.com/2011/09/10/writing-a-plugin-for-nopcommerce-2-x/

Plugin upgraded and installed from administration side.
When I going to click on "Request Quote!" it's trows me error:



[InvalidOperationException: The view 'Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Themes/nopClassic/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Themes/nopClassic/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml
~/Themes/nopClassic/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Themes/nopClassic/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml
~/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml
~/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml
~/Administration/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Administration/Views/RequestQuote/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml
~/Administration/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.cshtml
~/Administration/Views/Shared/Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index.vbhtml]
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +318770
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +129
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8969117
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184



RouteProvider


public class RouteProvider : IRouteProvider
    {
        #region IRouteProvider Members

        public void RegisterRoutes(RouteCollection routes)
        {

            routes.MapRoute("Nop.Plugin.Pricing.RequestQuote", "RequestQuote/{productVariantId}",
                            new { controller = "RequestQuote", action = "Index" },
                            new[] { "Nop.Plugin.Pricing.RequestQuote.Controllers" });
        }

        public int Priority
        {
            get { return 0; }
        }

        #endregion
    }


Controller


//Send our model to the view
return View("Nop.Plugin.Pricing.RequestQuote.Views.RequestQuote.Index", model);


Thanks for help.
12 years ago
Hi,

If you are certain that your route is being registered and that this is the correct route, maybe this post will help:

https://www.nopcommerce.com/boards/t/10969/nop-20-plugin.aspx?p=4#51318

Basically modify the Global.asax file and save it, so that the application can refresh its controller cache correctly.
12 years ago
Hello,
No. It's not helps to fix the error.

Somebody?

Thanks
12 years ago
I've fixed.
The problem was not configured View as "Embeded resource"

Thanks for help.
12 years ago
Hello

How do you resolve this problem ?

Thanks for help.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.