1
Vote

Activation error occured while trying to get instance of type IUserRepository, key ""

description

I have downloaded the code and compiled the same with vs2012, after making some changes in the proj file.

The Compilation is done, but on executing the Web app it give following error

Internal error
Activation error occured while trying to get instance of type IUserRepository, key ""

Exception Stack

An item with the same key has already been added.
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.ArgumentException: An item with the same key has already been added.
Source Error:
Line 7: public class AliasConfiguration : EntityConfiguration<Alias>
Line 8: {
Line 9: public AliasConfiguration()
Line 10: {
Line 11: HasKey(a => a.Id);

Seems I am missing some configuration steps.

comments