controller.v [modified]
-
It's always fun learning new technologies all at once such as ASP.NET MVC + Autofac (IoC container) + LinqToSQL and running into some bizzare exception such as the following:
The requested service 'controller.v' has not been registered
Lets see who can guess what the error is :D EDIT: here is the answer[^]Todd Smith
modified on Tuesday, December 2, 2008 1:01 PM
-
It's always fun learning new technologies all at once such as ASP.NET MVC + Autofac (IoC container) + LinqToSQL and running into some bizzare exception such as the following:
The requested service 'controller.v' has not been registered
Lets see who can guess what the error is :D EDIT: here is the answer[^]Todd Smith
modified on Tuesday, December 2, 2008 1:01 PM
-
It's always fun learning new technologies all at once such as ASP.NET MVC + Autofac (IoC container) + LinqToSQL and running into some bizzare exception such as the following:
The requested service 'controller.v' has not been registered
Lets see who can guess what the error is :D EDIT: here is the answer[^]Todd Smith
modified on Tuesday, December 2, 2008 1:01 PM
I don't know Autofac at all, but it sounds like a strange error message from deep inside of it. I assume that because one can say that an IoC-container is about requesting previously registered services. I don't think there is one (or should be) having this weird name. This sounds like part of the 'magic', or maybe it's something that LinqToSQL thinks it should have by the sheer law of nature... :) Regards Thomas
www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software. -
I don't know Autofac at all, but it sounds like a strange error message from deep inside of it. I assume that because one can say that an IoC-container is about requesting previously registered services. I don't think there is one (or should be) having this weird name. This sounds like part of the 'magic', or maybe it's something that LinqToSQL thinks it should have by the sheer law of nature... :) Regards Thomas
www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.Linq is unnatural.
-
I don't know Autofac at all, but it sounds like a strange error message from deep inside of it. I assume that because one can say that an IoC-container is about requesting previously registered services. I don't think there is one (or should be) having this weird name. This sounds like part of the 'magic', or maybe it's something that LinqToSQL thinks it should have by the sheer law of nature... :) Regards Thomas
www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.Thomas Weller wrote:
I assume that because one can say that an IoC-container is about requesting previously registered services. I don't think there is one (or should be) having this weird name. This sounds like part of the 'magic', or maybe it's something that LinqToSQL thinks it should have by the sheer law of nature...
I had many similar thoughts on what it could be. I wasn't able to find it until I downloaded the source code to Autofac and ASP.NET MVC and was able to step through them. It ended up being a copy'n'paste bug. src="v/images/search.gif" should have been something like src="../../Content/images/search.gif". The url
/v/images/search.gif
matches the default/controller/action/id
pattern that MVC looks for. So Autofac was trying to construct a controller object namedv
which resulted in an obscure exception message. Another good tip is to addroutes.IgnoreRoute ("favicon.ico");
or you'll get an error on that one as well.Todd Smith