Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An unhandled exception occurred while processing the request. Version 2.2.2.1 #586

Closed
hareesg opened this issue Mar 2, 2025 · 7 comments

Comments

@hareesg
Copy link

hareesg commented Mar 2, 2025

I have installed 2.2.2.1 with mongodb, .net 8.0.101, windows server 2022. installation page is working when i login into admin getting this error.

An unhandled exception occurred while processing the request.
InvalidOperationException: The view 'Index' was not found. The following locations were searched:
/Areas/Admin/Views/Home/Index.en-US.cshtml
/Areas/Admin/Views/Home/Index.en.cshtml
/Areas/Admin/Views/Home/Index.cshtml
/Areas/Admin/Views/Shared/Index.en-US.cshtml
/Areas/Admin/Views/Shared/Index.en.cshtml
/Areas/Admin/Views/Shared/Index.cshtml
/Views/Shared/Index.en-US.cshtml
/Views/Shared/Index.en.cshtml
/Views/Shared/Index.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable originalLocations)

Stack Query Cookies Headers Routing
InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Areas/Admin/Views/Home/Index.en-US.cshtml /Areas/Admin/Views/Home/Index.en.cshtml /Areas/Admin/Views/Home/Index.cshtml /Areas/Admin/Views/Shared/Index.en-US.cshtml /Areas/Admin/Views/Shared/Index.en.cshtml /Areas/Admin/Views/Shared/Index.cshtml /Views/Shared/Index.en-US.cshtml /Views/Shared/Index.en.cshtml /Views/Shared/Index.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable originalLocations)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|30_0<TFilter, TFilterAsync>(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
Grand.Web.Common.Middleware.ContextLoggingMiddleware.InvokeAsync(HttpContext context) in ContextLoggingMiddleware.cs
+
await _next(context);
Grand.Web.Common.Middleware.CultureSettingMiddleware.InvokeAsync(HttpContext context, IWorkContext workContext) in CultureSettingMiddleware.cs
+
await _next(context);
Grand.Web.Common.Middleware.WorkContextMiddleware.InvokeAsync(HttpContext context, IWorkContextSetter workContext) in WorkContextMiddleware.cs
+
await _next(context);
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)

@KrzysztofPajak
Copy link
Member

@hareesg please check the version 2.2.2

@hareesg
Copy link
Author

hareesg commented Mar 4, 2025

@KrzysztofPajak this time (2.2.2.2 ) public page is working but admin page still got error as below

An unhandled exception occurred while processing the request.
InvalidOperationException: The view 'Index' was not found. The following locations were searched:
/Areas/Admin/Views/Home/Index.en-US.cshtml
/Areas/Admin/Views/Home/Index.en.cshtml
/Areas/Admin/Views/Home/Index.cshtml
/Areas/Admin/Views/Shared/Index.en-US.cshtml
/Areas/Admin/Views/Shared/Index.en.cshtml
/Areas/Admin/Views/Shared/Index.cshtml
/Views/Shared/Index.en-US.cshtml
/Views/Shared/Index.en.cshtml
/Views/Shared/Index.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable originalLocations)

Stack Query Cookies Headers Routing
InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Areas/Admin/Views/Home/Index.en-US.cshtml /Areas/Admin/Views/Home/Index.en.cshtml /Areas/Admin/Views/Home/Index.cshtml /Areas/Admin/Views/Shared/Index.en-US.cshtml /Areas/Admin/Views/Shared/Index.en.cshtml /Areas/Admin/Views/Shared/Index.cshtml /Views/Shared/Index.en-US.cshtml /Views/Shared/Index.en.cshtml /Views/Shared/Index.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable originalLocations)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|30_0<TFilter, TFilterAsync>(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
Grand.Web.Common.Middleware.ContextLoggingMiddleware.InvokeAsync(HttpContext context) in ContextLoggingMiddleware.cs
+
await _next(context);
Grand.Web.Common.Middleware.CultureSettingMiddleware.InvokeAsync(HttpContext context, IWorkContext workContext) in CultureSettingMiddleware.cs
+
await _next(context);
Grand.Web.Common.Middleware.WorkContextMiddleware.InvokeAsync(HttpContext context, IWorkContextSetter workContext) in WorkContextMiddleware.cs
+
await _next(context);
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Grand.Web.Common.Middleware.PoweredByMiddleware.InvokeAsync(HttpContext context, IPoweredByMiddlewareOptions options) in PoweredByMiddleware.cs
+
await _next.Invoke(context);
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Grand.Web.Common.Middleware.InstallUrlMiddleware.InvokeAsync(HttpContext context) in InstallUrlMiddleware.cs
+
await _next(context);
Grand.Web.Common.Middleware.DbVersionCheckMiddleware.Invoke(HttpContext context, ICacheBase cacheBase, IRepository repository) in DbVersionCheckMiddleware.cs
+
await _next(context);
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.HandleException(HttpContext context, ExceptionDispatchInfo edi)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

@KrzysztofPajak
Copy link
Member

Please try to install latest version of .net core 8

@S3ezi
Copy link

S3ezi commented Mar 6, 2025

@KrzysztofPajak installed latest version dotnet-sdk-8.0.406 and aspnetcore-runtime-8.0.13. Now both public and admin are not working getting above error.

@KrzysztofPajak
Copy link
Member

What exactly do you run on windows server, sources or compiled version ?

@hareesg
Copy link
Author

hareesg commented Mar 7, 2025

with source on visual studio 2022

@KrzysztofPajak
Copy link
Member

Please update visual studio 2022 to the latest version and rebuild solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants