Problem running .NET application

I am having problems running ndoc (I have two versions, both generate the same error; the one I would like to use is from http://jonas.lagerblad.com/blog/). When I try to run NDocConsole.exe, I get the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'NDoc.Core, Version=1.3.1851.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.
File name: 'NDoc.Core, Version=1.3.1851.0, Culture=neutral, PublicKeyToken=null' ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at NDoc.ConsoleApplication.EntryPoint.Main(String[] args)

I have a previous version of ndoc (that does not support .NET 2.0) installed, that will execute but refuses to process my .NET 2.0 files. I know almost nothing about .NET (and especially all the icky security stuff) and am not sure what other information to give or where to find it.

How can I fix this Or, what do I need to find out to troubleshoot this issue


Answer this question

Problem running .NET application

  • orange2

    Ok, I made a copy of NDoc.Core.dll, deleted it, renamed the copy back to NDoc.Core.dll. This file is not locked.

    I suspect an assembly error, but how would I go about fixing it (Or even verifying that this is the cause )

  • ravindranathw

    Solved; it turned out to be a file permission problem. However, this particular version of ndoc is now braindead in that it insists the project path is empty. However, one of the five flavors I now have does work.

    To anyone else having this problem; I would suggest giving 'Everyone' 'Full Control' over NDoc.Core.dll and work backwards from there as needed.

  • hprahul

    http://72.14.221.104/search q=cache:LmKSsFUd680J:ndoc.sourceforge.net/wiki/dotNet_2.0_Support+ndoc+2.0&hl=en&ct=clnk&cd=2

    Although this seems like a particular problem for your installation of NDoc. Maybe some other process has the file locked. You can use a tool like ProcessExplorer to troubleshoot this.


  • Andrew Petrochuk

    It's nice to say how you solved it, just in case someone else has the same problem :).
  • Problem running .NET application