Posted on: 11/14/2014 12:38:56 AM | Views : 1080

Hello
I am getting the following error that is stopping me from seeing my aspx files in my browser:
BC30451: 'DefaultAuthenticationTypes' is not declared. It may be inaccessible due to its protection level.
In my Startup.Auth.vb file, which the error refers to, I have blue underlines under 'DefaultAuthenticationTypes':
app.UseCookieAuthentication(New CookieAuthenticationOptions() With { .AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, .LoginPath = New PathString("/Account/Login")}) app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie) That seems to relate to 'Imports Microsoft.AspNet.Identity' which I have in all my aspx.vb files, and I have updated 'Indentity' in Web.config:
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependen ...

Go to the complete details ...