473,804 Members | 3,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to List All Required Assemblies for an EXE

I'm sorry to keep harping on about this one, but it is really quite
important for me to be able to list _all_ required assemblies in my Help
About box. Herfried kindly posted some code before that lists _loaded_
assemblies and their version, but I have one assembly that is not loaded
until the user has done something quite specific in the program, and I need
to list this one too. Other applications seem to manage it, so I wonder how
it can be done in .NET.

Furthermore, the code I have at present does not locate the assembly. I also
need to be able to do this so that I can be certain that all assemblies are
being loaded from the right place.

Can anyone help?

TIA

Charles
Nov 21 '05 #1
8 1786
Charles,
I have a C# application that does something similar (I think) to what
you're wanting. I'll paste the specific code below. The code is in C#
but should be easily converted to VB.NET. HTH

Jason Newell, MCAD
Software Engineer
############### ############### ############### ############### ############### ####
private static bool PreloadAssembli es()
{
Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();

AssemblyName[] assemblies = assembly.GetRef erencedAssembli es();

foreach (AssemblyName assemblyName in assemblies)
{
try
{
Assembly.Load(a ssemblyName);
}
catch (System.IO.File NotFoundExcepti on)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " was not found.",
"File Not Found",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.BadImag eFormatExceptio n)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " is an invalid file image.",
"Bad Image Format",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.Securit y.SecurityExcep tion)
{
MessageBox.Show (
"You do not have rights to assembly " + assemblyName.Na me + ".",
"Security Error",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.Excepti on)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " cannot be loaded.",
"Assembly Load Error",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
}
return true;
}
############### ############### ############### ############### ############### ####

Charles Law wrote:
I'm sorry to keep harping on about this one, but it is really quite
important for me to be able to list _all_ required assemblies in my Help
About box. Herfried kindly posted some code before that lists _loaded_
assemblies and their version, but I have one assembly that is not loaded
until the user has done something quite specific in the program, and I need
to list this one too. Other applications seem to manage it, so I wonder how
it can be done in .NET.

Furthermore, the code I have at present does not locate the assembly. I also
need to be able to do this so that I can be certain that all assemblies are
being loaded from the right place.

Can anyone help?

TIA

Charles

Nov 21 '05 #2
Hi Jason

Thanks for the response. I have converted and run the code you posted but I
don't seem to be quite there yet. I think my problem can be explained as
follows

I have a hierarchy of assemblies like this

MainApp -> SubAssembly1
-> SubAssembly2
-> SubAssembly3 -> SubAssembly4
-> SubAssembly5

If I list the referenced assemblies after preloading I get SubAssembly1,
SubAssembly2, SubAssembly3, and SubAssembly5, but not SubAssembly4.

Can you think of a way to get at SubAssembly4? Also, I still don't seem to
be able to identify where each assembly was loaded from.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:uf******** ********@TK2MSF TNGP12.phx.gbl. ..
Charles,
I have a C# application that does something similar (I think) to what
you're wanting. I'll paste the specific code below. The code is in C#
but should be easily converted to VB.NET. HTH

Jason Newell, MCAD
Software Engineer
############### ############### ############### ############### ############### ####
private static bool PreloadAssembli es()
{
Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();

AssemblyName[] assemblies = assembly.GetRef erencedAssembli es();

foreach (AssemblyName assemblyName in assemblies)
{
try
{
Assembly.Load(a ssemblyName);
}
catch (System.IO.File NotFoundExcepti on)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " was not found.",
"File Not Found",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.BadImag eFormatExceptio n)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " is an invalid file image.",
"Bad Image Format",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.Securit y.SecurityExcep tion)
{
MessageBox.Show (
"You do not have rights to assembly " + assemblyName.Na me + ".",
"Security Error",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
catch (System.Excepti on)
{
MessageBox.Show (
"Assembly " + assemblyName.Na me + " cannot be loaded.",
"Assembly Load Error",
MessageBoxButto ns.OK,
MessageBoxIcon. Error);
return false;
}
}
return true;
}
############### ############### ############### ############### ############### ####

Charles Law wrote:
I'm sorry to keep harping on about this one, but it is really quite
important for me to be able to list _all_ required assemblies in my Help
About box. Herfried kindly posted some code before that lists _loaded_
assemblies and their version, but I have one assembly that is not loaded
until the user has done something quite specific in the program, and I
need to list this one too. Other applications seem to manage it, so I
wonder how it can be done in .NET.

