Hi All,
I am moving some of my MDI Child forms to DLLs. The first 3 forms worked
fine. But the 4th one is causing me some grief! I use the following code to
load a form from a DLL:
Dim asmAssemblyCont ainingForm As [Assembly] =
[Assembly].LoadFrom("neic onv.dll")
Dim TypeToLoad As Type =
asmAssemblyCont ainingForm.GetT ype("neiconv.Fr m_ND")
Dim GenericInstance As Object
GenericInstance = Activator.Creat eInstance(TypeT oLoad)
Dim NDfrm As Form = CType(GenericIn stance, Form)
NDfrm.MdiParent = Me
NDfrm.Text = NDfrm.Text + " for " +
Frm_ND.NDncffna me(Frm_ND.NDncf fname.Length - 1)
NDfrm.Show()
The form (DLL) that is causing problems does not use any different form
components than the first three, but I get the following exception at the
first line of code above:
File or assembly name neiconv.dll, or one of its dependencies, was not
found.
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile, Evidence
securityEvidenc e, Byte[] hashValue, AssemblyHashAlg orithm hashAlgorithm)
at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile, Evidence
securityEvidenc e)
at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile)
at CNRGITools.Main MDI.Menu_ND_Cli ck(Object sender, EventArgs e) in D:\My
Documents\Visua l Studio 2003\Projects\C NRGITools\MainM DI\F_main.vb:li ne 2196
The DLL itself compiles fine.
Any ideas?
TIA
Lee 1 2885
Hi All,
Another piece of information (maybe useless):
I'm catching the exception mentioned previously. After the exception occurs,
other forms that I try to load (from other DLLs) throw the same exception.
Once I restart the app, the other forms load fine.
Regards,
Lee
"lgbjr" <lg***@nospam.c om> wrote in message
news:uN******** ******@TK2MSFTN GP10.phx.gbl... Hi All,
I am moving some of my MDI Child forms to DLLs. The first 3 forms worked fine. But the 4th one is causing me some grief! I use the following code to load a form from a DLL:
Dim asmAssemblyCont ainingForm As [Assembly] = [Assembly].LoadFrom("neic onv.dll") Dim TypeToLoad As Type = asmAssemblyCont ainingForm.GetT ype("neiconv.Fr m_ND") Dim GenericInstance As Object GenericInstance = Activator.Creat eInstance(TypeT oLoad)
Dim NDfrm As Form = CType(GenericIn stance, Form) NDfrm.MdiParent = Me NDfrm.Text = NDfrm.Text + " for " + Frm_ND.NDncffna me(Frm_ND.NDncf fname.Length - 1) NDfrm.Show()
The form (DLL) that is causing problems does not use any different form components than the first three, but I get the following exception at the first line of code above:
File or assembly name neiconv.dll, or one of its dependencies, was not found.
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef, Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark) at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile, Evidence securityEvidenc e, Byte[] hashValue, AssemblyHashAlg orithm hashAlgorithm) at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile, Evidence securityEvidenc e) at System.Reflecti on.Assembly.Loa dFrom(String assemblyFile) at CNRGITools.Main MDI.Menu_ND_Cli ck(Object sender, EventArgs e) in D:\My Documents\Visua l Studio 2003\Projects\C NRGITools\MainM DI\F_main.vb:li ne 2196
The DLL itself compiles fine.
Any ideas?
TIA Lee This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: karunakar |
last post by:
Hi All
I am not able to read the class name I want read the particular class name
string path =
System.Configuration.ConfigurationSettings.AppSettings;
string className = path + ".User";
return (SCS.SR.IDAL.IUser)
Assembly.Load(path).CreateInstance(className); ( This line iam getting
Error)
|
by: Michael Bøcker-Larsen |
last post by:
Hi
I'v been stuck on this problem for ages now. I have found that I'm not
the only one with this problem, by looking through the different
newsgroups.
Hope you can help me! I know there is a lot of information, but if you
need more (e.g. the code) please write michael@mblarsen.dk.
The problem is this error messages (the code is build...
|
by: aallee83 |
last post by:
i'm new in asp.net after develop my solution i copied it on the server
where I want it to run but something cares... WHAT?!?!
thank you in advance
File or assembly name System, or one of its dependencies, was not
found.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack...
|
by: Martinh |
last post by:
Hi
After invoking RetrieveData in a WebService I recieve the following
response in a new window...
I am running Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573 on IIS6 on Server 2003 Enterprise. Does anybody
has a working solution for me?
Martin
|
by: jlea |
last post by:
I'm receiving the error message shown below when I try to load an aspx file
(C# web application) on our server. The web application works fine if I
remove the reference to the dll so I know the application and IIS are both
ok. I ran depends on the dll and all referenced dlls are either in system32
or in the bin directory of the web...
| |
by: Olav Tollefsen |
last post by:
I get the included error message when trying to run my ASP.NET application
under Windows Server 2003 (with all updates installed).
How can I troubleshoot this?
Olav
File or assembly name System.Xml, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the
current web request....
|
by: Federico Hernández Arce |
last post by:
Hi group, first sorry for my poor english
We have a vb.net app, run whit any problem in our pcs (whit vs.net 2003
installed).
The app have a ocx that draw a binary tree (the only external component,
all the rest is standart).
When our client need the app, we say "only install the framework 1.1"
(only???, poor of us !!!).
|
by: Tiraman |
last post by:
Hi,
i have some problem to run my dll's (assemblies) on the production server.
I have 3 dll's which use each other.
Every thing is ok on my local machine where i developed them
but when i upload them to the server and after signing them in to the GAC
i m getting some errors.
|
by: Andrew Jocelyn |
last post by:
Hi
I get this error when I change something in the web.config file. When I
build the VS projects and load the first web page the application runs fine.
If I then make a save the web.config file I then get this error when I
refresh the browser. I have to restart IIS to fix the problem.
I've included the error info but it all looks very...
|
by: James |
last post by:
Hi guys
Do you ever get the exception in Managed C++? How can I know which file or
dll is missed?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |