c# - Google plus api with Nopcommerce - Could not load file or assembly System.Net.Http.Primitives -
i'm trying develop plugin using google plus api nopcommerce project. enabled plus api on google console, , used api using nuget plugin.
plusservice plus = new plusservice( new google.apis.services.baseclientservice.initializer() { apikey = "api_key_here" }); if (plus != null) { activitiesresource.listrequest list = plus.activities.list("user_id_here", new activitiesresource.listrequest.collectionenum()); activityfeed feed = list.execute(); } i'm getting following error:
could not load file or assembly 'system.net.http.primitives, version=1.5.0.0, culture=neutral, publickeytoken=b03f5f711d50a3a' or 1 of dependencies. located assembly's manifest definition not match assembly reference.
i tried steps on question: could not load file or assembly system.net.http.primitives. located assembly's manifest definition not match assembly reference
i tried updating packages selecting prerelease option of nuget , adding <dependentassembly> web.config of plugin, web project, machine.config, app.config of plugin , combinations. still no luck.
any appreciated.
nop plugin web.configs aren't loaded, no point in trying that.
make sure you're referencing same version of assembly in both plugin , nop project. assemblies in plugin folder won't loaded if nop has 1 open same name.
the <dependentassembly> entry not working make sense if plugin referencing newer version nop.
Comments
Post a Comment