Installation and deployment
Version 3.x > Installation and deployment > The type 'CMS.Ecommerce.ShoppingCartInfo' is defined in an assembly that is not referenced View modes: 
User avatar
Member
Member
matija32956-gmail - 6/10/2009 5:30:53 AM
   
The type 'CMS.Ecommerce.ShoppingCartInfo' is defined in an assembly that is not referenced
Dear Sirs,

I have some problem regarding the compile of CMS.Ecommerce. I had to make same changes in code, and when I compile it again I get this error:


Compiler Error Message: CS0012: The type 'CMS.Ecommerce.ShoppingCartInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'CMS.Ecommerce, Version=3.1.3142.27547, Culture=neutral, PublicKeyToken=834b12a258f213f9'.

Line 475: CMSContext.ViewMode = ViewModeEnum.LiveSite;
Line 476: CMSContext.CurrentUser = null;
Line 477: CMSContext.CurrentShoppingCart = null;
Line 478:
Line 479: CookieHelper.Remove("RememberMeName");

Source File: c:\Domains\frizershop.com\wwwroot\App_Code\CMSDesk\CMSPage.cs Line: 477

The thing is that I'am trying to ad productID to invoice.
P.S. original CMS.Ecommerce.dll is 244 KB and my CMS.Ecommerce.dll is 260 KB even without doing any changes!

User avatar
Member
Member
kentico_pavelk - 6/10/2009 9:14:30 AM
   
RE:The type 'CMS.Ecommerce.ShoppingCartInfo' is defined in an assembly that is not referenced
Hello,

If you make some changes to code and need to compile the DLL, you need to compile whole source code of Kentico CMS.

Best Regard,
Pavel Knotek