Admin Panel Not Loading After Fresh nopCommerce Installation

2 months ago
Hello

I recently performed a fresh installation of nopCommerce on my server; following all the standard steps outlined in the documentation. The installation process completed successfully & the front-end store loads without any issues. However, when I try to access the admin panel by navigating to /admin, I get either a blank screen or a "500 Internal Server Error." There are no immediate error messages displayed; making it difficult to diagnose the problem.

To troubleshoot, I checked the server logs and found some references to missing dependencies & potential permission issues. I verified that the required .NET version is installed, the App_Data folder has the correct write permissions & the web.config settings are properly configured. Despite these checks, the admin panel still refuses to load. I'm unsure if this is a database migration issue, a caching problem / something else entirely.
Checked https://docs.nopcommerce.com/en/installation-and-upgrading/installing-nopcommerce/index.html-Selenium resources, and found it quite informative.

Has anyone else encountered this problem after a fresh installation? Are there specific settings / server configurations that might cause the admin panel to fail while the front-end remains accessible? Any insights or troubleshooting tips would be greatly appreciated!


Thank you!!
2 months ago
You should also check the last entry of your Log table in database
2 months ago
HI catherinebennett,

There is no prerequisite configuration except system minimum configuration.

If you still have a problem just connect with me I'll help you.

2 months ago
E.g., SQL for Log table
SELECT top 20 * FROM Log ORDER BY Id DESC
1 month ago
Hello Yes I seem to have the same issue - new install of 4.80  and when I try the Admin page I get this error message .

We're sorry, an internal error occurred.
Our supporting staff has been notified of this error and will address the issue shortly.
We apologize for the inconvenience.
Please try clicking your browsers 'back' button or try reloading the home page.
If you continue to receive this message, please try again in a little while.
Thank you for your patience.

This is the error from the log in the database:

System.IO.FileNotFoundException: No files found matching exist in an asset /nopcommerce/lib_npm/jquery/jquery.min.js     at WebOptimizer.Asset.ExpandGlobs(IAsset asset, IWebHostEnvironment env)     at WebOptimizer.Asset.GenerateCacheKey(HttpContext context, IWebOptimizerOptions options)     at Nop.Web.Framework.WebOptimizer.NopAssetHelper.CacheBusting(IAsset asset)     at Nop.Web.Framework.TagHelpers.Shared.NopScriptTagHelper.ProcessAsset(TagHelperOutput output)     at Nop.Web.Framework.TagHelpers.Shared.NopScriptTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)     at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)     at AspNetCoreGeneratedDocument.Areas_Admin_Views_Shared__AdminScripts.ExecuteAsync()     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)     at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)     at AspNetCoreGeneratedDocument.Areas_Admin_Views_Shared__AdminLayout.<>c__DisplayClass30_0.<<ExecuteAsync>b__0>d.MoveNext()  --- End of stack trace from previous location ---     at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()     at AspNetCoreGeneratedDocument.Areas_Admin_Views_Shared__AdminLayout.ExecuteAsync()     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter)     at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)     at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)     at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)     at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)     at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)     at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultFilters>g__Awaited|28_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)     at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)     at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)     at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)     at Nop.Services.Authentication.AuthenticationMiddleware.InvokeAsync(HttpContext context)     at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|10_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)     at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)     at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)     at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)     at Nop.Services.Installation.InstallUrlMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper)     at Nop.Services.Common.KeepAliveMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper)     at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)     at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)     at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

I have confirmed that the (jquery.min.js)  file   86K   is the correct folder.
\nopcommerce\wwwroot\lib_npm\jquery

AND i confirmed the permission on the folder and the account running the IIS AppPool are good so the file should be reachable?

I'm not sure what else to check - has anyone else seen this behavior?

Much Appreciated!
1 month ago
please advise thx much.
1 month ago
[email protected] wrote:
... new install of 4.80  ...

That's odd, because the issue was fixed
https://github.com/nopSolutions/nopCommerce/issues/7201
1 month ago
I am having the same issue. However my site is with a 3rd party hosting company who did the install and I am just supposed to edit the site from nopcommerce back end.

I did 2 things, tried installing a theme plugin and messed with the Captcha settings, and now my hosting company is trying to fix the issue, however it's been 2 days since I notified them and the issue is not resolved.

Is there something I can advise them to try, as I have hundreds of products I need to get uploaded and site layout and function to concern myself with, and I cannot access the site.

Thank you
1 month ago
FAPPhx wrote:
I am having the same issue. ...

Just to clarify...  
What version of nopCommerce?
Are you getting this exact error in the log?
System.IO.FileNotFoundException: No files found matching exist in an asset /nopcommerce/lib_npm/jquery/jquery.min.js  


See this about Checking for Errors on a New Installation of NopCommerce
1 month ago
Version 4.8.. My Hosting Company was able to fix it,  Here is what they told me

"We found the issue. Captcha wasn't the root issue, once I had that disabled it showed us the error page. Turns out there is a bug in this version of nopcommerce that shows you that error page instead of the access denied page when you don't have an allowed IP... so we ended up with the perfect storm of not being able to access anything AND having an error page which threw us off.

We went ahead and cleared out that setting so that the issue isn't occurring anymore."

IDK if that helps or not.. But hopefully all you IT people can get use of this info.