Dear All,

 

 

I’m having a problem generating documentation on our build server with the ndoc task.  I actually removed this target from our build process some time back because of some other problems we were having.  These I think are now fixed so I’ve reintroduced the documentation step.  The problem is of course that we protect most of the public types / members in our assemblies with the StrongNameIdentityPermission attribute, so when running NDoc my build is failing because of the following error:

 

<type>NDoc.Core.DocumenterException</type>

-

            <message>

Error reflecting against the RedGate.LogExplorer.Grid.dll assembly:

Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

</message>

-

            <stacktrace>

 

Server stack trace:

   at NDoc.Core.ReflectionEngine.BuildXml(XmlWriter writer)

   at NDoc.Core.ReflectionEngine.MakeXmlFile(ReflectionEngineParameters rep, String xmlFile)

   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

 

Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at NDoc.Core.ReflectionEngine.MakeXmlFile(ReflectionEngineParameters rep, String xmlFile)

   at NDoc.Core.BaseReflectionDocumenter.MakeXmlFile(Project project, String fileName)

   at NDoc.Documenter.Msdn.MsdnDocumenter.Build(Project project)

</stacktrace>

 

I’ve had a quick shufty at the task documentation but can’t see anything obvious there.  Is there some way to pass a reference to our private key to NDoc (or something like that) which will allow it to reflect these members, or am I just in a whole world of trouble?  Clearly if this turns out to be an NDoc issue rather than something to do with the way I’m (mis)using the NAnt task I’ll need to ask them rather than you.

 

 

Many thanks,

Bart

 

 

======================

Bart Read

Software Engineer

Red Gate Software Ltd

+44 (0) 870 160 0037 ext 31

======================

 

Reply via email to