Open Closed

How to create new text template #1669


User avatar
-1
viswajwalith created
  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • **Micro service template

We gone through the link and tried to define new text template https://docs.abp.io/en/abp/latest/Text-Templating#defining-templates

we are unable to trigger TemplateDefinitionProvider, aded to web application while running the application.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

42 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Have you tried removing RemoteService attribute?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Yes, after removing RemoteService also same issue.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the content of /Abp/ServiceProxyScript endpoint with me? liming.ma@volosoft.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    hi

    Can you share the content of /Abp/ServiceProxyScript endpoint with me? liming.ma@volosoft.com

    Responded over Email ....

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Files shared over Email as discussed.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi viswajwalith

    It works for me.

    Yes, after removing RemoteService also same issue.

    Maybe you can re-confirm this.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    hi viswajwalith

    It works for me.

    Yes, after removing RemoteService also same issue.

    Maybe you can re-confirm this.

    Can you please share the updated files back to us for verification

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I sent an email.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    hi

    I sent an email.

    no access to download, I replaied please accescpt the access request

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I have set the permission to access .

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Hi,

    It got succeded after adding the web project in AdministrationSrvice and DownstreamPathTemplate/UpstreamPathTemplate in gateways appsettings.json

    We are facing the iisue when we consuming the text template.

    System.Exception: CreateAssembly failed
    Build failed
    (7,126): error CS0234: The type or namespace name 'EmailTemplates' does not exist in the namespace 'Exceego.EHSWatch.AppV3.AdministrationService' (are you missing an assembly reference?)
    
    
       at Volo.Abp.TextTemplating.Razor.AbpRazorTemplateCSharpCompiler.CreateAssembly(String code, String assemblyName, List`1 references, CSharpCompilationOptions options)
       at Volo.Abp.TextTemplating.Razor.DefaultAbpCompiledViewProvider.GetAssemblyStreamAsync(TemplateDefinition templateDefinition, String templateContent)
       at Volo.Abp.TextTemplating.Razor.DefaultAbpCompiledViewProvider.<>c__DisplayClass6_0.<<GetAssemblyAsync>g__CreateAssembly|0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Volo.Abp.TextTemplating.Razor.DefaultAbpCompiledViewProvider.GetAssemblyAsync(TemplateDefinition templateDefinition)
       at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.RenderTemplateContentWithRazorAsync(TemplateDefinition templateDefinition, String body, Dictionary`2 globalContext, Object model)
       at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.RenderSingleTemplateAsync(TemplateDefinition templateDefinition, String body, Dictionary`2 globalContext, Object model)
       at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.RenderInternalAsync(String templateName, String body, Dictionary`2 globalContext, Object model)
       at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.RenderAsync(String templateName, Object model, String cultureName, Dictionary`2 globalContext)
       at Volo.Abp.TextTemplating.AbpTemplateRenderer.RenderAsync(String templateName, Object model, String cultureName, Dictionary`2 globalContext)
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the full Exception error stack.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Hi,

    full Exception error stack shared over email.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to move the TemplateDefinition related code to Exceego.EHSWatch.AppV3.AdministrationService.Application

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Hi,

    after moving the TextTemplateDefinitionProvider to Applications also same error.

    can we connect remotely and solve it.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can add Applicationand Applications.Contract modules.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    viswajwalith created

    Hi,

    Thank you for your support.

    The solution provided worked for us. Thanks once again for your continuous support.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.