Just after upgrading, what is working before is not working anymore.
I tried removing ValidationFeature
from configuration but the same error appears in another part.
I am using ServiceStack.NetFramework and .NET Framework 4.8
Server Error in '/' Application.
Le type utilisé dans l'expression TypeAs doit être de type référence ou Nullable, System.Boolean n'est aucun de ces deux types
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.ArgumentException: Le type utilisé dans l'expression TypeAs doit être de type référence ou Nullable, System.Boolean n'est aucun de ces deux types
Source Error:
Line 196:
Line 197: // This method scans the assembly for validators
Line 198: Container.RegisterValidators(typeof(CustomerService).Assembly);
Line 199: Container.RegisterServices(ReuseScope.None);
Line 200:
Source File: D:\Projects\gecko\src\gui\Ksm.Gecko.Gui.WebMvc\AppHost.cs Line: 198
Stack Trace:
[ArgumentException: Le type utilisé dans l'expression TypeAs doit être de type référence ou Nullable, System.Boolean n'est aucun de ces deux types]
System.Linq.Expressions.Expression.TypeAs(Expression expression, Type type) +2808899
Funq.<>c__DisplayClass141_0.<CreateServiceCollectionFactory>b__1(ParameterInfo x) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Funq/Container.ServiceCollection.cs:62
System.Linq.WhereSelectArrayIterator`2.MoveNext() +58
System.Linq.Buffer`1..ctor(IEnumerable`1 source) +204
System.Linq.Enumerable.ToArray(IEnumerable`1 source) +79
Funq.Container.CreateServiceCollectionFactory(Type type) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Funq/Container.ServiceCollection.cs:60
Funq.Container.CreateFactory(ServiceDescriptor item) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Funq/Container.ServiceCollection.cs:31
Funq.Container.Add(ServiceDescriptor item) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Funq/Container.ServiceCollection.cs:120
ServiceStack.ServiceCollectionExtensions.Add(IServiceCollection services, Type serviceType, Type implementationType, ServiceLifetime lifetime) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceCollectionExtensions.cs:86
ServiceStack.Validation.ValidationExtensions.RegisterValidator(IServiceCollection services, Type validator, ServiceLifetime lifetime) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Validation/ValidationFeature.cs:509
ServiceStack.Validation.ValidationExtensions.RegisterValidators(IServiceCollection services, ReuseScope scope, Assembly[] assemblies) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Validation/ValidationFeature.cs:467
ServiceStack.Validation.ValidationExtensions.RegisterValidators(IServiceCollection services, Assembly[] assemblies) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Validation/ValidationFeature.cs:457
Ksm.Gecko.Gui.WebMvc.AppHost.Configure(Container container) in D:\Projects\gecko\src\gui\Ksm.Gecko.Gui.WebMvc\AppHost.cs:198
ServiceStack.ServiceStackHost.Init() in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceStackHost.cs:279
Ksm.Gecko.Gui.WebMvc.MvcApplication.Application_Start() in D:\Projects\gecko\src\gui\Ksm.Gecko.Gui.WebMvc\Global.asax.cs:64
[HttpException (0x80004005): Le type utilisé dans l'expression TypeAs doit être de type référence ou Nullable, System.Boolean n'est aucun de ces deux types]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10092311
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +123
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +181
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +228
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +314
[HttpException (0x80004005): Le type utilisé dans l'expression TypeAs doit être de type référence ou Nullable, System.Boolean n'est aucun de ces deux types]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10072228
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9191.0