HTTP Error 500.30 after installation of mobile app plugin

2 месяца назад
Hi,

Is there anyone met same issue I had? ASP.NET Core app failed to start with HTTP Error 500.30 after installation of mobile app plugin in my nopCommernce 4.60.

HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app started but threw an exception during startup
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
2 месяца назад
If you still have a problem you can check for errors
Turn on Stdout error logging and restart the webserver
See https://www.selectsystems.com.au/checking-for-errors-on-a-new-installation-of-nopcommerce
2 месяца назад
Thanks, Yidna for your quick reply.  Could you please help me with the exceptions below.

I've observed some exceptions occurring, but I'm confident that the WebApi Plugin (both backend and frontend) has been installed correctly. The version of the WebApi Plugin should be compatible to mobile app plugin, as they was extracted from the package downloaded for the mobile app.

--------------------------------------------------------------------------------------------------------------------------------------------
Unhandled exception. System.Exception: Unable to load one or more of the requested types.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Models.ConfigurationModel' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Services.BaseAuthorizationService' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Controllers.WebApiConfigController' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Models.ConfigurationModel' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Services.BaseAuthorizationService' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Controllers.WebApiConfigController' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, PluginConfig pluginConfig) in E:\Projects\AsianSupermarket\nopCommerce_4.60.4_Source\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationPartManagerExtensions.cs:line 299
System.TypeLoadException: Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Models.ConfigurationModel' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Services.BaseAuthorizationService' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'Nop.Plugin.Misc.WebApi.Framework.Controllers.WebApiConfigController' from assembly 'Nop.Plugin.Misc.WebApi.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   --- End of inner exception stack trace ---
   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, PluginConfig pluginConfig) in E:\Projects\AsianSupermarket\nopCommerce_4.60.4_Source\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationPartManagerExtensions.cs:line 329
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, WebApplicationBuilder builder) in E:\Projects\AsianSupermarket\nopCommerce_4.60.4_Source\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 96
   at Program.<Main>$(String[] args) in E:\Projects\AsianSupermarket\nopCommerce_4.60.4_Source\src\Presentation\Nop.Web\Program.cs:line 38
2 месяца назад
What is the mobile app ?
Do you have the source code ?
If third party developer app then contact them for support

2 месяца назад
I purchased this mobile app, and it came with a configuration plugin.

https://docs.nopcommerce.com/en/developer/mobile-app/index.html
2 месяца назад
Hi,
You will find the solution to your question in this topic - https://www.nopcommerce.com/en/boards/topic/98480/installation-of-mobile-app-nopcommerce-plugin.
2 месяца назад
Thanks, Dmitriy. It is working now after Misc.NopMobileApp and Nop.Plugin.Misc.WebApi.Framework were added into the project, and then complied. It looks that the NopMoibleApp can't be applied into the framework by just adding as a plugin.