How to debug a text template in Visual Studio?
To debug a text template, you should understand the steps of the template transformation process. Different kinds of errors can occur within each step. The steps are as follows. Code is generated from the text template. Errors in directives, or mismatched or disordered <#…#> tags. When you save the template or invoke text transformation.
Why is Visual Studio unable to start debugging on the web server?
(Open Properties > Web > Servers or Properties > Debug depending on your project type.) This error may occur when debugging locally because Visual Studio is a 32-bit application, so it uses the 64-bit version of the remote debugger to debug 64-bit applications.
How to tell if a server is unavailable for debugging?
See Check your IIS Configuration. If these settings are already correct and you are debugging locally, also verify that you are connecting to the correct server type and URL (in Properties > Web > Servers or Properties > Debug, depending on your project type). (503) Server Unavailable.
Why is my debugger not connecting to my computer?
The debugger cannot connect to the remote computer If you are debugging locally, open your project properties in Visual Studio and make sure that the project is configured to connect to the correct Web server and URL. (Open Properties > Web > Servers or Properties > Debug depending on your project type.)
What happens when you cannot find a template in Visual Studio?
Occurs when you cannot find an included template. The message provides the name of the requested include file. Be sure that the file path is relative to the original template path, or that the file is in a location that is registered with the host, or that there is a full path to the file.
What happens when I ignore multiple template directives?
Multiple output directives were found in the template. All but the first one will be ignored. Occurs when multiple output directives are specified in a template file. The message provides the line number of the duplicate output directive. Remove duplicate output directives. Multiple template directives were found in the template.
Why does Visual Studio stop working on a T4 template?
“Expression too complex” when processing a design-time template or compiling a runtime (preprocessed) template. Visual Studio stops working when attempting to inspect code generated by a runtime template. Text block is too long. T4 converts text blocks to a string concatenation expression, with one string literal for each template line.