We just purchased a license for Smart SEO. The plugins (Core and Smart SEO) appear to have installed successfully (registered in the plugins list, activated properly).
But when we go to Plugins > Nop Smart SEO > Settings, there is a 404 trying to find the file path.
We just purchased a license for Smart SEO. The plugins (Core and Smart SEO) appear to have installed successfully (registered in the plugins list, activated properly).
But when we go to Plugins > Nop Smart SEO > Settings, there is a 404 trying to find the file path.
This is for NopCommerce 2.8.
Please advise.
Hi jianni,
Can you try adding a few empty spaces in your Global.asax file (as described here)?
Thanks for your reply. This was attempted. But we still get a server error on plugin activation (this is after restarting the application and clearing the cache).
Here is the Stack trace:
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] SevenSpikes.Nop.Framework.MVCExtensions.RouteCollectionExtensions.AddControllerNamespacesToRoute(RouteCollection routes, String routeName, String[] namespacesToAdd) +94 SevenSpikes.Nop.Framework.Routing.BaseRouteProvider.RegisterRoutes(RouteCollection routes) +192 Nop.Web.Framework.Mvc.Routes.<>c__DisplayClass3.<RegisterRoutes>b__1(IRouteProvider rp) +80 System.Collections.Generic.List`1.ForEach(Action`1 action) +14232563 Nop.Web.Framework.Mvc.Routes.RoutePublisher.RegisterRoutes(RouteCollection routes) +873 Nop.Web.MvcApplication.RegisterRoutes(RouteCollection routes) +222 Nop.Web.MvcApplication.Application_Start() +957
[HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12949749 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12966756 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
I see in the stack that it reaches the SevenSpike plugin and it is tries to register the route when it gets a null pointer to an object. Seems to me there's an error in the code somewhere.
Thanks for your reply. This was attempted. But we still get a server error on plugin activation (this is after restarting the application and clearing the cache).
...
I see in the stack that it reaches the SevenSpike plugin and it is tries to register the route when it gets a null pointer to an object. Seems to me there's an error in the code somewhere.
Hi jianni,
If the Core and the SEO plugins are installed then the problem might be related to some third-party plugin you are using or any modifications you have made to nopCommerce. Have you removed the Admin_Default route in nopCommerce or do you have any plugins installed that remove the Admin_default route in nopCommerce?
If you have ever received a message from Windows like Cannot delete file: Access is denied There has been a sharing violation. The source or destination file may be in use. The file is in use by another program or user. Make sure the disk is not full or write-protected and that the file is not currently in use. Error Deleting File or Folder Cannot delete file or folder The file name you specified is not valid or too long. Specify a different file name. when you tried to delete, move or rename a file, then this program will be helpful. Path Too Long Utility identifies the processes (running programs) that have locked that file, preventing it from being deleted, moved or renamed. Download this tool "Long Path Tool"
I gave up on fixing the issue a while ago. We just finished a server move and thought it might have fixed the problem because other plug ins were not functioning. I have reviewed our source code and disabled all of the other plug ins beside the core and SEO and we still have issues. We still have the Admin route you described.
Found the issue. In Nop 2.8 (or at least our version), the "Admin_Default" route is written "Admin_default". I guess it could not find the route in the collection.