Object reference not set to an instance of an object in ContainerControllerFactory.GetControllerInstance
I have a solution where I have added a new page. When I click the button to open that page, I get the error shown in the screenshot below.
I ahve added pages before and never had this problem. I've compared the new page and controllers to the previous ones I made and everything looks good, altough I will admit I might have stared myself blind on it by now.
In any case, does anyone know what this error might suggest is the problem? I feel like it could be something about the registration of the dependency injection, but none of my other pages or controllers seem to be registered anywhere.
I had a look in the log and noticed Umbraco seemed to be looking for a controller with a different name than I expected - turns out I had misspelled the folder name I put the controller in. I believe a 'doh' is in order 😂
Object reference not set to an instance of an object in ContainerControllerFactory.GetControllerInstance
I have a solution where I have added a new page. When I click the button to open that page, I get the error shown in the screenshot below.
I ahve added pages before and never had this problem. I've compared the new page and controllers to the previous ones I made and everything looks good, altough I will admit I might have stared myself blind on it by now.
In any case, does anyone know what this error might suggest is the problem? I feel like it could be something about the registration of the dependency injection, but none of my other pages or controllers seem to be registered anywhere.
Hi Susanne
Can you check the log? Have a look at /app_data/Logs Or Log viewer in Umbraco back-office.
Thanks,
Alex
I had a look in the log and noticed Umbraco seemed to be looking for a controller with a different name than I expected - turns out I had misspelled the folder name I put the controller in. I believe a 'doh' is in order 😂
Thank you for the tip about the log 👍
I think we have all done that before :)
You are always welcome!
is working on a reply...