Total de postagens:
3
Karma:
15
Ingressou:
20/01/2016
Localização:
United Kingdom
Hello, I am working on a solution which calls a view through the following line of code @Html.Action("SecProvRev", "Catalog", new { productId = Model.Id }) I have added the relevant controller method and routing action to the solution, however on load of the page, I recieve an error stating "A public action method 'SecProvRev' was not found on controller 'Nop.Web.Controllers.CatalogController'." Has any one ever experienced this error before or aware of a fix? Any help is appreciated. Thank you in advance!
Total de postagens:
3
Karma:
15
Ingressou:
20/01/2016
Localização:
United Kingdom
[NopHttpsRequirement(SslRequirement.No)] public ActionResult SecProvRev(int productId) { var product = _productService.GetProductById(productId); if (product == null || product.Deleted || !product.Published || !product.AllowCustomerReviews) return RedirectToRoute("HomePage"); var model = new ProductReviewsModel(); PrepareProductReviewsModel(model, product); if (_workContext.CurrentCustomer.IsGuest() && !_catalogSettings.AllowAnonymousUsersToReviewProduct) ModelState.AddModelError("", _localizationService.GetResource("Reviews.OnlyRegisteredUsersCanWriteReviews")); model.AddProductReview.Rating = _catalogSettings.DefaultProductRatingValue; return View(model); } is the current code. The problem lies when running it on a server, when running this solution locally it seems to work fine.. currently trying your suggestion, will post results.
Total de postagens:
3
Karma:
15
Ingressou:
20/01/2016
Localização:
United Kingdom
Upon first upload to the IIS server, the application works fine with no errors at all, its upon restart of the IIS server that I get the error I'm querying about
Total de postagens:
41
Karma:
223
Ingressou:
11/11/2016
Localização:
United States
"any plugin that use Nop.Web.dll and contains it its own folder" What do you mean? How to tell if my plugin is doing that? Experiencing similar problem of routing on IIS restart. All works fine before.