I'm Using Razor Mediator and when I publishing i'm getting unable to get template type with id:8 while publishing.
Razor seems to be registered with different id or its not installed at your CMS server, but template expecting it with Id:8
Tridion.ContentManager.config, it should be like below:
<add id="8" name="RazorTemplate" mimeType="text/x-tcm-cshtml" hasBinaryContent="false" contentHandler="Tridion.Extensions.Mediators.Razor.RazorContentHandler, Tridion.Extensions.Mediators.Razor, Version=126.96.36.199, Culture=neutral, PublicKeyToken=5eeceedb34d9dfd7"> <webDavFileExtensions> <add itemType="TemplateBuildingBlock" fileExtension="cshtml" /> </webDavFileExtensions> </add>
If your Publisher is out-scaled to another server (separate to your Content Manager server), then you will also need to install, and configure, the Razor Mediator on that server too.
It is also worth noting that you have to restart the
Tridion Publisher Windows Service after installing (or making any configuration changes to) the Razor Mediator.