Error The type or namespace name 'Areas' does not exist in the namespace 'Nop.Web'

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
nopCommerce version 4.20

Any guesses why I would get these errors from my plugin's Configure.cshtml?  

The page seems to display and function fine - but it bothers me to see errors I don't know the source of.
4 years ago
Solved it!  The problem was that when I created my plugin, I just copied _ViewImports.cshtml from another plugin.  I just randomly picked Nop.Plugin.Misc.SendInBlue.  And THAT plugin had references to @using Nop.Web.Areas in the _ViewImports.cshtml.  

I'm not using Areas anywhere in my configure.cshtml  (which is why I was so baffled by this error in the first place) so I just removed the offending @using... lines and problem gone.

Shows ta go ya - the error is not always in code you've written.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.