I used the latest build of IKVM (7.0.4335.0) to convert the newest version of HtmlUnit (2.9) to .Net. However, when I attempt to create a WebClient object, it throws an error saying, "Provider 'com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl' not found" I thought this was strange because I had included all the needed assemblies in my project.
I then decided to try to see if I could reach this namespace/class and got as far as com.sun.org.apache.xerces, but then when I tried to type internal, the only option that I had via intellisense was '@internal'.
Therefore, com.sun.org.apache.xerces.@internal.jaxp.DocumentBuilderFactoryImpl exists, but com.sun.org.apache.xerces.internal.jaxp.DocuementBuilderFactoryImpl does not exist. This obviously poses a problem when it can't find the right namespace. Any suggestions?
You should not use packages with name internal directly. This are internal packages and can change in the future.
The @ character is C# syntax to access names that are reserved keywords. The word "internal" is a keyword in the C# syntax. This means the C# compiler change com.sun.org.apache.xerces.@internal to com.sun.org.apache.xerces.internal.