I have begun the process of migrating one of our many ServiceStack services from .Net Framework to .Net core. Most of the migration has been relatively smooth, but I have run into a brick wall with Service Models. This service is dependent on using other ServiceStack services that are still on version 4.0. When I attempt to use Service Models from those services in the new project I get an error saying that the IReturn<> interface wants the version 4.0 assembly specifically, and does not want the 5.0 version of ServiceStack.Interfaces. Downgrading just ServiceStack.Interfaces causes a similar error, but the inverse where everything else that depends on that assembly wants version 5.0. Is there a way to upgrade one project without upgrading every project? I think we all know that real systems need a transition period, and that there's just no way to migrate every service simultaneously.
How can I use a Service Model from ServiceStack 4.0 in a ServiceStack 5.0 Project?
53 Views Asked by Sorrien At
1
There are 1 best solutions below
Related Questions in SERVICESTACK
- Disable BasicAuth fallback
- ServiceStack.Redis Timeout with PooledRedisClientManager.IdleTimeOutSecs
- Unable to pass RBAC username of AWS Redis in ServiceStack,Redis. Does ServiceStack.Redis supports RBAC?
- ServiceStack with Windows Auth
- ServiceStack Admin UI respinse not visible
- Using Redis as SessionState store for ASP.NET MVC application on .net 4.8
- Typescript Generation explicitly adds inherited properties to inheriting class after updating to 8.1.2
- Query on C# ASP.NET Core Web App (Model-View-Controller)
- IDX11020: The JSON value of type: 'Number', could not be converted to 'JsonTokenType.String'. Reading: System.IdentityModel.Tokens.Jwt.JwtPayload.jti
- Is there a way to limit DTOs returned back from /types/typescript?
- ServiceStack Proxy returns 200 but doesn't hit server
- How can we use MySql Select Case construct in ORMLite ServiceStack
- Using ServiceStack, is it possible to create Derived Request class?
- Overriding ExecuteAsync on AuthenticateAttribute using Servicestack OrmLite
- How to avoid a ServiceStack API Explorer DTO binding error for a GET request when some of the form inputs are null
Related Questions in SERVICE-MODEL
- Argument to method seems to lose scope when method is invoked
- Why the exception: System.TypeLoadException (Could not load type 'System.ServiceModel.ExceptionHelper') is thrown?
- Why System.ServiceModel does not work with a WPF Project created with Visual studio 2022?
- How do I handle AX timeouts where the operation continues on? Abort not working?
- C# Maintaining old WCF in .NET5 with prior source code
- Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.5.0.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
- How to use ASP.NET 4.8 ConfigBuilders with system.serviceModel section of web.config
- Azure cannot access certificate PrivateKey "Invalid provider type specified"
- Using WCF Service in .Net Core 3.1
- WCF: System.ServiceModel.Configuration nuget package is missing in .NET CORE 3.1
- Error: 'Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0' after deploying Function to Azure
- Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'
- Missing method exception when Hololens app attempts HTTP connection with WCF web service?
- How Can I resolve WS2007HttpBinding WCF Service Binding in .NET Core Client Application
- WCF test client error when using Visual Studio 2017 community edition
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Please read the existing links from this answer:
https://stackoverflow.com/a/51252374/85785
TL;DR you can’t share the same .dll, you either need to multi-target or decouple the binary dependency by using C# Add ServiceStack Reference.
Other solutions is having old Framework projects Reference the old compiled ServiceModell.dll (alternative to multi targeting) or just copy the source code of the DTOs you need (alternative to C# Add ServiceStack Reference).