richardb
richardb

Reputation: 983

Method may only be called on a Type for which Type.IsGenericParameter is true after upgrading ServiceStack app to NetCore 3

After upgrading a ServiceStack based api app from NetCore 2.x to NetCore 3.0, my Angular app is receiving errors from the api when the server tries to return the response from what I can see.

ServiceStack.Host.Handlers.HttpAsyncTaskHandler: 2019-10-25 21:50:26,248 [22] DEBUG ServiceStack.Host.Handlers.HttpAsyncTaskHandler - CreateRequestAsync/requestParams:
ServiceStack.Host.Handlers.HttpAsyncTaskHandler: 2019-10-25 21:50:26,249 [12] DEBUG ServiceStack.Host.Handlers.HttpAsyncTaskHandler - CreateRequestAsync/requestParams:
ServiceStack.ServiceStackHost: 2019-10-25 21:50:26,276 [4] ERROR ServiceStack.ServiceStackHost - ServiceBase<TRequest>::Service Exception
System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
   at System.RuntimeType.get_DeclaringMethod()

Any tips as to what this issue is?

Upvotes: 1

Views: 551

Answers (1)

richardb
richardb

Reputation: 983

Upgrade to v5.7.1 as per @mythz excellent suggestion.

"In that case can you download the latest v5.7.1 on MyGet as it's sounds like the GetRawBody() issue in .NET Core 3.0 which has since been resolved."

Upvotes: 1

Related Questions