Invoke Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boni

    Invoke Error

    Dear all,
    I am trying to dynamically create the instance
    (withActivator. CreateInstance) of cManop class
    This class uses as reference Dep4Man class.
    But somehow at the invokation time I get a exception, that Dep4Man class
    couldn't be found. The class is regersered with regasm Dep4Man.dll /codebase
    But the shown Appbase is not as it should be!!!
    May be somebody has an idea, what could be wrong?
    Thanks,
    Boni


    System.Reflecti on.TargetInvoca tionException: Exception has been thrown by
    the target of an invocation. ---> System.IO.FileN otFoundExceptio n: ?
    File name: "Dep4Man"
    at cManop.cManop.. ctor()

    === Pre-bind state information ===
    LOG: DisplayName = Dep4Man, Version=1.0.0.0 , Culture=neutral ,
    PublicKeyToken= f15b37290cce953 8
    (Fully-specified)
    LOG: Appbase = c:\Programme\Mi crosoft Visual Studio .NET 2003\Common7\ID E\
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===

    LOG: Private path hint found in configuration file:
    PublicAssemblie s;PrivateAssemb lies.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.DLL.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/Dep4Man.EXE.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.EXE.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man.EXE.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.EXE.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man.EXE.
    LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
    Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.EXE.

    --- End of inner exception stack trace ---
    at System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly)
    at System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
    at System.Activato r.CreateInstanc e(Type type)


  • Dave

    #2
    Re: Invoke Error

    The framework cannot locate that assembly. Dep4Man.dll can be placed in the GAC to solve this problem, but make sure that you
    remember it's in there... if you make changes to the assembly you should ensure that your projects are building against the updated
    Dep4Man.dll and not the GAC version.

    Instead, you may want to try adding the correct path of the Dep4Man.dll in your Project Properties dialog:

    Project Properties Dialog --> Common Properties --> Reference Paths --> Add...

    --
    Dave Sexton
    dave@www..jwaon line..com
    -----------------------------------------------------------------------
    "Boni" <oilia@nospam > wrote in message news:OrzJjxpTFH A.3012@TK2MSFTN GP14.phx.gbl...[color=blue]
    > Dear all,
    > I am trying to dynamically create the instance (withActivator. CreateInstance) of cManop class
    > This class uses as reference Dep4Man class.
    > But somehow at the invokation time I get a exception, that Dep4Man class couldn't be found. The class is regersered with regasm
    > Dep4Man.dll /codebase
    > But the shown Appbase is not as it should be!!!
    > May be somebody has an idea, what could be wrong?
    > Thanks,
    > Boni
    >
    >
    > System.Reflecti on.TargetInvoca tionException: Exception has been thrown by the target of an invocation. --->
    > System.IO.FileN otFoundExceptio n: ?
    > File name: "Dep4Man"
    > at cManop.cManop.. ctor()
    >
    > === Pre-bind state information ===
    > LOG: DisplayName = Dep4Man, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= f15b37290cce953 8
    > (Fully-specified)
    > LOG: Appbase = c:\Programme\Mi crosoft Visual Studio .NET 2003\Common7\ID E\
    > LOG: Initial PrivatePath = NULL
    > Calling assembly : (Unknown).
    > ===
    >
    > LOG: Private path hint found in configuration file: PublicAssemblie s;PrivateAssemb lies.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET 2003/Common7/IDE/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PublicAssemblie s/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PrivateAssembli es/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.DLL.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET 2003/Common7/IDE/Dep4Man.EXE.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.EXE.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PublicAssemblie s/Dep4Man.EXE.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.EXE.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PrivateAssembli es/Dep4Man.EXE.
    > LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
    > 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.EXE.
    >
    > --- End of inner exception stack trace ---
    > at System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly)
    > at System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
    > at System.Activato r.CreateInstanc e(Type type)
    >
    >[/color]


    Comment

    • Boni

      #3
      Re: Invoke Error

      Hi Dave,
      I wouldn't like to place it to GAC. And there is not possible to set
      reference path to compile time. What is the way of proper registration?

      "Dave" <NOSPAM-dave@dotcomdata solutions.com> schrieb im Newsbeitrag
      news:%23XxkbrsT FHA.4056@TK2MSF TNGP15.phx.gbl. ..[color=blue]
      > The framework cannot locate that assembly. Dep4Man.dll can be placed in
      > the GAC to solve this problem, but make sure that you remember it's in
      > there... if you make changes to the assembly you should ensure that your
      > projects are building against the updated Dep4Man.dll and not the GAC
      > version.
      >
      > Instead, you may want to try adding the correct path of the Dep4Man.dll in
      > your Project Properties dialog:
      >
      > Project Properties Dialog --> Common Properties --> Reference Paths -->
      > Add...
      >
      > --
      > Dave Sexton
      > dave@www..jwaon line..com
      > -----------------------------------------------------------------------
      > "Boni" <oilia@nospam > wrote in message
      > news:OrzJjxpTFH A.3012@TK2MSFTN GP14.phx.gbl...[color=green]
      >> Dear all,
      >> I am trying to dynamically create the instance
      >> (withActivator. CreateInstance) of cManop class
      >> This class uses as reference Dep4Man class.
      >> But somehow at the invokation time I get a exception, that Dep4Man class
      >> couldn't be found. The class is regersered with regasm Dep4Man.dll
      >> /codebase
      >> But the shown Appbase is not as it should be!!!
      >> May be somebody has an idea, what could be wrong?
      >> Thanks,
      >> Boni
      >>
      >>
      >> System.Reflecti on.TargetInvoca tionException: Exception has been thrown by
      >> the target of an invocation. ---> System.IO.FileN otFoundExceptio n: ?
      >> File name: "Dep4Man"
      >> at cManop.cManop.. ctor()
      >>
      >> === Pre-bind state information ===
      >> LOG: DisplayName = Dep4Man, Version=1.0.0.0 , Culture=neutral ,
      >> PublicKeyToken= f15b37290cce953 8
      >> (Fully-specified)
      >> LOG: Appbase = c:\Programme\Mi crosoft Visual Studio .NET
      >> 2003\Common7\ID E\
      >> LOG: Initial PrivatePath = NULL
      >> Calling assembly : (Unknown).
      >> ===
      >>
      >> LOG: Private path hint found in configuration file:
      >> PublicAssemblie s;PrivateAssemb lies.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.DLL.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/Dep4Man.EXE.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/Dep4Man/Dep4Man.EXE.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man.EXE.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PublicAssemblie s/Dep4Man/Dep4Man.EXE.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man.EXE.
      >> LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
      >> Studio .NET 2003/Common7/IDE/PrivateAssembli es/Dep4Man/Dep4Man.EXE.
      >>
      >> --- End of inner exception stack trace ---
      >> at System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly)
      >> at System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
      >> at System.Activato r.CreateInstanc e(Type type)
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...