Furthermore, the code I have at present does not locate the assembly. I
also need to be able to do this so that I can be certain that all
assemblies are being loaded from the right place.

Can anyone help?

TIA

Charles


Nov 21 '05 #3
Charles,
I'm a little closer with this next code. I'm busy at work so I can't
finish it for you. Maybe this will help you get over the hump.
I converted the PreloadAssembly () method into a recursive method so
that it will traverse the Assembly structure. The problem right now is
it gets into an endless loop. Need some check there to get out of the
loop. Once you have an Assembly object, you can use the CodeBase
property to determine where the assembly is being loaded from. HTH

Jason Newell, MCAD
Software Engineer

############### ############### ############### ############### ############### #########
PreloadAssembly (Assembly.GetEx ecutingAssembly ());
static void PreloadAssembly (Assembly assembly)
{
Console.WriteLi ne(assembly.Cod eBase);

AssemblyName[] assemblies = assembly.GetRef erencedAssembli es();
foreach (AssemblyName assemblyName in assemblies)
{
Assembly referencedAssem bly = Assembly.Load(a ssemblyName);
PreloadAssembly (referencedAsse mbly);
}
}

############### ############### ############### ############### ############### ########
Charles Law wrote:
Hi Jason

Thanks for the response. I have converted and run the code you posted but I
don't seem to be quite there yet. I think my problem can be explained as
follows

I have a hierarchy of assemblies like this

MainApp -> SubAssembly1
-> SubAssembly2
-> SubAssembly3 -> SubAssembly4
-> SubAssembly5

If I list the referenced assemblies after preloading I get SubAssembly1,
SubAssembly2, SubAssembly3, and SubAssembly5, but not SubAssembly4.

Can you think of a way to get at SubAssembly4? Also, I still don't seem to
be able to identify where each assembly was loaded from.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:uf******** ********@TK2MSF TNGP12.phx.gbl. ..
Charles,
I have a C# application that does something similar (I think) to what
you're wanting. I'll paste the specific code below. The code is in C#
but should be easily converted to VB.NET. HTH

Jason Newell, MCAD
Software Engineer
############# ############### ############### ############### ############### ######
private static bool PreloadAssembli es()
{
Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();

AssemblyNam e[] assemblies = assembly.GetRef erencedAssembli es();

foreach (AssemblyName assemblyName in assemblies)
{
try
{
Assembly.Load (assemblyName);
}
catch (System.IO.File NotFoundExcepti on)
{
MessageBox.Sh ow(
"Assembly " + assemblyName.Na me + " was not found.",
"File Not Found",
MessageBoxBut tons.OK,
MessageBoxIco n.Error);
return false;
}
catch (System.BadImag eFormatExceptio n)
{
MessageBox.Sh ow(
"Assembly " + assemblyName.Na me + " is an invalid file image.",
"Bad Image Format",
MessageBoxBut tons.OK,
MessageBoxIco n.Error);
return false;
}
catch (System.Securit y.SecurityExcep tion)
{
MessageBox.Sh ow(
"You do not have rights to assembly " + assemblyName.Na me + ".",
"Security Error",
MessageBoxBut tons.OK,
MessageBoxIco n.Error);
return false;
}
catch (System.Excepti on)
{
MessageBox.Sh ow(
"Assembly " + assemblyName.Na me + " cannot be loaded.",
"Assembly Load Error",
MessageBoxBut tons.OK,
MessageBoxIco n.Error);
return false;
}
}
return true;
}
############# ############### ############### ############### ############### ######

Charles Law wrote:
I'm sorry to keep harping on about this one, but it is really quite
important for me to be able to list _all_ required assemblies in my Help
About box. Herfried kindly posted some code before that lists _loaded_
assemblies and their version, but I have one assembly that is not loaded
until the user has done something quite specific in the program, and I
need to list this one too. Other applications seem to manage it, so I
wonder how it can be done in .NET.

Furthermor e, the code I have at present does not locate the assembly. I
also need to be able to do this so that I can be certain that all
assemblies are being loaded from the right place.

Can anyone help?

TIA

Charles


Nov 21 '05 #4
Hi Jason

