Illegal Characters in Path when loading XSLT document

前端 未结 1 781
北恋
北恋 2021-01-29 11:42

I am creating a method to return an HTML string as the result of an XSLT transformation.

When I run the following code I am getting Illegal Characters in Path error on t

相关标签:
1条回答
  • 2021-01-29 12:32

    There is no need to call File.ReadAllText(path). Just pass the fully qualified file path as follows:

    'var xsltTemplate = File.ReadAllText(path);
    xsltTransform.Load(path);
    
    0 讨论(0)
提交回复
热议问题