Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Clever Code
  4. controller.v [modified]

controller.v [modified]

Scheduled Pinned Locked Moved Clever Code
asp-netcsharpcomdockertools
5 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Todd Smith
    wrote on last edited by
    #1

    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

    L T 2 Replies Last reply
    0
    • T Todd Smith

      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

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Probably a bug in MVC, they have been actively introducing them.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 beta 1 - out now!
      ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

      1 Reply Last reply
      0
      • T Todd Smith

        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

        T Offline
        T Offline
        Thomas Weller 0
        wrote on last edited by
        #3

        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.

        P T 2 Replies Last reply
        0
        • T Thomas Weller 0

          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.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Linq is unnatural.

          1 Reply Last reply
          0
          • T Thomas Weller 0

            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.

            T Offline
            T Offline
            Todd Smith
            wrote on last edited by
            #5

            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 named v which resulted in an obscure exception message. Another good tip is to add routes.IgnoreRoute ("favicon.ico"); or you'll get an error on that one as well.

            Todd Smith

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups