I am using DD4T to implement SDL Tridion. I have 2 servers (in Datacenters)
- Content Management (Server A)
- Content Delivery (Server B)
I have created a DD4T template in my local machine. In the DD4T Web Site, i have copied the lib and config directories. Now I am getting a runtime Error.
[NullReferenceException: Object reference not set to an instance of an object.]
DD4T.Providers.SDLTridion2013.TridionPageProvider.GetContentByUrl(String Url) +547
DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page) +557
DD4T.Mvc.Controllers.TridionControllerBase.GetModelForPage(String PageId) +109
DD4T.Mvc.Controllers.TridionControllerBase.Page(String pageId) +22
I have few questions:
- How the DD4T application finds the Content Delivery server (Server B), although it is not mentioned anywhere in the config file.
- How to solve the above exception.
- Can we provide Content Delivery URL in the DD4T Website and connect to it from Visual Studio, or do I need to set up a Content delivery instance in my local host environment?
Log errors
014-08-08 11:57:15,766 [21] DEBUG Performance [(null)] - >>TryFindPage (/Test_Page
2014-08-08 11:57:15,813 [21] DEBUG Performance [(null)] - about to load page from cache with key Page_/Test_Page_0
2014-08-08 11:57:15,814 [21] DEBUG Performance [(null)] - finished loading page from cache with key Page_/Test_Page_0, page found = False
2014-08-08 11:57:15,814 [21] DEBUG Performance [(null)] - about to load page content from provider with url /Test_Page
2014-08-08 11:57:15,820 [21] DEBUG Performance [(null)] - >>GetContentByUrl(/Test_Page)
2014-08-08 11:57:15,820 [21] DEBUG Performance [(null)] - GetContentByUrl: about to create query
2014-08-08 11:57:24,228 [21] DEBUG Performance [(null)] - GetContentByUrl: created query
2014-08-08 11:57:24,307 [21] DEBUG Performance [(null)] - GetContentByUrl: added criteria to query
2014-08-08 11:57:24,307 [21] DEBUG Performance [(null)] - GetContentByUrl: about to execute query
2014-08-08 11:57:24,309 [21] DEBUG Performance [(null)] - GetContentByUrl: executed query
logback.xml
file in 'bin\config\logback.xml'