November 2016 Entries

Roslyn XsltCompile issues

I recently was in the process of upgrading a VS2013 project to VS2015. I created a new VB Web Application project and it addded the Roslyn compiler components.In the project were several xsltCompiledTransform calls. There were no compile errors, but during runtime when the xslt.Load method was called, an error was raised: Exception Details: System.Xml.Xsl.XslLoadExcep... Type 'Global.System.Web.HttpRequ... is not defined.It took me a while to figure out that the xslt sheet contained a <msxsl:script ......