473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.IO.FileNotFoundException: ?
File name: "Dep4Man"
at cManop.cManop..ctor()

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

LOG: Private path hint found in configuration file:
PublicAssemblies;PrivateAssemblies.
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/PublicAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/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/PublicAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man/Dep4Man.EXE.

--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
Nov 17 '05 #1
2 1645
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..jwaonline..com
-----------------------------------------------------------------------
"Boni" <oilia@nospam> wrote in message news:Or**************@TK2MSFTNGP14.phx.gbl...
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.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.IO.FileNotFoundException: ?
File name: "Dep4Man"
at cManop.cManop..ctor()

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

LOG: Private path hint found in configuration file: PublicAssemblies;PrivateAssemblies.
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/PublicAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PrivateAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PrivateAssemblies/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/PublicAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PrivateAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual Studio .NET
2003/Common7/IDE/PrivateAssemblies/Dep4Man/Dep4Man.EXE.

--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)

Nov 17 '05 #2
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" <NO*********@dotcomdatasolutions.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP15.phx.gbl...
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..jwaonline..com
-----------------------------------------------------------------------
"Boni" <oilia@nospam> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
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.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.IO.FileNotFoundException: ?
File name: "Dep4Man"
at cManop.cManop..ctor()

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

LOG: Private path hint found in configuration file:
PublicAssemblies;PrivateAssemblies.
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/PublicAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man.DLL.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/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/PublicAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PublicAssemblies/Dep4Man/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man.EXE.
LOG: Attempting download of new URL file:///c:/Programme/Microsoft Visual
Studio .NET 2003/Common7/IDE/PrivateAssemblies/Dep4Man/Dep4Man.EXE.

--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Neil Fedin via .NET 247 | last post by:
I am writing a testing application that uses reflection to open assemblies and call methods. I have a function that looks like this... public void Method1 (int IDArray, bool SomethingElse){...
13
by: Christian Westerlund | last post by:
Hi! I'm trying to use P/Invoke and a Method which takes an IntPtr where I am supposed to put an address to a method which the native method will use to communicate back to me. How do I convert a...
3
by: Zürcher See | last post by:
I'm using the following structure for my programm, and I never had problems. Now by the invoke of the MyObject_End eventhandler I get the following error: System.Windows.FormsSpecified cast is...
6
by: Boni | last post by:
Dear sirs/madam, I am trying to dynamically invoke assembly. (For some days Tomas helped me to get it compiled). Now I am so far that I can test if the assembly invoked. And I get the...
0
by: Pawan Narula via DotNetMonster.com | last post by:
hi all, i'm using VB.NET and trying to code for contact management in a tree. all my contacts r saved in a text file and my C dll reads them one by one and sends to VB callback in a sync mode...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
3
by: m.posseth | last post by:
Hello does someone know how i can invoke a method in the underlying thread without the usage of a window handle ?? This works perfect in a form Me.Invoke(New MethodInvoker(AddressOf...
7
by: George | last post by:
Hi, Does anyone know how Control.Invoke can invoke a method which has ref parameters? For example, class A { public delegate MyFuncHandler(ref int i, ref int j);
5
by: PiotrKolodziej | last post by:
Hi. I have a form. This form calls thread. Inside this thread i have while loop: while ((bufferCount = FileStream.Read(buffer, 0, 64000)) 0 && !Stop) { store += bufferCount;...
5
by: rafal.m | last post by:
Hi This code fails: class K2 { public function increment(&$obj) { $obj += 1; }
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.