[Mono-bugs] [Bug 674536] New: monodoc.bat invokes Browser.exe which fails with an exception
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Feb 23 17:43:10 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=674536
https://bugzilla.novell.com/show_bug.cgi?id=674536#c0
Summary: monodoc.bat invokes Browser.exe which fails with an
exception
Classification: Mono
Product: Mono: Doctools
Version: 2.10.x
Platform: x86-64
OS/Version: Windows 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: Gui
AssignedTo: mario.sopena at gmail.com
ReportedBy: mikael at lyngvig.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; da; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)
I previously reported that the "monodoc.bat" file generated by the Mono v2.10
installation program is bogus. It is easy to fix, though, and I did just that.
When I invoke "monodoc.bat", which again invokes "mono.exe" on "Browser.exe", I
get an exception stating that a part of a path could not be found:
****
c:\Documents and Settings\Mikael Lyngvig\Recent>monodoc
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a
part of the path "c:\tmp\install\lib\monodoc\monodoc.xml".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions
options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess
access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String
role, System.Type ofObjectToReturn) [0x00000] in <filename unknown>:0
at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url,
System.String& absoluteUriString) [0x00000] in <filename unknown>:
0
at Mono.Xml2.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable
nt) [0x00000] in <filename unknown>:0
at System.Xml.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable
nt) [0x00000] in <filename unknown>:0
at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in
<filename unknown>:0
at Monodoc.RootTree.LoadTree (System.String basedir) [0x00000] in <filename
unknown>:0
at Monodoc.Driver.LoadTree (System.String basedir, IEnumerable`1 sourcedirs)
[0x00000] in <filename unknown>:0
at Monodoc.Browser..ctor (System.String basedir, IEnumerable`1 sources,
System.String engine) [0x00000] in <filename unknown>:0
at Monodoc.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0
c:\Documents and Settings\Mikael Lyngvig\Recent>
******
The key here is that there has never been such a path (unless the Mono
installation program created it and removed it again) and when you run
"monodoc" from another drive, the drive letter changes in the error message.
Reproducible: Always
Steps to Reproduce:
1. Install Mono v2.10 for Windows.
2. Fix "monodoc.bat" to point to "lib\monodoc\Browser.exe".
3. Run "monodoc.bat".
Actual Results:
Browser.exe crashes on an exception.
Expected Results:
Don't know, was trying to see if Monodoc could help me understand the XML
documentation for the Mono Soft Debugger API - I have never tried monodoc
before.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list