Inhalte aufrufen

Profilbild

Twitter Auth plugin

Twitter Auth plugin SmartStore.TwitterAuth

4 Antworten zu diesem Thema

#1 Kushil Abeygunawardane

Kushil Abeygunawardane

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 26 January 2017 - 13:11

Hi 

I got the source from https://github.com/s...g/extra-plugins and added its SmartStore.TwitterAuth project to SmartStore Solution under Plugins folder (like other existing plugins such as FacebookAuth, AmazonPay etc.). I made sure that SmartStore.TwitterAuth project's output path is similar to other existing plugin projects' output path. I managed to build the project and publish it.  But the TwitterAuth is not appearing as a plugin in the Manage Plugin page in the Admin Console. When I click Upload Plugin option in that page it is asking for a .nupkg file which I cannot find in the solution output. Could you please let me know what I am doing wrong?

Thanks and regards

Kushil



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 2969 Beiträge

Geschrieben: 26 January 2017 - 17:36

Please check:
- "Version" and "MinAppVersion" in Description.txt. To be compatible it should have the same values like other plugins.
- \Plugins\SmartStore.TwitterAuth if it really contains SmartStore.TwitterAuth.dll.
- that the dependencies of the plugin are resolved, like LinqToTwitter for instance.

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 Kushil Abeygunawardane

Kushil Abeygunawardane

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 26 January 2017 - 23:35

Please see the post below


#4 Kushil Abeygunawardane

Kushil Abeygunawardane

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 26 January 2017 - 23:43

Hi Marcus
Thanks very much for your response. It was indeed missing Description.txt. I got it in place. Then I got an reference assembly failing to load error for Autofac. I compared the version of it with the same in another plugin (Amazon Pay). I saw it is different and TwitterAuth had Local copy = True for for both Autofac and  Autofac.Integration.Mvc. I updated both Autofac and Autofac.Integration.Mvc to match Amazon Pay plugin's referenced ones versions (3.5.2 and 3.3.4) and made them Local Copy = false. It solved all the initial problems and Twitter Auth Plugin started appearing in Manage Plugins page. 
I installed it. I restarted the app. I clicked "Update resources" button. That went all fine. But when I click "Configure" I got the error below. But all other plugins (i.e. facebook, AmazonPay) are responding to Configure button click fine. Only newly installed TwitterAuth plugin has this problem below.
 
An unknown error occurred when calling a plugin. Please refer to the following message for details.
System.Web.HttpException (0x80004005): Execution of the child request failed. Please examine the InnerException for more information. ---> System.Web.HttpException (0x80004005): The controller for path '/Admin/Plugin/ConfigurePlugin' was not found or does not implement IController.
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
at System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter)
at System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues)
at ASP._Page_Administration_Views_Plugin_ConfigurePlugin_cshtml.Execute() in f:\kushil\iZDOT\PublishedFromCode\Administration\Views\Plugin\ConfigurePlugin.cshtml:line 25


#5 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 2969 Beiträge

Geschrieben: 27 January 2017 - 12:38

Please see here. Actually deleting all (including ASP:NET temporary files) and recompiling should solve it too.


Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten