IPB
Your Ad Here


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
dot net (.NET) help needed, please please reply.
user_Sumya_*
post May 30 2008, 07:14 PM
Post #1





Guests






Hi,

I have just started doing my .net application development and I have
one question related to installation of the assembly.


I have created 2 dlls, say a.dll and b.dll
I have created one exe which refers to both the dlls i.e. a.dll & b.dll
I have created another exe which referes to just one dlls i.e. a.dll
created 2 different setup for both the exe so that it get installed in
different directory say c:\app1 and c:\app2


Now problem I am having is that there multiple dll exists in each
installed directory. i.e. a.dll exists in C:\app1 and c:\app2
direcotry. What I really want is that, these dlls (a.dll & b.dll) are
my servers which needs to be installed in one direcotry and these exe
should use the dlls installed in the central location.


Can anybody help what I should be doing and what am i doing wrong.


Regards,


Saumya
Go to the top of the page
 
+Quote Post
user_Manivannan_*
post Jun 4 2008, 08:22 AM
Post #2





Guests






You have place both dll in c:\Windows\Assembly folder.
It is a common folder for placing many ddl to access by any application at the same time also.
Go to the top of the page
 
+Quote Post
user_Akhil Tyagi_*
post Jun 4 2008, 09:24 AM
Post #3





Guests






QUOTE (Sumya @ May 30 2008, 07:14 PM) *
Hi,

I have just started doing my .net application development and I have
one question related to installation of the assembly.


I have created 2 dlls, say a.dll and b.dll
I have created one exe which refers to both the dlls i.e. a.dll & b.dll
I have created another exe which referes to just one dlls i.e. a.dll
created 2 different setup for both the exe so that it get installed in
different directory say c:\app1 and c:\app2


Now problem I am having is that there multiple dll exists in each
installed directory. i.e. a.dll exists in C:\app1 and c:\app2
direcotry. What I really want is that, these dlls (a.dll & b.dll) are
my servers which needs to be installed in one direcotry and these exe
should use the dlls installed in the central location.


Can anybody help what I should be doing and what am i doing wrong.


Regards,


Saumya

saumya u do one thing..
Go to the top of the page
 
+Quote Post
user_Akhil Tyagi_*
post Jun 4 2008, 09:35 AM
Post #4





Guests






Hi
I think you do not know about the Global Assembly Cache(GAC) in dot net.. actually it is used to solve problems of multiple dll's. and the only soluton to your problem..
I wil brief you about it.. GACUTIL.exe in dot net through which we can make a.dll as a shared dll with different versions and thus we can use it with any of the exe without any problems...
Before runing above command you should give the strong name of ur dll's by uising ' sn -k ' command.
you can easily got the syntaxes on google by writing global assembly cache or stong name.. and can solve your problem.. and if in case u still have problem then mail me at itsakhiltyagi4u@gmail.com and i can help you with the syntaxes and steps to folllow...
bbye
Go to the top of the page
 
+Quote Post
user_kavita_*
post Jun 4 2008, 01:47 PM
Post #5





Guests






QUOTE (Sumya @ May 30 2008, 07:14 PM) *
Hi,

I have just started doing my .net application development and I have
one question related to installation of the assembly.


I have created 2 dlls, say a.dll and b.dll
I have created one exe which refers to both the dlls i.e. a.dll & b.dll
I have created another exe which referes to just one dlls i.e. a.dll
created 2 different setup for both the exe so that it get installed in
different directory say c:\app1 and c:\app2


Now problem I am having is that there multiple dll exists in each
installed directory. i.e. a.dll exists in C:\app1 and c:\app2
direcotry. What I really want is that, these dlls (a.dll & b.dll) are
my servers which needs to be installed in one direcotry and these exe
should use the dlls installed in the central location.


Can anybody help what I should be doing and what am i doing wrong.


Regards,


Saumya




u need to create ur assembly/dll as shared assembly.
for that u create a strong name key file with sn -k <filename.snk> add this file refference in assembly's assemblyinfo file in assembly:keyfile attribute save n build d assembly then using gacutil command register d assembly eg gacutil -i <assemblyname.dll> which is present ib bin folder
All d best
Go to the top of the page
 
+Quote Post
user_Pasha_*
post Jun 5 2008, 08:02 AM
Post #6





Guests






hai

some friends already suggested you some solutions.

it is my view that in your problem u can do one thing that
while u creating setup file in setup project u can create a special folder by right clicking
on application folder and select gloabl assembly cache folder
and place that assembly which u want to be as common assembly. while installing
this folder register this assembly to gac in client system.

bye.
Go to the top of the page
 
+Quote Post
user_senthil kumar_*
post Jun 19 2008, 02:50 AM
Post #7





Guests






QUOTE (Sumya @ May 30 2008, 07:14 PM) *
Hi,

I have just started doing my .net application development and I have
one question related to installation of the assembly.


I have created 2 dlls, say a.dll and b.dll
I have created one exe which refers to both the dlls i.e. a.dll & b.dll
I have created another exe which referes to just one dlls i.e. a.dll
created 2 different setup for both the exe so that it get installed in
different directory say c:\app1 and c:\app2


Now problem I am having is that there multiple dll exists in each
installed directory. i.e. a.dll exists in C:\app1 and c:\app2
direcotry. What I really want is that, these dlls (a.dll & b.dll) are
my servers which needs to be installed in one direcotry and these exe
should use the dlls installed in the central location.


Can anybody help what I should be doing and what am i doing wrong.


Regards,


Saumya
Go to the top of the page
 
+Quote Post
user_senthil kumar_*
post Jun 19 2008, 02:54 AM
Post #8





Guests






QUOTE (Akhil Tyagi @ Jun 4 2008, 09:24 AM) *
saumya u do one thing..



JUST PLACE THE ASSEMBLY WHICH YOU WANT TO SHARE IN GLOBAL ASSEMBLY CACHE.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 02:02 PM
Your Ad Here