I am getting error while i have create a new pluging in nopcommerce

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi All,

I need help for this issue. where i have do some wrong while writing new payment plugin.

I have create new payment plugin it's show in plugin list. when we are click to configuration. i am getting below error please help me.



Server Error in '/' Application.
The view 'Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
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.InvalidOperationException: The view 'Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml

Source Error:


Line 12: @if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 13: {
Line 14:     @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 15: }
Line 16: else


Source File: d:\Trendi24x7\Presentation\Nop.Web\Administration\Views\Payment\ConfigureMethod.cshtml    Line: 14

Stack Trace:


[InvalidOperationException: The view 'Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Themes/DarkOrange/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/PaymentPayU/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.cshtml
~/Administration/Views/Shared/Nop.Plugin.Payments.PayU.Views.PaymentPayU.Configure.vbhtml]
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +284818
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +121
   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) +242
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
   System.Web.Mvc.Controller.ExecuteCore() +106
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +48
   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.Mvc.<>c__DisplayClassa.<EndProcessRequest>b__9() +22
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +10
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +27
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Action action) +65
   System.Web.Mvc.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result) +71
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1097

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3033503
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +76
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +28
   System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +19
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +483
   System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +83
   ASP._Page_Administration_Views_Payment_ConfigureMethod_cshtml.Execute() in d:\Trendi24x7\Presentation\Nop.Web\Administration\Views\Payment\ConfigureMethod.cshtml:14
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
   System.Web.WebPages.StartPage.RunPage() +17
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +62
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +222
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +295
   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) +242
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +242
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
   System.Web.Mvc.Controller.ExecuteCore() +106
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +48
   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() +9629708
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
10 years ago
Did you mark Configure.cshtml  as an embedded resource???
10 years ago
Thank you very much.

before you reply not Embedded Resource.

but when i convert to Embedded Resource i got resolved.


Best Regards,
Abdhesh
10 years ago
your welcome.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.