CS0103: The name 'EngineContext' does not exist in the current context

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I'm getting this error when attempting to configure the nivo slider plugin after updating nopCommerce through the visual studio publish tool. Here is the full stack trace:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'EngineContext' does not exist in the current context

Source Error:


Line 10:     var random = CommonHelper.GenerateRandomInteger();
Line 11:     var clientId = "picture" + random;
Line 12:     var pictureService = EngineContext.Current.Resolve<Nop.Services.Media.IPictureService>();
Line 13:     var picture = pictureService.GetPictureById(Model);
Line 14: }

Source File: e:\HostingSpaces\abrummer\alamo.standardbeagle.com\wwwroot\Views\Shared\EditorTemplates\Picture.cshtml    Line: 12


Show Detailed Compiler Output:


C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Mono.Math.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\0cd9ae9a\615d06e4_4096cf01\EntityFramework.SqlServerCompact.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.CheckMoneyOrder.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\620db227\38fc73e5_4096cf01\MaxMind.GeoIP2.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Widgets.NivoSlider.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\1c4f99e2\95f39f47_62becf01\Nop.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.SMS.Verizon.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\9f0e7c1b\d14a37e3_4096cf01\AutoMapper.Net4.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Misc.WebServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\04bfc461\67abb6e5_4096cf01\System.Data.SqlServerCe.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.AustraliaPost.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.ByWeight.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\cbf13813\8b521ee4_4096cf01\ImageResizer.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\f5712969\7d5774e9_6596cf01\System.Web.Http.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\0bad9067\dbe3e6e5_4096cf01\Recaptcha.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\b8b1df03\1794d4e5_4096cf01\WebActivator.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.FixedRateShipping.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\52ff669e\f01fa5c3_ba9acf01\FluentValidation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\eb84d543\61a728e9_6596cf01\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Validation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\e44492ab\bb9b0bb7_4296cf01\MiniProfiler.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\ba33d232\0a12c95c_700fd001\Nop.Admin.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\04480f75\55921ee3_4096cf01\Antlr3.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.OpenId.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\7f32bea2\a1f44ee9_6596cf01\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.PurchaseOrder.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\272d3bfe\fdf23ce9_6596cf01\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\b2a46b62\9947e6e5_4096cf01\itextsharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\e5f1a7d9\48d910e9_6596cf01\Autofac.Integration.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\83cec88c\d978e6e3_4096cf01\EntityFramework.SqlServer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.SiUtil.ShipWorks.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.Manual.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.PayPalStandard.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\f5be0710\240e38e3_4096cf01\AutoMapper.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\ea037d53\faa362e9_6596cf01\System.Net.Http.Formatting.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\747f03a3\61dd3de9_6596cf01\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.OpenId.RelyingParty.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\e25732d7\7ac47be5_4096cf01\System.Web.Optimization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\33baec1f\3c99fce3_4096cf01\EntityFramework.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.Fedex.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.AuthorizeNet.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\3441a189\f6a23d48_62becf01\Nop.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\2f7dd564\078773e5_4096cf01\MaxMind.Db.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.DiscountRules.HadSpentAmount.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\3ce051a7\302cd7e5_4096cf01\WebGrease.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\cd5d28ec\2d06d2e3_4096cf01\EPPlus.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\c02ac238\8a4891e5_4096cf01\System.Net.Http.Primitives.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.ExchangeRate.McExchange.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Widgets.GoogleAnalytics.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.DiscountRules.CustomerRoles.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Tax.FixedRate.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\c8b681d9\205986e9_6596cf01\System.Web.Http.WebHost.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\6bf15916\e1a4d25b_700fd001\Nop.Web.Framework.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\f922eb73\eb314f5b_700fd001\Nop.Services.XmlSerializers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\47677cc0\a603bcc3_ba9acf01\FluentValidation.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\App_global.asax.l71rohm0.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.CanadaPost.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.OAuth.Consumer.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.UPS.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\0d9ef4d4\7a2191e5_4096cf01\System.Net.Http.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.OAuth.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\38d2e609\aa6ee6e5_4096cf01\PerlRegex.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.Mvc5.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.DiscountRules.HasOneProduct.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.ExternalAuth.OpenId.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Org.Mentalis.Security.Cryptography.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Shipping.USPS.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\b8c6d9de\9117fe5a_700fd001\Nop.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\269a25b3\e0edc5e5_4096cf01\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\50ba3626\1e413de9_6596cf01\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.CashOnDelivery.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.DiscountRules.HasAllProducts.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Misc.FacebookShop.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Payments.PayPalDirect.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Feed.Froogle.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.Tax.CountryStateZip.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\47d8489a\857349e3_4096cf01\Autofac.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\DotNetOpenAuth.AspNet.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\c9b0a00a\cbbce6e5_4096cf01\UserAgentStringLibrary.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\3185ac82\bdff78ee_700fd001\Nop.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\Nop.Plugin.ExternalAuth.Facebook.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\41c12786\ff631fe4_4096cf01\ImageResizer.Plugins.PrettyGifs.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\6cf97b74\9911d1e5_4096cf01\RestSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\assembly\dl3\eb4d016c\2f683de9_6596cf01\System.Web.WebPages.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\App_Web_picture.cshtml.5e279d63.smoh4-sx.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror-  "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\App_Web_picture.cshtml.5e279d63.smoh4-sx.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c33804e1\5f377408\App_Web_picture.cshtml.5e279d63.smoh4-sx.1.cs"


Microsoft (R) Visual C# Compiler version 4.0.30319.34209

for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.

e:\HostingSpaces\abrummer\alamo.standardbeagle.com\wwwroot\Views\Shared\EditorTemplates\Picture.cshtml(12,26): error CS0103: The name 'EngineContext' does not exist in the current context
9 years ago
im having the same problem ? any news on this ?

thank you
8 years ago
Same problem here - same error - can someone please help?
8 years ago
cshapiro wrote:
Same problem here - same error - can someone please help?



Use the @using Nop.Core.Infrastructure; namespace for the Views\Shared\EditorTemplates\Picture.cshtml file

Add like the following top of the file

@model int
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Web.Framework.UI;
7 years ago
Hey Guys,

I have resolved this this problem.

var pictureService = EngineContext.Current.ContainerManager.Resolve<Nop.Services.Media.IPictureService>();

it is working fine for me.
6 years ago
I get this error for AdminPopupLayout. any idea?
6 years ago
hamcker wrote:
I get this error for AdminPopupLayout. any idea?
.


You have to add appropriate namespace.

Because some code reside this file use c# code so,need to fix with namespace.
6 years ago
sk5202 wrote:
I get this error for AdminPopupLayout. any idea?.


You have to add appropriate namespace.

Because some code reside this file use c# code so,need to fix with namespace.


I tried so, before reaching here. also I tried to use the namespace directly like `var commonSettings = Nop.Core.Infrastructure.EngineContext.Current.Resolve<CommonSettings>();`... and get the same error :-)
6 years ago
hamcker wrote:
I get this error for AdminPopupLayout. any idea?.
commonSettings = Nop.Core.Infrastructure.EngineContext.Current.Resolve<CommonSettings>();`... and get the same error :-)
.

Did you add CommonSettings nameSpace.?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.