Inhalte aufrufen

Profilbild

Errors installing plug ins

plugin

4 Antworten zu diesem Thema

#1 jbright

jbright

    Member

  • Members
  • PunktPunkt
  • 12 Beiträge

Geschrieben: 17 February 2016 - 17:19

Hi. I'm having a problem with installing plugins. This happens with two plugins that I'm trying to use: the UPS and USPS shipping plugings. I've trying doing a file upload and also manually unzipping the nuget package and putting the files in the Plugins directory. I end up seeing the same error (which will go away when I delete the plugin's folder). 

 

I am using code cloned from git. 

 

Not sure what I'm doing wrong. Any help would be appreciated as this is a blocking issue right now. I've poked around and nothing jumps out at me.

Could not load type 'SmartStore.Web.Framework.Mvc.Routes.IRouteProvider' from assembly 'SmartStore.Web.Framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null'.

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: System.TypeLoadException: Could not load type 'SmartStore.Web.Framework.Mvc.Routes.IRouteProvider' from assembly 'SmartStore.Web.Framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error:


Line 271:
Line 272:				// init plugin type (only one plugin per assembly is allowed)
Line 273:				var exportedTypes = descriptor.ReferencedAssembly.ExportedTypes;
Line 274:				bool pluginFound = false;
Line 275:				bool preStarterFound = !descriptor.Installed;


Source File: c:\SmartStore\src\Libraries\SmartStore.Core\Plugins\PluginManager.cs    Line: 273

Stack Trace:



#2 jbright

jbright

    Member

  • Members
  • PunktPunkt
  • 12 Beiträge

Geschrieben: 17 February 2016 - 17:42

For the UPS and USPS plug ins, the exception seems to be a mismatch in namespace.

 

IRouteProvider is defined in 

SmartStore.Web.Framework.Routing.IRouteProvider

 but the plugin is referencing 

SmartStore.Web.Framework.Mvc.Routes.IRouteProvider

Looks like there was a commit on Dec 3, 2015 that refactored this code. 

 

https://github.com/s...a687aae14ef36d7

 

1) Can this be patched? 

 

2) Can the USPS and UPS plugins be open sourced? 

 

TIA!!

 

JB



#3 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1013 Beiträge

Geschrieben: 17 February 2016 - 20:30

I have attached both plugins' source codes. They are both compatible with the most current dev state (2.x branch).

 

Unfortunately we don't host these kind of non-core, additional free plugins on Github yet, but we definitely plan to do it in near future. It's really tough to maintain a GIT project with many GIT-SubModules properly, so we did hard to avoid it :-)

Angehängte Bilder


  • jbright gefällt das

Murat Cakir
SmartStore AG


#4 jbright

jbright

    Member

  • Members
  • PunktPunkt
  • 12 Beiträge

Geschrieben: 17 February 2016 - 22:07

Got it! And got it working. Thank you SO much. That saved me a ton of time. 

 

IF you know off the top of your head where to look for a rendering/encoding error, that'd be great. If not, I'm sure I'll figure it out. When the user sees the label, they're seeing html encoded text. Looks like that's a superscript TM or something. I just need to figure out where I need to put a Html.Raw... 

 

USPS Priority Mail 2-Day<sup>™</sup>



#5 jbright

jbright

    Member

  • Members
  • PunktPunkt
  • 12 Beiträge

Geschrieben: 17 February 2016 - 22:10

Ah... Found it in the View. 





Auf dieses Thema antworten



  

Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: plugin