Great minds ... I tried making it recursive before I posted back last time,
and hit exactly the same problem. It seems like there are circular
references amongst the Microsoft assemblies, which is unfortunate.

Thanks for looking at it again.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:Ot******** ******@TK2MSFTN GP09.phx.gbl...
Charles,
I'm a little closer with this next code. I'm busy at work so I can't
finish it for you. Maybe this will help you get over the hump.
I converted the PreloadAssembly () method into a recursive method so that
it will traverse the Assembly structure. The problem right now is it gets
into an endless loop. Need some check there to get out of the loop. Once
you have an Assembly object, you can use the CodeBase property to
determine where the assembly is being loaded from. HTH

Jason Newell, MCAD
Software Engineer

############### ############### ############### ############### ############### #########
PreloadAssembly (Assembly.GetEx ecutingAssembly ());
static void PreloadAssembly (Assembly assembly)
{
Console.WriteLi ne(assembly.Cod eBase);

AssemblyName[] assemblies = assembly.GetRef erencedAssembli es();
foreach (AssemblyName assemblyName in assemblies)
{
Assembly referencedAssem bly = Assembly.Load(a ssemblyName);
PreloadAssembly (referencedAsse mbly);
}
}

############### ############### ############### ############### ############### ########
Charles Law wrote:
Hi Jason

Thanks for the response. I have converted and run the code you posted but
I don't seem to be quite there yet. I think my problem can be explained
as follows

I have a hierarchy of assemblies like this

MainApp -> SubAssembly1
-> SubAssembly2
-> SubAssembly3 -> SubAssembly4
-> SubAssembly5

If I list the referenced assemblies after preloading I get SubAssembly1,
SubAssembly2, SubAssembly3, and SubAssembly5, but not SubAssembly4.

Can you think of a way to get at SubAssembly4? Also, I still don't seem
to be able to identify where each assembly was loaded from.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:uf******** ********@TK2MSF TNGP12.phx.gbl. ..
Charles,
I have a C# application that does something similar (I think) to what
you're wanting. I'll paste the specific code below. The code is in C#
but should be easily converted to VB.NET. HTH

Jason Newell, MCAD
Software Engineer
############ ############### ############### ############### ############### #######
private static bool PreloadAssembli es()
{
Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();

AssemblyNa me[] assemblies = assembly.GetRef erencedAssembli es();

foreach (AssemblyName assemblyName in assemblies)
{
try
{
Assembly.Loa d(assemblyName) ;
}
catch (System.IO.File NotFoundExcepti on)
{
MessageBox.S how(
"Assembly " + assemblyName.Na me + " was not found.",
"File Not Found",
MessageBoxBu ttons.OK,
MessageBoxIc on.Error);
return false;
}
catch (System.BadImag eFormatExceptio n)
{
MessageBox.S how(
"Assembly " + assemblyName.Na me + " is an invalid file image.",
"Bad Image Format",
MessageBoxBu ttons.OK,
MessageBoxIc on.Error);
return false;
}
catch (System.Securit y.SecurityExcep tion)
{
MessageBox.S how(
"You do not have rights to assembly " + assemblyName.Na me + ".",
"Security Error",
MessageBoxBu ttons.OK,
MessageBoxIc on.Error);
return false;
}
catch (System.Excepti on)
{
MessageBox.S how(
"Assembly " + assemblyName.Na me + " cannot be loaded.",
"Assembly Load Error",
MessageBoxBu ttons.OK,
MessageBoxIc on.Error);
return false;
}
}
return true;
}
############ ############### ############### ############### ############### #######

Charles Law wrote:

I'm sorry to keep harping on about this one, but it is really quite
important for me to be able to list _all_ required assemblies in my Help
About box. Herfried kindly posted some code before that lists _loaded_
assemblie s and their version, but I have one assembly that is not loaded
until the user has done something quite specific in the program, and I
need to list this one too. Other applications seem to manage it, so I
wonder how it can be done in .NET.

Furthermore , the code I have at present does not locate the assembly. I
also need to be able to do this so that I can be certain that all
assemblie s are being loaded from the right place.

Can anyone help?

TIA

Charles


Nov 21 '05 #5
Charles,
The endless loop can easily be adverted by keeping a list of
Asssemblies that you've already loaded and not trying to load them
twice. I just didn't have time to code it.
Your requirement was to list all required Assemblies with their path,
which is what this does. With the endless loop check implemented,
shouldn't this be your final solution?

