how do you deploy customization?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I added additional functionality to ProductVarient. Everything works nicely on my development machine, but when I deploy it I get no instance of an object errors.

I build and deploy both the Nop.Web & Nop.Admin sections. But I still get the errors. Is there something else I need to deploy?
12 years ago
Could you please provide more detail about which places be modified? Don't forgot the database changes if you made.  I think we can help you to find out the cause.
12 years ago
Shirley wrote:
Could you please provide more detail about which places be modified? Don't forgot the database changes if you made.  I think we can help you to find out the cause.


Shirley is right, we can be much more helpful with a stack trace.
12 years ago
Below is the error I get. I added several new properties to the ProductVariantModel. As I said before, it works nicely on my development machine. It's just when I try to deploy it to the production machine that I get the error. It's as if the core dlls are not being deployed.

I've deployed hundreds of applications and never had this problem before. What am I missing?



Server Error in '/nopCommerce' Application.
--------------------------------------------------------------------------------

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: CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalProductAttributeID' and no extension method 'MetalProductAttributeID' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 31:         $("#@Html.FieldIdFor(model => model.ManageInventoryMethodId)").change(toggleManageStock);
Line 32:         $("#@Html.FieldIdFor(model => model.DisplayStockAvailability)").click(toggleManageStock);
Line 33:         $("#@Html.FieldIdFor(model => model.MetalProductAttributeID)").change(toggleManagePricing);
Line 34:
Line 35:         toggleGiftCard();


Source File: c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml    Line: 33



Show Detailed Compiler Output:


c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\App_global.asax.ipdnruml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\726a7831\313a3ea8_476ccc01\FluentValidation.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\assembly\GAC_MSIL\System.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.HasAllProducts.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.BillingCountry.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.ExchangeRate.McExchange.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.HadSpentAmount.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.SMS.Verizon.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.CanadaPost.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\239809ce\2233432f_4147cc01\Autofac.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\f85c0d73\11a6d6c8_476ccc01\Nop.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.CustomerRoles.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.Manual.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.PurchasedAllProducts.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.PayPalStandard.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\assembly\GAC_MSIL\System.Web.WebPages\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Tax.CountryStateZip.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.PurchasedOneProduct.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.USPS.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.AuthorizeNet.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.PayPalDirect.XmlSerializers.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Feed.Become.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.CheckMoneyOrder.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\e7b2c192\7c9febee_8364cc01\Nop.Admin.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\a0f9916a\717ceccc_476ccc01\PdfSharp.Charting.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.PayInStore.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\89a013f3\f14791cd_476ccc01\Recaptcha.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\5ce5a91f\e13ddeae_476ccc01\MigraDoc.Rendering.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Tax.StrikeIron.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\b5356bfa\8173baac_476ccc01\Microsoft.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\fb24d43b\61d18ca1_476ccc01\Autofac.Integration.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\a878395b\01e2d6a6_476ccc01\EntityFramework.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\9e8982ad\011fb7bb_476ccc01\Nop.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.ShippingCountry.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.FixedRateShipping.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\80b7ae26\818db5ba_476ccc01\Nop.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\183c49f5\a8d92926_4147cc01\AutoMapper.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.CashOnDelivery.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.Fedex.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.Fedex.XmlSerializers.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\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\f69222f6\7198d0c2_476ccc01\Nop.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\a668ddf6\511608c9_476ccc01\Nop.Web.Framework.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.Abstractions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\ae28dadb\713174ae_476ccc01\MigraDoc.DocumentObjectModel.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Feed.Froogle.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\c6943a56\3153f5af_476ccc01\MvcContrib.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\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.GoogleCheckout.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.PurchaseOrder.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\6bfa30f7\61cb32c5_476ccc01\Nop.Services.XmlSerializers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.DiscountRules.HasOneProduct.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\4c672744\819397aa_476ccc01\FluentValidation.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\GCheckout.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.ExchangeRate.EcbExchange.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Tax.Free.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\7ec33c3b\318c01a2_476ccc01\AutofacContrib.Startable.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Tax.FixedRate.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\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\d369d89a\6cae8dd4_9666cc01\System.Data.SqlServerCe.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.SMS.Clickatell.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.LiveChat.LivePerson.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\63f2f2d5\715d71d0_476ccc01\PdfSharp.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Telerik.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.ByWeight.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.AustraliaPost.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Shipping.UPS.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Tax.StrikeIron.XmlSerializers.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\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\55c64cc8\610b47b2_476ccc01\Newtonsoft.Json.Net35.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.PayPalDirect.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\a3f2c5f6\c227c8b1_2d3ccc01\WebActivator.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\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Feed.PriceGrabber.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\9fa5df93\e1e1c7d0_476ccc01\RouteDebugger.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.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.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\c97b3063\8ce10dac_2d3ccc01\MigraDoc.RtfRendering.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\Nop.Plugin.Payments.AuthorizeNet.XmlSerializers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\assembly\dl3\627d0c7f\a12df1a0_476ccc01\Autofac.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Razor.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\App_Web__productvariantinfo.cshtml.c4a82ec3.ddm-vnbg.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\App_Web__productvariantinfo.cshtml.c4a82ec3.ddm-vnbg.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\nopcommerce\3ca26004\9a6ac62f\App_Web__productvariantinfo.cshtml.c4a82ec3.ddm-vnbg.1.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(33,45): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalProductAttributeID' and no extension method 'MetalProductAttributeID' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(151,74): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumHardCost' and no extension method 'PremiumHardCost' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(151,147): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumHardCost' and no extension method 'PremiumHardCost' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(152,76): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumPercentage' and no extension method 'PremiumPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(152,151): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumPercentage' and no extension method 'PremiumPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(153,65): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MarkupPercentage' and no extension method 'MarkupPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(153,139): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MarkupPercentage' and no extension method 'MarkupPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(154,63): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalWeight' and no extension method 'MetalWeight' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(154,132): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalWeight' and no extension method 'MetalWeight' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(155,63): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'Quantity' and no extension method 'Quantity' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(155,129): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'Quantity' and no extension method 'Quantity' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(156,57): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalProductAttributeID' and no extension method 'MetalProductAttributeID' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(201,74): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumHardCost' and no extension method 'PremiumHardCost' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(201,147): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumHardCost' and no extension method 'PremiumHardCost' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(202,76): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumPercentage' and no extension method 'PremiumPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(202,151): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'PremiumPercentage' and no extension method 'PremiumPercentage' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(204,57): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalProductAttributeID' and no extension method 'MetalProductAttributeID' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(396,105): error CS1061: 'Nop.Admin.Models.Catalog.ProductVariantModel' does not contain a definition for 'MetalProductAttributeID' and no extension method 'MetalProductAttributeID' accepting a first argument of type 'Nop.Admin.Models.Catalog.ProductVariantModel' could be found (are you missing a using directive or an assembly reference?)
c:\inetpub\wwwroot\nopCommerce\Administration\Views\Shared\_ProductVariantInfo.cshtml(396,50): error CS1061: 'Nop.
12 years ago
[email protected] wrote:
Below is the error I get. I added several new properties to the ProductVariantModel. As I said before, it works nicely on my development machine...

Seems that old Nop.Admin assembly has been deployed. Manually copy this assembly from Nop.Web\bin directory
12 years ago
I copied over the latest nop.Admin.dll to the production site, and I still get the error. Is there still something I'm missing?
12 years ago
I am having the same issue. I'm adding a simple property to TopicModel.cs, then I put a breakpoint on the Create method in the controller in admin, step over the var model = TopicModel(); line and the model object has no knowledge of the new properties.
I've tried rebuilding all, clearing cache, even used ILSpy to inspect the Nop.Admin.dll was up to date in \Presentation\Nop.Web\Administration\Bin\Nop.Admin.dll and it all appears ok.
The strange thing is that VS shows me the :-
The source file is different from when the module was built. Would you like the debugger to use it anyway?
message.
There must be some incorrect dll reference, cached maybe?

I've added it in the Nop.Web project and it all seems to work fine there. It's just the admin pages that don't work.
12 years ago
I think I'm 1 step closer now. I see that there is a Nop.Admin.dll in the bin folder of the Nop.Web base folder with an old last modified date on it. Inspecting with ILSpy shows that indeed it is an old copy and does not contain the new property on the TopicModel object. So I deleted it, rebuild all on the project, a new version is created... and now I can't get to localhost:1473/admin - The resource cannot be found.
I'll post back here when I work out what the problem is here. Hopefully this helps someone else out.
12 years ago
Ok, fixed now. I copied the Nop.Admin.dll from the Administration\bin folder down to the Nop.Web\bin folder. I might try to reference the admin project from the nop.web project so that it copies down the dll on each build unless someone tells me why this is a bad idea.
Anyway, like I said. I hope this helps someone else out. I saw a few other posts around here with no answer to similar questions.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.