Entry point was not found exception

前端 未结 12 775
夕颜
夕颜 2020-12-10 00:47

I have installed vs2012 (11.0.50727.1),
I opened a new MVC4 with .NET 4.5 solution,
i create a simple HomeControl

12条回答
  •  失恋的感觉
    2020-12-10 01:30

    Do you have something like this in your Global.asax.cs?

    private static void InitializeDependencyInjectionContainer(HttpConfiguration config)
    {
        container = new UnityContainer();
    
    
        container.RegisterType();
        container.RegisterType();
        container.RegisterType();
        container.RegisterType();
    

    From the stack trace you posted System.Web.Mvc.IDependencyResolver.GetService(Type serviceType) +0 would suggest one (or more) of your dependencies don't resolve.

    You could try commenting one or more of them out and try to narrow down which one is failing to resolve.

提交回复
热议问题