dot net (.NET) help needed, please please reply. |
![]() ![]() |
dot net (.NET) help needed, please please reply. |
| user_Sumya_* |
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 |
|
|
|
| user_Manivannan_* |
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. |
|
|
|
| user_Akhil Tyagi_* |
Jun 4 2008, 09:24 AM
Post
#3
|
|
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 saumya u do one thing.. |
|
|
|
| user_Akhil Tyagi_* |
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 |
|
|
|
| user_kavita_* |
Jun 4 2008, 01:47 PM
Post
#5
|
|
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 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 |
|
|
|
| user_Pasha_* |
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. |
|
|
|
| user_senthil kumar_* |
Jun 19 2008, 02:50 AM
Post
#7
|
|
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 |
|
|
|
| user_senthil kumar_* |
Jun 19 2008, 02:54 AM
Post
#8
|
|
Guests |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 02:02 PM |