1) I try run process TcmTemplateDebugHost.exe. This process require "serviceName" parametr. Could you tell, please, where I can see this parameter ?

2) I want to upload a new assembly (with .pdb file), but an assembly with the same name already exists on the SDL. Can I load a new assembly over an existing one using TcmUploadAssemly.exe? This is needed to upload .pdb file.


2 Answers 2


In response to your first question: you are not supposed to start TcmTemplateDebugHost.exe yourself; it is started automatically when you run/debug a template in the Template Builder application.

In the log window of Template Builder you can see the Process ID (PID) of the TcmTemplateDebugHost process which was started (on the server). This allows you to attach a (remote) debugger to the process. It you then run the template once more in Template Builder, you should hit breakpoints in your debugger.


In response to your second question: Can I load a new assembly over an existing one using TcmUploadAssemly.exe?

The answer is yes, you can.

You'll (hopefully, obviously!) want to make sure that the templating DLL that you're uploading is a new (or at lease the same) version of the original one and that all of the TBBs that are in the original one are also in the new one. You'll probably also want to download the existing one from the CME as a backup.

  • Thank You for answer. When I trying to upload existing on SDL assembly (using exactly TcmUploadAssemly), I get next exception: "Cannot generate template with name {TBB_name}, since a non-generated template is already present". Yes, I understand what this error says, but I do not want to delete the existing assembly on SDL. Why am I getting this error if SDL allows upload a new assembly on top of an existing one ?. Commented Feb 10, 2020 at 13:22
  • It sounds like one (or more) of the TBBs was created manually last time, rather than using the TcmUploadAssembly.exe approach. Given that you only need the new version of the DLL (and PDB) for debugging, you could upload it to a different folder and then re-plumb your CTs and PTs to use the new TBBs as necessary and then switch them back afterwards (or move all templates over to the new TBBs) Commented Feb 11, 2020 at 4:56
  • 1
    No need to use a different folder. The tool determines whether a tbb was created by the TcmUploadAssembly or not by the existence of a comment at the beginning of the tbb's source "...this template building block was generated...". if you wish to run the tool in the same folder, make sure to add the exact same comment in all the tbb-s by hand. You can copy the comment over from an existing tbb.
    – Atila Sos
    Commented Feb 11, 2020 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.