c# - SignalR and OwinContext = System.ObjectDisposedException -
i have asp.net application using signalr. when try call owincontext (in signalr hub), got system.objectdisposedexception.
i use owincontext :
context.request.gethttpcontext().getowincontext().getusermanager<applicationusermanager>();
here startup class:
app.usecookieauthentication(new cookieauthenticationoptions { authenticationtype = defaultauthenticationtypes.applicationcookie, authenticationmode = authenticationmode.active, provider = new cookieauthenticationprovider { onvalidateidentity = securitystampvalidator.onvalidateidentity<applicationusermanager, applicationuser>( validateinterval: timespan.fromminutes(30), regenerateidentity: (manager, user) => user.generateuseridentityasync(manager)) }, cookiename = "aspnetidentityauth", cookiedomain = configurationmanager.appsettings["cookiedomain"] });
all works fine on w7 dev machine iisexpress. problem appear on w2012r2 server iis8.5.
any ideas ?
Comments
Post a Comment