Menu

#86 cannot find the assembly VS.NET Addin

open
nobody
5
2005-01-07
2005-01-07
Anonymous
No

Hi,

I've been trying to get this to work in VS.NET 2003 and
I get the following error...see below.

I'm not sure if I'm doing anything wrong. Please could
you advise if I'm making a mistake or what I can do to
resolve this problem.

I'm really looking forward to using this with NDoc and
I really do appreciate all the work you've done on this
product.

Many thanks
Jacques Dros
handofmercy@hotmail.com

---------------------------
VS.NETAddin
---------------------------
System.Runtime.Serialization.SerializationException:
Cannot find the assembly VS.NETAddin, Version=0.3.9.0,
Culture=neutral, PublicKeyToken=null.

Server stack trace:
at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()

at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo
assemblyInfo, String name)

at
System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String
objectName, String[] memberNames, BinaryTypeEnum[]
binaryTypeEnumA, Object[] typeInformationA, Int32[]
memberAssemIds, ObjectReader objectReader, Int32
objectId, BinaryAssemblyInfo assemblyInfo, SizedArray
assemIdToAssemblyTable)

at
System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create(String
name, String[] memberNames, BinaryTypeEnum[]
binaryTypeEnumA, Object[] typeInformationA, Int32[]
memberAssemIds, ObjectReader objectReader, Int32
objectId, BinaryAssemblyInfo assemblyInfo, SizedArray
assemIdToAssemblyTable)

at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped
record)

at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum
binaryHeaderEnum)

at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()

at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage methodCallMessage)

at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean
fCheck, IMethodCallMessage methodCallMessage)

at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream
stm)

at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeMessageParts(MemoryStream
stm)

at
System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.FixupForNewAppDomain()

at
System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[]
reqStmBuff, SmuggledMethodCallMessage smuggledMcm,
SmuggledMethodReturnMessage& smuggledMrm)

at
System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatch(Byte[]
reqStmBuff, SmuggledMethodCallMessage smuggledMcm,
SmuggledMethodReturnMessage& smuggledMrm)

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 VBDOCHandler.Run(String optionsFileName,
IMessageRecipient recipient)

at VBDOCRunner.RunVBDOC(Options options,
IMessageRecipient recipient)

at VS.NETAddin.frmMain.btnGenerate_Click(Object
sender, EventArgs e)
---------------------------
OK
---------------------------

Discussion

  • Markus Palme

    Markus Palme - 2005-01-07

    Logged In: YES
    user_id=560121

    which version of the addin aree you using? 0.4?

     
  • Nobody/Anonymous

    Logged In: NO

    Hi Markus

    I'm using the version that comes with the latest msi
    download. The VS.NET addin version number on the About
    screen is 0.3.9.0.

    Regards
    Jacques

     
  • Markus Palme

    Markus Palme - 2005-01-10

    Logged In: YES
    user_id=560121

    Some assemblie versions got mixed up. I corrected those, it
    works now absolutely perfect for me with VS.NET 2003. The
    new version (0.40-2) will be online in a few minutes.

     
  • Jacques

    Jacques - 2005-01-10

    Logged In: YES
    user_id=1193951

    Hi,

    I tried the new version. I un-installed the old one,
    re-installed the new one and re-booted. Then tried to run
    and I get the same error except the version number is
    different. The version on the about screen is 0.4.0.0.
    Maybe the assembly versions are still mixed up. Do you mind
    checking it again, please.

    Thanks
    Jacques

     
  • Markus Palme

    Markus Palme - 2005-01-10

    Logged In: YES
    user_id=560121

    I don't know what causes this problem. Can you plase take a
    look in the install directory and tell me what files are in it?

     
  • Jacques

    Jacques - 2005-01-11

    Logged In: YES
    user_id=1193951

    Hi,

    The following files are found in the default install directory.
    C:\Program Files\VBDocAddin

    The list of file are as follows: (I've included version
    numbers)
    - CommentExtractor.dll (0.4.0.0)
    - Extensibility.dll (7.0.9466.0)
    - ICSharpCode.SharpRefactoryVB.dll (1.0.1.1667)
    - VS.NETAddin.dll (0.4.0.0)
    - VSLangProj.dll (7.0.9466.0)
    - vslangproj.tlb (no version available)

    Regards
    Jacques

     
  • Markus Palme

    Markus Palme - 2005-01-11

    Logged In: YES
    user_id=560121

    looks correct. As i can't reproduce the behaviour I can only
    suggest to step in with the debugger and see what's happening.

     
  • Jacques

    Jacques - 2005-01-11

    Logged In: YES
    user_id=1193951

    Hi,

    I've had a quick look around..... if I un-install VBdoc,
    none of my VS.NET applications work anymore. Which is a
    little weird. So I did some more digging and I need to ask
    if you're using framework 1.1 with SP1.

    Next, when I go into the registry, it seems that the addin
    has not been added to the following location

    HKEY_CURRENT_USER
    Software
    Microsoft
    VisualStudio
    7.1
    Addins
    VBDOC

    Anything else you can suggest?

    Regards
    Jacques

     
  • Markus Palme

    Markus Palme - 2005-01-12

    Logged In: YES
    user_id=560121

    the registry entry looks ok. i'm using 1.1 with SP1, right.

     
  • Jacques

    Jacques - 2005-01-12

    Logged In: YES
    user_id=1193951

    Hi,

    Thanks for that. The VBDOC registry entry is actually
    missing on my PC.

    Anyway, thanks. I'm going to look into installing SP1.

    Thanks for all your help.
    Jacques

     
  • Markus Palme

    Markus Palme - 2005-01-12

    Logged In: YES
    user_id=560121

    I also have a question: does the standalone version (not the
    addin) work?

     
  • Jacques

    Jacques - 2005-01-13

    Logged In: YES
    user_id=1193951

    Yes the standalone version works in producing the XML file.
    I still need to check SP1 but I think that's the problem.

     
  • Nobody/Anonymous

    Logged In: NO

    I am also getting this error using 1.1 with SP1, and the
    0.4.0.0 version of VS.NETAddin. I tried installing the
    assembly in the GAC, but the add-in still says it can't find the
    assembly.

    In the meantime, I guess I'll try the stand-alone version.

    Thanks.

     

Log in to post a comment.