Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

MVC 5.0, entity 6, identity 2 - Authentication problem

$
0
0

Hi, 

I was wondering if maybe somebody can help me with my problem.

We just installed a new server in our company - Windows Server 2012R2. I added IIS role on it and tried to start our intranet website.  It showed login screen, I entered credentials and I received and error page like this:

Server Error in '/' Application.


Method not found: 'System.Threading.Tasks.Task`1<!!0> System.Data.Entity.QueryableExtensions.FirstOrDefaultAsync(System.Linq.IQueryable`1<!!0>, System.Linq.Expressions.Expression`1<System.Func`2<!!0,Boolean>>)'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<!!0> System.Data.Entity.QueryableExtensions.FirstOrDefaultAsync(System.Linq.IQueryable`1<!!0>, System.Linq.Expressions.Expression`1<System.Func`2<!!0,Boolean>>)'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

After looking in different forums, reinstalling .NET packages, upgrading all packages in nuggets, I’m still getting the same error.

I thought that maybe it’s my app has errors so I’ve created a simple, MVC project form template in VS 2013. When I start the website it works ok, I can navigate thru pages, but when I try to register new user or login to the app with some credentials I receive exactly the same error.

If anybody can help me out would be much appreciated, I’m fighting with a problem over 2 months already frown

 

Best Regards

Radek


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>