Error loading xslt file in c#

时间:2015-07-13 21:02:03

标签: c# asp.net .net asp.net-mvc xslt

I have an asp.net-mvc web application. My controller has a class that has a method to transform a xml using xslt file. In XslCompiledTransform.Load, I am passing the Uri of my xslt file. The xslt file is under Models->Services. When I run the application locally, it is throwing me a FileNotFoundException which says "Could not find C:\Program Files (x86)\IISExpress\Namespace.Models.Services.example.xslt". My code snippet looks like,

XslCompiledTransform xslTransformRequest = new XslCompiledTransform();
xslTransformRequest.Load("Namespace.Models.Services.example.xslt");

Could someone guide me through this?

0 个答案:

没有答案