Created attachment 17390 [details]
The part of code that throws the exception
I have a very strange behaviour in my Xamarin.Droid app.
I use the code (cf. attachment) to parse a simple XML SOAP envelope and to create a XDocument.
The problem is that `XDocument.Parse(xmlString)` raises the following MethodAccessException:
`Method 'System.Xml.XmlReader:get_DtdInfo ()' is inaccessible from method 'System.Xml.Linq.XContainer:ReadContentFrom (System.Xml.XmlReader,System.Xml.Linq.LoadOptions)'`
I believe this is an issue because the code is really simple, and the bug does not happen all the time.
Sometime the method works like a charm, and some other time, the method just fail repeatedly, until I relaunch the app.
I don't know if the problem is Xamarin.Droid related only.
It would be great to have some help about this!
Thanks in advance !
The code you're referring to is not specific to Xamarin.Android, therefore I'm going to re-assign this bug to Mono BCL. Please, however, provide a small, self-contained application (it can be console app, XA app, Windows Forms app - the simpler the better) which triggers the issue. This will help the BCL team to investigate the issue.
*** This bug has been marked as a duplicate of bug 41133 ***
Is there any information on this problem?
I was able to fix the problem by simplifying the doctype and xmlns tags in the SVG file.
More here: http://stackoverflow.com/a/42363385/1241612