Hi everyone.
We have made some rather large changes to the underlying code of NopCommerce 2.65 (to allow for multiple delivery addresses).
Everything works on the front end of the site and can save orders back to the database, bring products out and the site functions as it should do.
However we appear to have broken the mapping in the admin panel somehow :( Whenever we try and edit a product or category it works fine when pulling the data out but when trying to save back to the database we get the following error:
Missing type map configuration or unsupported mapping.
Mapping types:
ProductModel -> Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Nop.Admin.Models.Catalog.ProductModel -> System.Data.Entity.DynamicProxies.Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Destination path:
Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Source value:
Nop.Admin.Models.Catalog.ProductModel
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
Mapping types:
ProductModel -> Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Nop.Admin.Models.Catalog.ProductModel -> System.Data.Entity.DynamicProxies.Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Destination path:
Product_DC6A9D9185860C61DA71404078A3812A93D0CF9595388B9345170D9DF95604E4
Source value:
Nop.Admin.Models.Catalog.ProductModel
Source Error:
Line 102: public static Product ToEntity(this ProductModel model, Product destination)
Line 103: {
Line 104: return Mapper.Map(model, destination);
Line 105: }
Line 106:
Source File: c:\Projects\GreenAndBlacksClive\G and B\nopCommerce\Presentation\Nop.Web\Administration\MappingExtensions.cs Line: 104
Does anyone have any ideas as to what might be broke here?!
Any quick help will be much appreciated :(
Thanks,
Matt