Site Loader
Auckland, New Zealand
In this post we will discuss about an issue which occurs in Visual studio 2015 with Specflow+Excel plugin
 Unable to cast object System.Xml.XmlComment’ to type ‘System.Xml.XmlElement’
Here is the complete video of the above fix Thanks for reading the post and watching the video!!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

3 Replies to “Unable to cast object System.Xml.XmlComment’ to type ‘System.Xml.XmlElement’ Specflow”

  1. Nice!
    you can make it much shorter – no video, just info:
    in feature csproj file change
    <Project ToolsVersion="14.0"… to <Project ToolsVersion="12.0" …

    same error "Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'" happens when you try to do specfow report:

    nunit-console.exe /labels /out=TestResult.txt /xml=TestResult.xml "%projDll%"
    packages\SpecFlow.1.9.0\tools\specflow.exe nunitexecutionreport "%proj%" /out:_specReport.html

Leave a Reply to Karthik kk Cancel reply

Your email address will not be published. Required fields are marked *