Migrating web farm to runtime version 4 of asp.net while maintaining session

我只是一个虾纸丫 提交于 2019-12-04 12:38:50

How about load balancing the farm to create "sticky sessions" to stick existing sessions to machines running .net 2.0 and any new sessions to machines running .net 4.0.

Of course this depends on whether your project will withstand running 2 different versions of the project in production at the same time.... As I'm guessing that not only have the .net versions changed but also underlying code in your project. For example will people modifying data in the database from 2 different versions of your project have an impact.

Thus considering it a problem of running multiple versions of your own project, rather than of .net versions' sessions. Looking at it in this angle may make it an easier problem to solve ... or much more difficult :-) depending on your project.

After talking to MS pro support and a prominent member of the community who talked to the asp.net team, the fact that the sessions are not compatible between the app pool versions is by design. It´s also not regarded as a bug or a breaking change by Microsoft, although I´m tempted to disagree. In conclusion - my findings were unfortunately correct and our future release will need some extra operational work to be as smooth as can be.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!