Menu

Error trying to build

Dan Pupek
2004-07-27
2004-07-31
  • Dan Pupek

    Dan Pupek - 2004-07-27

    I am trying to use VB-Doc with the 0.85 distro of Nant. I have made the changes noted in the previous post (then re-built) but I still get the following error:

    System.InvalidCastException: Specified cast is not valid.
       at VBDOCRunner.RunVBDOC(Options options, IMessageRecipient recipient)
       at NAnt.Tasks.VBDOCTask.ExecuteTask()
       at NAnt.Core.Task.Execute() in c:\Documents and Settings\dpupek.ASTROOT\Deskt
    op\nant-0.85-20040707\src\NAnt.Core\Task.cs:line 176
       at NAnt.Core.Target.Execute() in c:\Documents and Settings\dpupek.ASTROOT\Des
    ktop\nant-0.85-20040707\src\NAnt.Core\Target.cs:line 249
       at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in
    c:\Documents and Settings\dpupek.ASTROOT\Desktop\nant-0.85-20040707\src\NAnt.Co
    re\Project.cs:line 873
       at NAnt.Core.Project.Execute() in c:\Documents and Settings\dpupek.ASTROOT\De
    sktop\nant-0.85-20040707\src\NAnt.Core\Project.cs:line 830
       at NAnt.Core.Project.Run() in c:\Documents and Settings\dpupek.ASTROOT\Deskto
    p\nant-0.85-20040707\src\NAnt.Core\Project.cs:line 898

    Any ideas?

    Thanks

     
    • Markus Palme

      Markus Palme - 2004-07-30

      Make sure to get the newest version of VB.DOC, I fixed a bug in this area in the last release. If it still doesn't work, please let me know and I will take a look at it.

      Regards
      Markus

       
      • Dan Pupek

        Dan Pupek - 2004-07-30

        I have the 0.39 distribution.

         
    • Markus Palme

      Markus Palme - 2004-07-30

      Can you please take a look at the assembly binding log (using fuslogvw.ext) and tell me whether the resolving of CommentExtractor.dll fails?

      Thanks
      Markus

       
      • Dan Pupek

        Dan Pupek - 2004-07-30

        Yes it seems to fail:

        *** Assembly Binder Log Entry  (7/30/2004 @ 3:28:39 PM) ***

        The operation failed.
        Bind result: hr = 0x80070002. The system cannot find the file specified.

        Assembly manager loaded from:  C:\WINNT\Microsoft.NET\Framework\v1.1.4322\fusion.dll
        Running under executable  D:\nant085\bin\NAnt.exe
        --- A detailed error log follows.

        === Pre-bind state information ===
        LOG: DisplayName = CommentExtractor, Version=0.3.9.0, Culture=neutral, PublicKeyToken=null
        (Fully-specified)
        LOG: Appbase = D:\nant085\bin\ LOG: Initial PrivatePath = lib;lib\net\1.1;lib\net
        LOG: Dynamic Base = NULL
        LOG: Cache Base = NULL
        LOG: AppName = NULL
        Calling assembly : (Unknown).
        ===

        LOG: Processing DEVPATH.
        LOG: DEVPATH is not set. Falling through to regular bind.
        LOG: Private path hint found in configuration file: lib.
        LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
        LOG: Post-policy reference: CommentExtractor, Version=0.3.9.0, Culture=neutral, PublicKeyToken=null
        LOG: Attempting download of new URL file:///D:/nant085/bin/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/CommentExtractor/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/CommentExtractor/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/1.1/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/1.1/CommentExtractor/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/CommentExtractor/CommentExtractor.DLL.
        LOG: Attempting download of new URL file:///D:/nant085/bin/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/CommentExtractor/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/CommentExtractor/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/1.1/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/1.1/CommentExtractor/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/CommentExtractor.EXE.
        LOG: Attempting download of new URL file:///D:/nant085/bin/lib/net/CommentExtractor/CommentExtractor.EXE.
        LOG: All probing URLs attempted and failed.

         
      • Dan Pupek

        Dan Pupek - 2004-07-30

        OK, I moved some dependencies around and everything seems to be working (I still had to apply the patch for 0.85).

        VBDOCHANDLER is still reporting failures binding:
        System.windows.forms
        TestReference
        Microsoft.VisualBasic
        System

        These I don't understand since three of them are in the GAC.

        Any Ideas?

         
    • Markus Palme

      Markus Palme - 2004-07-31

      VB.DOC has to load depencies of assemblies you are trying to document, as a result the depencies of the assembly are binded. Looks like the version of the referenced assemblies differ from your installed framework version. Can you affirm this?

       
    • Dan Pupek

      Dan Pupek - 2004-07-31

      I am using the Test Project Provided with the Source. If it references .Net 1.0 that could be the problem.

      Also, it seems like CommentExtractor references the VB.Doc Task assembly AND Vice Versa. This sort of circular referencing is usually discouraged.

       
      • Markus Palme

        Markus Palme - 2004-07-31

        There is no circular reference - commentextractor.dll doesn't reference the task dll.

        1.0 framework depencies are definitively a problem - you should try to get rid of them (if possible).

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.