Error Information:
An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.
E:\ModuleShop\nopCommerce4.3\nopCommerce\src\Presentation\Nop.Web\Themes\NobleTheme\Views\Shared\_Notifications.cshtml
当前上下文中不存在名称“NopMessageDefaults”
+
var notes = TempData.ContainsKey(NopMessageDefaults.NotificationListKey)
当前上下文中不存在名称“NopMessageDefaults”
+
? JsonConvert.DeserializeObject<IList<NotifyData>>(TempData[NopMessageDefaults.NotificationListKey].ToString())
___________________________________________________________________________
The Solution:
Find the file: Themes\NobleTheme\Views\Shared\_Notifications.cshtml
Add a line: @using Nop.Services.Defaults
@using Newtonsoft.Json
@using Nop.Core.Domain.Messages
@using Nop.Services.Messages
@using Nop.Services.Defaults @*Add this line*@
@inject MessagesSettings messagesSettings
then it works.