Autoquery cannot resolve type of object

I get the below error on startup: What could be going wrong because the class is available in the project

03/31/2023 17:04:35 +01:00 RunPostInitPlugin AutoQueryFeature:
System.NotSupportedException: Could not resolve type ‘PositionType’
at ServiceStack.ServiceStackHost.OnStartupException(Exception ex) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceStackHost.cs:line 1073
at ServiceStack.AppHostExtensions.NotifyStartupException(IAppHost appHost, Exception ex) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/AppHostExtensions.cs:line 163
at ServiceStack.GenerateCrudServices.GenerateMissingServices(AutoQueryFeature feature) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack.Server/GenerateCrudServices.cs:line 258
at ServiceStack.AutoQueryFeature.AfterPluginsLoaded(IAppHost appHost) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack.Server/AutoQueryFeature.cs:line 270
at ServiceStack.ServiceStackHost.RunPostInitPlugin(Object instance) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceStackHost.cs:line 1320
03/31/2023 17:04:35 +01:00 OnStartupException
System.NotSupportedException: Could not resolve type ‘PositionType’
at ServiceStack.ServiceStackHost.OnStartupException(Exception ex) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceStackHost.cs:line 1073
at ServiceStack.AppHostExtensions.NotifyStartupException(IAppHost appHost, Exception ex) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/AppHostExtensions.cs:line 163
at ServiceStack.GenerateCrudServices.GenerateMissingServices(AutoQueryFeature feature) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack.Server/GenerateCrudServices.cs:line 258
at ServiceStack.AutoQueryFeature.AfterPluginsLoaded(IAppHost appHost) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack.Server/AutoQueryFeature.cs:line 270
at ServiceStack.ServiceStackHost.RunPostInitPlugin(Object instance) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/ServiceStackHost.cs:line 1320

Please provide relevant context when reporting issues that helps being able to repro the issue, e.g. please provide the class definition and AutoQuery plugin definition.

i started it as a new project from the scratch and the error vanished.

thanks

1 Like