Close

Application startup exception ? help

Anders
5 years ago
#14750 Quote
Avatar
  • 4
We are helping a client, making the correct development setup, but when we add the 7Spikes plugins and try to run the solution we get this error (nop 4.0):
Application startup exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at <PrivateImplementationDetails>{1D1EA875-20B1-40D0-B9F5-51BC45DAE49A}.0DA619D6-F761-4322-AD87-0277C231D5E5.(Int32 , Int32 , Int32 )
   at <PrivateImplementationDetails>{1D1EA875-20B1-40D0-B9F5-51BC45DAE49A}.0DA619D6-F761-4322-AD87-0277C231D5E5.B()
   at SevenSpikes.Nop.Plugins.HtmlWidgets.DependancyRegister..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Nop.Core.Infrastructure.NopEngine.<>c.<RegisterDependencies>b__6_0(Type dependencyRegistrar)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at Nop.Core.Infrastructure.NopEngine.RegisterDependencies(NopConfig nopConfig, IServiceCollection services, ITypeFinder typeFinder)
   at Nop.Core.Infrastructure.NopEngine.ConfigureServices(IServiceCollection services, IConfigurationRoot configuration)
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfigurationRoot configuration)
   at Nop.Web.Startup.ConfigureServices(IServiceCollection services)
Boyko
5 years ago
#14753 Quote
Avatar
  • Moderator
  • 1570
Anders wrote:
We are helping a client, making the correct development setup, but when we add the 7Spikes plugins and try to run the solution we get this error (nop 4.0):
Application startup exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at <PrivateImplementationDetails>{1D1EA875-20B1-40D0-B9F5-51BC45DAE49A}.0DA619D6-F761-4322-AD87-0277C231D5E5.(Int32 , Int32 , Int32 )


Hi Anders,

I have seen a similar error only once and it was fixed a long time ago.
Maybe you are using some older version of our products for 4.00.

Could you please elaborate where do you deploy the site i.e Azure and how you upload the plugins i.e from the administration etc?

Another possible issue could be that the memory of the application pool is not enough and the site is restarted and that is why you get this error.

Anyway we will need some more information in order to advise.

Could you please update to the latest version and let me know if you still have this issue?
Regards,
Nop-Templates.com Team
Anders
5 years ago
#14754 Quote
Avatar
  • 4
Hi

I'm trying to run it nopcommerce in visual studio.
This is the versions we are using:
SevenSpikes.Nop.Conditions, Version=4.0.1096.27817
SevenSpikes.Nop.Core, Version=4.0.1096.27817
SevenSpikes.Nop.EntitySettings, Version=4.0.1096.27817
SevenSpikes.Nop.Framework, Version=4.0.1096.27817
SevenSpikes.Nop.Mappings, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.AjaxCart, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.AjaxFilters, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.AnywhereSliders, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.CloudZoom, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.Core, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.FacebookShop, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.InstantSearch, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.JCarousel, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.MegaMenu, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.NopQuickTabs, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.ProductRibbons, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.QuickView, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.SaleOfTheDay, Version=4.0.1096.27817
SevenSpikes.Nop.Plugins.SmartProductCollections, Version=4.0.1096.27817
SevenSpikes.Nop.Scheduling, Version=4.0.1096.27817
SevenSpikes.Nop.Services, Version=4.0.1096.27817
SevenSpikes.Theme.Emporium, Version=4.0.1052.27302
SevenSpikes.Nop.Plugins.Attachments, Version=4.0.1035.27164
SevenSpikes.Nop.Plugins.AjaxFilters.Pro, Version=4.0.599.26182
SevenSpikes.Nop.Plugins.HtmlWidgets, Version=4.0.599.26182
SevenSpikes.Nop.Plugins.PrevNextProduct, Version=4.0.599.26182

When this is running on the live site it's working great, but not local.
It's a VM with a IIS
Anders
5 years ago
#14755 Quote
Avatar
  • 4
It's pretty easy to test, just download nop 4.0 source, add the plugin's and run it from visual studio, then the error will happen.
Anders
5 years ago
#14756 Quote
Avatar
  • 4
Look's like it's a memory issue! I did a publish to IIS server, and it ran with out any issue!
Boyko
5 years ago
#14757 Quote
Avatar
  • Moderator
  • 1570
Anders wrote:
Look's like it's a memory issue! I did a publish to IIS server, and it ran with out any issue!


Hi Anders,

I believe it is something in your local setup in Visual Studio or just the files are blocked by Windows.
We have many customers using our products (your version of the plugins is a recent one) and no one has reported such an issue. We also work with the plugins locally in Visual Studio all the time and don't have any issues with them.
Could you check if you have to "Unblock" the plugins package when you have downloaded them from our website? Simply right click on the plugin's package and go to Properties -> Unblock. Then extract the content of the Zip file and the file will not be blocked.
Regards,
Nop-Templates.com Team