NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.15k stars 1.47k forks source link

Upgrade to 1.4 causes fault #2930

Open bigge32 opened 6 years ago

bigge32 commented 6 years ago

I try to upgrade the simple solution of this old article. (https://visualstudiomagazine.com/articles/2013/03/01/simple-web-uis-with-the-nancy-framework.aspx) but using the last 1.4.4 I always have this error. Someone say to remove the line CookieBasedSessions.Enable(pipelines); from the override ApplicationStartup but it is not a solution. In this way there are no more sessions. Thanks Enrico

Error Details Nancy.RequestExecutionException: Oh noes! ---> System.FormatException: Lunghezza non valida per una stringa o una matrice di caratteri Base 64. in System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) in System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) in System.Convert.FromBase64String(String s) in Nancy.Session.CookieBasedSessions.Load(Request request) in Nancy.Session.CookieBasedSessions.LoadSession(NancyContext context, CookieBasedSessions sessionStore) in Nancy.Session.CookieBasedSessions.<>c__DisplayClass3.b__1(NancyContext ctx) in Nancy.BeforePipeline.<>c__DisplayClass4.b__3(NancyContext ctx, CancellationToken ct) --- Fine della traccia dello stack dell'eccezione interna --- in Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)