logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Tuesday, October 29, 2019 3:11:40 PM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
I'm unable to build AbleCommerce.dll with the 9.0.1 patch installed.

Specifically I'm getting three build errors in \Website\Controllers\CategoryController.cs

Quote:

CategoryController.cs(890, 35): [CS0308] The non-generic method 'ICatalogNodeRepository.CountForCategory(int)' cannot be used with type arguments
CategoryController.cs(893, 49): [CS0308] The non-generic method 'ICatalogNodeRepository.LoadForCategory(Category)' cannot be used with type arguments
CategoryController.cs(1324, 47): [CS0308] The non-generic method 'ICatalogNodeRepository.LoadForCategory(Category)' cannot be used with type arguments


I haven't modified anything.

The one on line 890 I can fix. But the other two don't make sense with how the line of code is written. Almost as if the wrong repository is being used.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

mazhar  
#2 Posted : Wednesday, October 30, 2019 4:19:34 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
We created two new generic methods to load and count specific types of catalogable items under a category.
Code:

IList<T> LoadForCategory<T>(int categoryId,........)
int CountForCategory<T>(int categoryId,........)


If you are using Visual Studio to compile the Install make sure your upgrade package has the Lib folder for updated CommerceBuilder dll to compile against.
Joe Payne2  
#3 Posted : Wednesday, October 30, 2019 6:44:17 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Thank you, with your help I was able to get the solution to compile. You were correct that I didn't copy the /Lib/ files.

So when an update is deployed, and I have modified anything about the install, I must also copy the /Lib/ folder along with any website files before I rebuild the app. Otherwise my recompile of AbleCommerce.dll won't pick up the newer commercebuilder.dll. Is that correct?

Then why is there also a commercebuilder.dll in /bin/? And why isn't THAT one being referenced in the AbleCommerce project since it'll be the one deployed to a live website?

The use of a separate /Lib/ folder seems to confuse things as much as it helps. At least for how I set up sites in IIS to run on my local machine. Perhaps I'm not understanding the advantage of it?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.