Server side claims caching with Owin Authentication

OWIN cookie authentication middleware doesn’t support session caching like feature yet. #2 is not an options. #3 is the right way to go. As Prabu suggested, you should do following in your code: OnResponseSignIn: Save context.Identity in cache with a unique key(GUID) Create a new ClaimsIdentity embedded with the unique key Replace context.Identity with the … Read more

System.Net.Http version conflict causing build warning

You can try the workaround mentioned in this Microsoft Connect bugreport. Or you can try and add something like this to your Web.config: <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <dependentAssembly> <assemblyIdentity name=”System.Net.Http” publicKeyToken=”b03f5f7f11d50a3a” /> <bindingRedirect oldVersion=”0.0.0.0-4.0.0.0″ newVersion=”4.0.0.0″ /> </dependentAssembly> </assemblyBinding> </runtime> Edit: This is the workaround in the Connect Bug: modify…….: <Reference Include=”System.Net.Http”> to read ……: <Reference Include=”System.Net.Http, … Read more

IIS Returning Old User Names to my application

I’ve had similar issues lately and as stated in Robert MacLean’s answer, AviD’s group policy changes don’t work if you’re not logging in as the users. I found changing the LSA Lookup Cache size as described is MS KB946358 worked without rebooting or recycling any apppool or services. I found this as an answer to … Read more

Is it possible to change the username with the Membership API

It’s true that the default SQL Membership Provider does not allow username changes. However, there’s no intrinsic reason to prevent users from changing their usernames if you have a valid argument, on your site, to allow it. None of the tables in the SQL database have the username as a key, everything is based on … Read more

How do I prevent IISExpress & My Web Sites folders from cluttering up my My Documents folder?

Microsoft cluttering up my ‘Documents’ folder with all their programs’ (junk) folders drives me insane as well. I have conceded somewhat by creating a Data folder under my Documents folder, where I am pointing all MS apps (and others apps such as Firefox’s profile folder) to for all their (generally unwanted) folders, and with a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)