Jason Newell, MCAD
Software Engineer
Charles Law wrote:
Hi Jason

Great minds ... I tried making it recursive before I posted back last time,
and hit exactly the same problem. It seems like there are circular
references amongst the Microsoft assemblies, which is unfortunate.

Thanks for looking at it again.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:Ot******** ******@TK2MSFTN GP09.phx.gbl...
Charles,
I'm a little closer with this next code. I'm busy at work so I can't
finish it for you. Maybe this will help you get over the hump.
I converted the PreloadAssembly () method into a recursive method so that
it will traverse the Assembly structure. The problem right now is it gets
into an endless loop. Need some check there to get out of the loop. Once
you have an Assembly object, you can use the CodeBase property to
determine where the assembly is being loaded from. HTH

Jason Newell, MCAD
Software Engineer

############# ############### ############### ############### ############### ###########
PreloadAssemb ly(Assembly.Get ExecutingAssemb ly());
static void PreloadAssembly (Assembly assembly)
{
Console.Write Line(assembly.C odeBase);

AssemblyNam e[] assemblies = assembly.GetRef erencedAssembli es();
foreach (AssemblyName assemblyName in assemblies)
{
Assembly referencedAssem bly = Assembly.Load(a ssemblyName);
PreloadAssemb ly(referencedAs sembly);
}
}

############# ############### ############### ############### ############### ##########
Charles Law wrote:
Hi Jason

Thanks for the response. I have converted and run the code you posted but
I don't seem to be quite there yet. I think my problem can be explained
as follows

I have a hierarchy of assemblies like this

MainApp -> SubAssembly1
-> SubAssembly2
-> SubAssembly3 -> SubAssembly4
-> SubAssembly5

If I list the referenced assemblies after preloading I get SubAssembly1,
SubAssembly2 , SubAssembly3, and SubAssembly5, but not SubAssembly4.

Can you think of a way to get at SubAssembly4? Also, I still don't seem
to be able to identify where each assembly was loaded from.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:uf***** ***********@TK2 MSFTNGP12.phx.g bl...
Charles,
I have a C# application that does something similar (I think) to what
you're wanting. I'll paste the specific code below. The code is in C#
but should be easily converted to VB.NET. HTH

Jason Newell, MCAD
Software Engineer
########### ############### ############### ############### ############### ########
private static bool PreloadAssembli es()
{
Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();

AssemblyNam e[] assemblies = assembly.GetRef erencedAssembli es();

foreach (AssemblyName assemblyName in assemblies)
{
try
{
Assembly.Lo ad(assemblyName );
}
catch (System.IO.File NotFoundExcepti on)
{
MessageBox. Show(
"Assembly " + assemblyName.Na me + " was not found.",
"File Not Found",
MessageBoxB uttons.OK,
MessageBoxI con.Error);
return false;
}
catch (System.BadImag eFormatExceptio n)
{
MessageBox. Show(
"Assembly " + assemblyName.Na me + " is an invalid file image.",
"Bad Image Format",
MessageBoxB uttons.OK,
MessageBoxI con.Error);
return false;
}
catch (System.Securit y.SecurityExcep tion)
{
MessageBox. Show(
"You do not have rights to assembly " + assemblyName.Na me + ".",
"Security Error",
MessageBoxB uttons.OK,
MessageBoxI con.Error);
return false;
}
catch (System.Excepti on)
{
MessageBox. Show(
"Assembly " + assemblyName.Na me + " cannot be loaded.",
"Assembly Load Error",
MessageBoxB uttons.OK,
MessageBoxI con.Error);
return false;
}
}
return true;
}
########### ############### ############### ############### ############### ########

Charles Law wrote:
>I'm sorry to keep harping on about this one, but it is really quite
>importan t for me to be able to list _all_ required assemblies in my Help
>About box. Herfried kindly posted some code before that lists _loaded_
>assembli es and their version, but I have one assembly that is not loaded
>until the user has done something quite specific in the program, and I
>need to list this one too. Other applications seem to manage it, so I
>wonder how it can be done in .NET.
>
>Furthermor e, the code I have at present does not locate the assembly. I
>also need to be able to do this so that I can be certain that all
>assembli es are being loaded from the right place.
>
>Can anyone help?
>
>TIA
>
>Charles
>

