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.
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close