Clicking "Namespace Summaries" gives me this error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog
box.
************** Exception Text **************
NDoc.Core.DocumenterException: Error reflecting
against the mb.dll assembly:
Execution permission cannot be acquired. --->
System.Security.Policy.PolicyException: Execution
permission cannot be acquired.
at System.Reflection.Assembly.nLoad(AssemblyName
fileName, String codeBase, Boolean isStringized,
Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint,
StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad
(AssemblyName assemblyRef, Boolean stringized,
Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String
assemblyFile, Evidence securityEvidence)
at NDoc.Core.BaseDocumenter.MakeXml(Project project)
--- End of inner exception stack trace ---
at NDoc.Core.BaseDocumenter.MakeXml(Project project)
at NDoc.Documenter.Xml.XmlDocumenter.Build(Project
project)
at NDoc.Gui.MainForm.namespaceSummariesButton_Click
(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.ControlNativeWindow.OnMessage
(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc
(Message& m)
at System.Windows.Forms.NativeWindow.Callback
(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.209
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.0.3705/ms
corlib.dll
----------------------------------------
NDocGui
Assembly Version: 1.0.834.35082
Win32 Version: 1.0.834.35082
CodeBase: file:///C:/Program%
20Files/NDoc/NDocGui.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.
0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a
5c561934e089/system.dll
----------------------------------------
NDoc.Core
Assembly Version: 1.0.834.35079
Win32 Version: 1.0.834.35079
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.Core.DLL
----------------------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.3300
.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
NDoc.Core
Assembly Version: 1.0.834.35079
Win32 Version: 1.0.834.35079
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.Core.dll
----------------------------------------
NDoc.Documenter.JavaDoc
Assembly Version: 1.0.834.35080
Win32 Version: 1.0.834.35080
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.Documenter.JavaDoc.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__
b77a5c561934e089/system.xml.dll
----------------------------------------
NDoc.Documenter.Msdn
Assembly Version: 1.0.834.35080
Win32 Version: 1.0.834.35080
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.Documenter.Msdn.DLL
----------------------------------------
NDoc.Documenter.Xml
Assembly Version: 1.0.834.35081
Win32 Version: 1.0.834.35081
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.Documenter.Xml.DLL
----------------------------------------
NDoc.VisualStudio
Assembly Version: 1.0.834.35080
Win32 Version: 1.0.834.35080
CodeBase: file:///C:/Program%
20Files/NDoc/NDoc.VisualStudio.DLL
----------------------------------------
System.Design
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase:
file:///c:/windows/assembly/gac/system.design/1.0.3300.
0__b03f5f7f11d50a3a/system.design.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config
file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms
section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the
machine
rather than being handled by this dialog.
Logged In: YES
user_id=454960
Ok.... Aditional comments. I found out exactly what is
causing this. Ndoc was trying to create docs for a DLL that
was on a network drive. This caused the error.
Renaming title (old one was: Click "Namespace Summaries"
gives error)
Logged In: YES
user_id=919791
The latest nightly builds on CVS have addressed this
limitation.
Assemblies can documented evenif the are on a non-local
drive. Note, however, that managed C++ assemblies must still
reside on a local drive or security exceptions will be raised.
This is due to limitations in the .Net framework assembly
loader which is out of our control....