Inhalte aufrufen

Profilbild

Smartstore Error


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
45 Antworten zu diesem Thema

#1 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 06:49

Kindly assist with this error, i have being having issues moving forward



#2 Wolfgang Schmerge

Wolfgang Schmerge

    SmartStore AG

  • Administrators
  • 2449 Beiträge

Geschrieben: 16 February 2018 - 08:29

Hi,

 

welcome to the forum.
We still need some information.

 

Regards

 

Wolfgang


Shopbetreiber benötigen Ihre Hilfe! Bewerten Sie jetzt Smartstore auf Capterra.

Als Dankeschön erhalten Sie 20 Euro für Ihren nächsten Kauf im Marketplace.

Smartstore bewerten


 

Bleibt gesund!

 

Viele zusätzliche Smartstore Plugins gibt es im MARKETPLACE:
http://community.sma...dex.php?/files/

 

Hier geht es zu den Smartstore Videos:
Smartstore.NET Youtube-Channel
 

Die deutsche Smartstore Online-Dokumentation gibt es hier:
https://smartstore.a...iew?mode=global

In dem folgenden BLOG findet man interessante Tipps & Tricks zum Thema "Smartstore":

http://community.sma...t-tipps-tricks/

 


#3 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 11:19

Hello, thanks for the reply, what other information would you need.

 

 

Thanks



#4 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 11:27

please find attached the smartstore community version i have installed.



#5 Wolfgang Schmerge

Wolfgang Schmerge

    SmartStore AG

  • Administrators
  • 2449 Beiträge

Geschrieben: 16 February 2018 - 11:53

Hi,

 

I can't see a description of the problem or an attachment.

 

Regards

 

Wolfgang


Shopbetreiber benötigen Ihre Hilfe! Bewerten Sie jetzt Smartstore auf Capterra.

Als Dankeschön erhalten Sie 20 Euro für Ihren nächsten Kauf im Marketplace.

Smartstore bewerten


 

Bleibt gesund!

 

Viele zusätzliche Smartstore Plugins gibt es im MARKETPLACE:
http://community.sma...dex.php?/files/

 

Hier geht es zu den Smartstore Videos:
Smartstore.NET Youtube-Channel
 

Die deutsche Smartstore Online-Dokumentation gibt es hier:
https://smartstore.a...iew?mode=global

In dem folgenden BLOG findet man interessante Tipps & Tricks zum Thema "Smartstore":

http://community.sma...t-tipps-tricks/

 


#6 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 12:45

Hello,

 

I hosted the community version on my local iis and it only worked once, since then i have being getting series of errors as shown below:

 

Could not load type 'SmartStore.Services.Messages.IMessageTokenProvider' from assembly 'SmartStore.Services, Version=3.0.3.0, Culture=neutral, PublicKeyToken=null'.
 
Also i downloaded the source project from github, built it with visual studio 2017, launched it and try to make purchased, and got this error:
 
Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS1525: Invalid expression term '.'

Source Error:

  Line 8:
Line 9:     // FB OpenGraph og:image & Twitter meta
Line 10:     var oImg = Model.PictureModels?.FirstOrDefault();
Line 11:     if (oImg != null && oImg.FullSizeImageUrl.HasValue())
Line 12:     {
Source File: Smartstore\SmartStoreNET\SmartStoreNET-3.x\src\Presentation\SmartStore.Web\Views\Product\Partials\Product.Picture.cshtml    Line: 10 

 

so now i can't move forward



#7 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 12:46

What i mean is that community version only worked once and didn't work again, hence being seeing the error above



#8 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 13:23

Any update on how to fix these errors please.



#9 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 16 February 2018 - 13:49

"Could not load type 'SmartStore.Services.Messages.IMessageTokenProvider'" sounds like a version messup because IMessageTokenProvider has been removed somewhen after the release of current version 3.0.3. Please download and deploy the official 3.0.3 release from the release page.

Marcus Gesing

Smartstore AG


#10 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 15:19

hello, thanks for the feedback, now am getting this error below:

 

Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
 

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 
 

[FileLoadException: Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +95
System.Type.GetType(String typeName) +61
System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +14
System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2289
System.Web.Configuration.CompilationSection.get_RecompilationHash() +107
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash) +516
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash) +57
System.Web.Compilation.BuildManager.ExecutePreAppStart() +148
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +734

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +708

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2556.0



#11 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 15:22

Also, the error still persist even after commenting out this section of the web config

 

 <!-- <system.codedom> -->
    <!-- <compilers> -->
      <!-- <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" /> -->
      <!-- <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" /> -->
    <!-- </compilers> -->
  <!-- </system.codedom> -->


#12 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 16 February 2018 - 15:46

Please clear the ASP.NET temporary files. You can do that by changing the compilation node of main web.config in the root directory:
increase numRecompilesBeforeAppRestart e.g. from 250 to 251 and set optimizeCompilations from true to false. Open the page that produced the error (should take a while until the page loads the first time). Finally, undo the changes to web.config when it is clear that the error no longer occurs.

Marcus Gesing

Smartstore AG


#13 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 16:03

Thanks a lot, it really help, i can proceed now.

 

Also i have been trying to create a custom payment plugin but really had a bad time deploying, generating errors even after reading the documentation. so am about to create a new one using the source project i downloaded from the release site.

 

if i run into any issues, would you be of assistance.

 

 

Thanks for your help once again



#14 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 16 February 2018 - 22:57

Hello, can anyone just assist me, i have done everything possible to create a payment plugin but nothing works. Read the documentation even gone through the plugins in the solution but yet still having issues.

 

I created a plugin called SmartStore.PayStack, installed but it crashed my application and now am stock. kindly see the error below:

 

The main assembly 'SmartStore.PayStack.dll' for plugin 'SmartStore.PayStack' could not be found.

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: SmartStore.SmartException: The main assembly 'SmartStore.PayStack.dll' for plugin 'SmartStore.PayStack' could not be found.

Source Error: 
 

Line 284:            if (descriptor.OriginalAssemblyFile == null)
Line 285:            {
Line 286:                throw new SmartException("The main assembly '{0}' for plugin '{1}' could not be found.".FormatInvariant(descriptor.PluginFileName, descriptor.SystemName));
Line 287:            }
Line 288:

Source File: I:\Smartstore\SmartStoreNET-3.0.3\SmartStoreNET-3.0.3\src\Libraries\SmartStore.Core\Plugins\PluginManager.cs    Line: 286 

Stack Trace: 
 

[SmartException: The main assembly 'SmartStore.PayStack.dll' for plugin 'SmartStore.PayStack' could not be found.]
SmartStore.Core.Plugins.PluginManager.LoadPluginDescriptor(DirectoryInfo d, ICollection`1 installedPluginSystemNames) in I:\Smartstore\SmartStoreNET-3.0.3\SmartStoreNET-3.0.3\src\Libraries\SmartStore.Core\Plugins\PluginManager.cs:286
SmartStore.Core.Plugins.<LoadPluginDescriptors>d__28.MoveNext() in I:\Smartstore\SmartStoreNET-3.0.3\SmartStoreNET-3.0.3\src\Libraries\SmartStore.Core\Plugins\PluginManager.cs:232
System.Linq.Buffer`1..ctor(IEnumerable`1 source) +201
System.Linq.Enumerable.ToArray(IEnumerable`1 source) +77
SmartStore.Core.Plugins.PluginManager.Initialize() in I:\Smartstore\SmartStoreNET-3.0.3\SmartStoreNET-3.0.3\src\Libraries\SmartStore.Core\Plugins\PluginManager.cs:119

[InvalidOperationException: The pre-application start initialization method Initialize on type SmartStore.Core.Plugins.PluginManager threw an exception with the following error message: The main assembly 'SmartStore.PayStack.dll' for plugin 'SmartStore.PayStack' could not be found..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +615
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +141
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549

[HttpException (0x80004005): The pre-application start initialization method Initialize on type SmartStore.Core.Plugins.PluginManager threw an exception with the following error message: The main assembly 'SmartStore.PayStack.dll' for plugin 'SmartStore.PayStack' could not be found..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10042604
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2556.0



#15 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 17 February 2018 - 12:29

I would compare the project properties with another working plugin and I would check where the plugin is now actually copied to. Possible reasons are:
- The root folder of the plugin must contain a Description.txt file which is copied to plugin output folder ("Copy to output drircetory" in VS file properties)
- The output path in the project properties must be set to ..\..\Presentation\SmartStore.Web\Plugins\SmartStore.PayStack\
- The assembly name must be set to SmartStore.PayStack
By the way, it is not necessary to use the prefix "SmartStore". You can use your own organization name, for example Olamide.PayStack

Marcus Gesing

Smartstore AG


#16 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 17 February 2018 - 17:29

Hello Marcus,

 

Thanks a lot for your assistance, i have been able to get the plugin installed by looking at a working plugin, but when i click on the Configure button on the plugin page, i get the error below:

 

Please note that i have references the necessary files such as SmartStore.Web.Framework;

 

System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'. ---> System.Web.HttpCompileException (0x80004005): ...\src\Presentation\SmartStore.Web\Plugins\SmartStore.PayStack\Views\PayStack\Configure.cshtml(11): error CS0103: The name 'T' does not exist in the current context
   at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath)
   at System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.GetCompiledType(String virtualPath)
   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.<>c__DisplayClassa.<EndProcessRequest>b__9()
   at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.<Wrap>b__3()
   at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
   at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)
   at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result)
   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.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.HttpServerUtilityWrapper.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.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues)
   at ASP._Page_Administration_Views_Plugin_ConfigurePlugin_cshtml.Execute() in ...\src\Presentation\SmartStore.Web\Administration\Views\Plugin\ConfigurePlugin.cshtml:line 32
 
 
Thanks in advance


#17 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 19 February 2018 - 11:35

Could you please check Views/Web.config of your plugin. It should look like this one.


Marcus Gesing

Smartstore AG


#18 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 19 February 2018 - 16:17

Hello,

 

Thanks a lot for the assistance, i actually found a way around it by using ViewBag but all the same i have corrected the web.config in the View folder.

 

Finally i have created the plugin but faced with another issue.

 

on checking out, after selecting my plugin and clicking on confirm button, i noticed that the web application keeps rolling without response,

 

in the postProcessPayment method, i am using Redirect to external site to complete the payment by calling an asynchronous method in the method, so don't really know why the confirm payment is not working.

 

Can you assist.

 

Thanks



#19 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 19 February 2018 - 16:51

Difficult to assist without further details or code. You can use PostProcessPaymentRequest.RedirectUrl in PostProcessPayment to redirect to an external payment page by just providing the URL.

Marcus Gesing

Smartstore AG


#20 Olamide

Olamide

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 34 Beiträge

Geschrieben: 19 February 2018 - 19:44

Hello, 

please what is cause of this error

 

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at SmartStore.Admin.Controllers.CommonController.<>c__DisplayClass24_0.<CheckUpdateInternal>b__0() ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace ---<---

 

 

also i noticed that i can't make httpclient calls from my payment plugin

 

thanks