Timeline for DD4T No PageFactory configured
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2013 at 20:48 | comment | added | Thijs | Ok, I found out that the provider I recieved was built against a different version of the ContentDelivery DLL. I've got another error, but I can continue now. | |
Nov 12, 2013 at 20:41 | comment | added | Thijs | That actually helped me, I got an error back from the provider. Maybe you can help me out here. This is the error I got returned: Could not load file or assembly 'Tridion.ContentDelivery, Version=6.1.0.348, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) | |
Nov 12, 2013 at 20:14 | comment | added | Neil | If you're happy Unity is configured and loaded correctly can you try a small piece of test code where you can access the container, something like - var factory = container.Resolve<IPageFactory>(); - to make sure Unity is able to provide you with instances. | |
Nov 12, 2013 at 18:01 | comment | added | Thijs | No all properties are null. | |
Nov 12, 2013 at 17:32 | comment | added | Quirijn | If you put a breakpoint in the method PageController.Page, does it get hit and does the controller's PageFactory property have a value? | |
Nov 12, 2013 at 16:59 | comment | added | Thijs | I've checked with a breakpoint on Application_Start() that it is actually loading the unity configuration. | |
Nov 12, 2013 at 16:53 | comment | added | Neil | So when you debug your project in Visual Studio can you ascertain that Unity is wired up correctly and a PageFactory object can be resolved? Apologies, as I say I haven't used the template but your error suggests Unity is not configured correctly. | |
Nov 12, 2013 at 16:22 | comment | added | Thijs | Yes, as I mentioned before, I've used the Visual Studio Template as a guide and copied the Unity configuration over to my project. | |
Nov 12, 2013 at 16:18 | history | answered | Neil | CC BY-SA 3.0 |