I am trying to setup DD4T with MVC 3, but I am getting 404 error when I try to view page in browser using /index.aspx
Following are the details which I have done for this DD4T setup :
- Created PT and CT using DD4T templates.
- Created page based on DD4T PT and published to broker.
- Made required changes in the cd_storage config file, so that published content should go to broker database.
- Verified that page is successfully published to broker.
- Created project based on DD4T template in Visual studio.
- Added a required Tridion jars and config files in bin folder of the website.
Can anyone please let me know why I am getting this error. How MVC3 and DD4T project takes reference from broker?
Update
We have a Page controller which implements TridionControllerBase
. We have a route defined in global.asax
as
routes.MapRoute("TridionPage", "{PageId}",
new { controller = "Page", action = "Page" },
new { pageId = @"^(.)?$" } // Parameter constraints );
Details regarding Content Delivery instance:
Bin - Tridion.ContentDelivery
, Tridion.ContentDelivery.Configuration
and Tridion.ContentDelivery.Interop
DLLs
Config - cd_storage
and cd_dynamic
config files
Lib - Tridion
jars
File Version - 1.26, File Description - DD4T.MVC
TridionControllerBase
? - Do you have a route defined that maps requests to this controller? (To the 'Page'Method
) DD4T uses the OOTB Tridion Content Delivery API to retrieve content from the Broker DB. So your website should have a valid Content Delivery Instance (dll's, bin\lib, bin\config)