[Mono-aspnet-list] Expired cookie causes NullReferenceException - Mono / MVC5 ASP.Net

Will Tyler will at ndl.cc
Wed Sep 27 04:15:11 UTC 2017


Hi,
I'm new to the group and looking for some insight on a problem that I can't
seem to figure out.  I have an ASP.Net MVC5 application running on Ubuntu
using Mono, Apache, and PostgreSQL.  When the authentication cookie expires
(such as when I re-visit the app 30 minutes later), I get a
System.NullReferenceException.

I'm just using simple forms based authentication.  No external providers,
nothing Windows specific (that I'm aware of), no two-factor authentication,
etc.  I'm at a loss here.  The only way to regain access to the site is to
delete cookies, open in another browser or incognito window, or restart
apache.

Has anyone run into this problem before?

Thanks in advance for any input.

Will (will at ndl.cc)

This is the output:

System.NullReferenceExceptionObject reference not set to an instance of an
object

*Description:* HTTP 500.Error processing request.

*Details:* Non-web exception. Exception origin (name of application or
object): System.Web.
*Exception stack trace:*
at System.Web.Profile.ProfileModule.OnEnter (System.Object o,
System.EventArgs eventArgs) <0x411ff2e0 + 0x0003b> in <filename unknown>:0
at System.Web.HttpApplication+<RunHooks>c__Iterator0.MoveNext ()
<0x4114c090 + 0x00552> in <filename unknown>:0 at
System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () <0x41140000 +
0x031be> in <filename unknown>:0 at System.Web.HttpApplication.Tick ()
<0x41138560 + 0x00057> in <filename unknown>:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-aspnet-list/attachments/20170927/49c9236e/attachment.html>


More information about the Mono-aspnet-list mailing list