Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a recent issue using unity bootstrapper on a current project.

    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            //Error following line
            Bootstrapper bootstrapper = new Bootstrapper();
            //CS0144  Cannot create an instance of the abstract class or interface 'Bootstrapper'
            bootstrapper.Run();
        }
    }
}
//BOOTSTRAPPER has no build errors


What I have tried:

Compared to similar example projects on github and elsewhere.
Posted
Updated 16-Jan-18 1:56am
Comments
TABiSH777 16-Jan-18 4:34am    
What exactly is Bootstrapper in your project?

1 solution

The error is telling you that Bootstrapper is an abstract class. You need to provide your own concrete implementation of Bootstrapper, i.e. one that derives from Bootstrapper, and use that instead.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900