Nov 21 '05 #6
Jason
Thanks for looking at it again.
I was referring to your earlier review rather than asking you to keep going.
You are right, with the list of loaded assemblies stopping recursion this
should do just what I want.

Thanks again.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:eh******** ******@tk2msftn gp13.phx.gbl... Charles,
The endless loop can easily be adverted by keeping a list of Asssemblies
that you've already loaded and not trying to load them twice. I just
didn't have time to code it.
Your requirement was to list all required Assemblies with their path,
which is what this does. With the endless loop check implemented,
shouldn't this be your final solution?

Jason Newell, MCAD
Software Engineer
Charles Law wrote:
Hi Jason

Great minds ... I tried making it recursive before I posted back last
time, and hit exactly the same problem. It seems like there are circular
references amongst the Microsoft assemblies, which is unfortunate.

Thanks for looking at it again.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:Ot******** ******@TK2MSFTN GP09.phx.gbl...
Charles,
I'm a little closer with this next code. I'm busy at work so I can't
finish it for you. Maybe this will help you get over the hump.
I converted the PreloadAssembly () method into a recursive method so that
it will traverse the Assembly structure. The problem right now is it
gets into an endless loop. Need some check there to get out of the loop.
Once you have an Assembly object, you can use the CodeBase property to
determine where the assembly is being loaded from. HTH

Jason Newell, MCAD
Software Engineer

############ ############### ############### ############### ############### ############
PreloadAssem bly(Assembly.Ge tExecutingAssem bly());
static void PreloadAssembly (Assembly assembly)
{
Console.Writ eLine(assembly. CodeBase);

AssemblyNa me[] assemblies = assembly.GetRef erencedAssembli es();
foreach (AssemblyName assemblyName in assemblies)
{
Assembly referencedAssem bly = Assembly.Load(a ssemblyName);
PreloadAssem bly(referencedA ssembly);
}
}

############ ############### ############### ############### ############### ###########
Charles Law wrote:

Hi Jason

Thanks for the response. I have converted and run the code you posted
but I don't seem to be quite there yet. I think my problem can be
explained as follows

I have a hierarchy of assemblies like this

MainApp -> SubAssembly1
-> SubAssembly2
-> SubAssembly3 -> SubAssembly4
-> SubAssembly5

If I list the referenced assemblies after preloading I get SubAssembly1,
SubAssembly 2, SubAssembly3, and SubAssembly5, but not SubAssembly4.

Can you think of a way to get at SubAssembly4? Also, I still don't seem
to be able to identify where each assembly was loaded from.

Charles
"Jason Newell" <no****@nospam. com> wrote in message
news:uf**** ************@TK 2MSFTNGP12.phx. gbl...
>Charles,
>I have a C# application that does something similar (I think) to what
>you're wanting. I'll paste the specific code below. The code is in C#
>but should be easily converted to VB.NET. HTH
>
>Jason Newell, MCAD
>Software Engineer
>
>
>########## ############### ############### ############### ############### #########
>private static bool PreloadAssembli es()
>{
>Assembly assembly = System.Reflecti on.Assembly.Get ExecutingAssemb ly();
>
>AssemblyNa me[] assemblies = assembly.GetRef erencedAssembli es();
>
>foreach (AssemblyName assemblyName in assemblies)
>{
>try
>{
>Assembly.L oad(assemblyNam e);
>}
>catch (System.IO.File NotFoundExcepti on)
>{
>MessageBox .Show(
>"Assembl y " + assemblyName.Na me + " was not found.",
>"File Not Found",
>MessageBox Buttons.OK,
>MessageBox Icon.Error);
>return false;
>}
>catch (System.BadImag eFormatExceptio n)
>{
>MessageBox .Show(
>"Assembl y " + assemblyName.Na me + " is an invalid file image.",
>"Bad Image Format",
>MessageBox Buttons.OK,
>MessageBox Icon.Error);
>return false;
>}
>catch (System.Securit y.SecurityExcep tion)
>{
>MessageBox .Show(
>"You do not have rights to assembly " + assemblyName.Na me + ".",
>"Securit y Error",
>MessageBox Buttons.OK,
>MessageBox Icon.Error);
>return false;
>}
>catch (System.Excepti on)
>{
>MessageBox .Show(
>"Assembl y " + assemblyName.Na me + " cannot be loaded.",
>"Assembl y Load Error",
>MessageBox Buttons.OK,
>MessageBox Icon.Error);
>return false;
>}
>}
>return true;
>}
>########## ############### ############### ############### ############### #########
>
>
>
>Charles Law wrote:
>
>
>>I'm sorry to keep harping on about this one, but it is really quite
>>importa nt for me to be able to list _all_ required assemblies in my
>>Help About box. Herfried kindly posted some code before that lists
>>_loaded _ assemblies and their version, but I have one assembly that is
>>not loaded until the user has done something quite specific in the
>>program , and I need to list this one too. Other applications seem to
>>manage it, so I wonder how it can be done in .NET.
>>
>>Furthermo re, the code I have at present does not locate the assembly.
>>I also need to be able to do this so that I can be certain that all
>>assemblie s are being loaded from the right place.
>>
>>Can anyone help?
>>
>>TIA
>>
>>Charles
>>

Nov 21 '05 #7
One possible problem with your approach is that you are loading the
assemblies into memory and there is no way to unload them.

You might wish to create an AppDomain and enumerate your assemblies
with that then you can call it's UnloadDomain method to unload any
assemblies that you loaded.

Chris

Nov 21 '05 #8
Hi Chris

That's a good point. Thanks for the tip.

Charles
"Chris Dunaway" <du******@gmail .com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
One possible problem with your approach is that you are loading the
assemblies into memory and there is no way to unload them.

You might wish to create an AppDomain and enumerate your assemblies
with that then you can call it's UnloadDomain method to unload any
assemblies that you loaded.

Chris

Nov 21 '05 #9

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

Similar topics

2
1925
by: Thomas Miller | last post by:
Hello, I have built a c# class library (I will call it "Assembly1"), and built an installer that installs it. It is working well. I created a new asp.net application, right-clicked on references and selected "add reference". My "Assembly1" is not showing up under the list of components under the .NET tab. I have to click "browse" and manually locate the dll. How do I make it show up in the list of available .NET objects? Tom
1
6937
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while compiling the Max.UI.Win project with the following error Satellite assemblies could not be built because the main project output is missing.
3
1620
by: Rico Hansen | last post by:
Hi NG! Does anyone know how to view all references in a listbox the same way when clicking the "add reference"? When clicking "add references" it's shown in a listview with Component name, version and path but how do I do it the same way? I my solution, I want to do it exactly the same way. /Rico
3
1639
by: vighnesh | last post by:
Hi All I am dealing a project in ASP.NET which uploads office documents and convert them as PDF files,to accomplish this convertion I have used a third party component named "easy PDF SDK".Every thing went fine on local machine(Which has VS.NET 2003) But when it comes to deployment on the remote machine(which has only .NET Framework 1.1)though "easy PDF SDK" installed and configured as per the requirements on the remote machine,its...
5
2559
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called "Enlighten.LinkMad.Businesslogic". In one of my frontend websites I use this type to authenticate a user who is trying to login. The following excerpt is from the web.config of the particular site showing the reference to the custom provider, allowing .Net to do...
5
1439
by: Charles Law | last post by:
I want to display the name and version of all assemblies (dlls?) used/required by my application in a Help | About box. Is there a way to do this? One of the problems I anticipate is that assemblies are only loaded when required. When my app loads not all assemblies are loaded. If the user goes straight to the Help About box then there will still be assemblies required but not yet loaded, so I would need a way of getting these as well....
1
253
by: prabhupr | last post by:
Hi Folks In CS project, we use "Add Reference" option to make reference to other assemblies. At times, there a is a chance that few of them get added by mistake or must have got added for some need and developers must have forgotten to remove them back when not required :)
6
1846
by: =?Utf-8?B?TUNN?= | last post by:
The following sections appears in my web.config file. <configuration> <system.web> <compilation> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
9
7989
by: necro1000 | last post by:
Hi, I have created a new project and have used the CrystalReports assemblies and the Microsoft Interop dlls. I copied my program to another PC and when I try to run the methods that use these assemblies I get a 'FileNotFoundException' where the program states that its can't find the assemblies required. What do I need to do? Thanks A
0
9710
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10329
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7626
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.