Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 27, 2009 07:58 AM by erics44
Member
91 Points
271 Posts
Nov 26, 2009 09:47 AM|LINK
Hi
I have referenced and assembly in a winform and it all works fine on my development environment.
when i deploy it to another PC the assembly cannot be found.
Do i need to do anything other than put the dll in a common location and then reference it?
Thanks is advance
All-Star
48619 Points
7957 Posts
MVP
Nov 26, 2009 09:53 AM|LINK
hi, try putting Your Assembly in GAC.. http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80%29.aspx gacuil.exe -i <path o Assembly>
Nov 26, 2009 10:16 AM|LINK
thanks for the reply
i take it i have to put the assembly in a gac on a common server?
i trioed doing that in the cmd prompt and i get the error
gacutil is not recognised?
once it is in the gac do i have to re-reference it from my project?
thansk again
Nov 26, 2009 10:24 AM|LINK
U will That on local drive C://Progarm files/Microsft Visual studio \sdk\<version>\Bin uplaod it and then check.. Is Your DLL us present in Your Bin Directory???
Nov 26, 2009 10:34 AM|LINK
yes it is in the bin folder
sorry i dont really understand your first sentence
Do you mean that i will have to upload it to the gac on a common server?
can i just copy it to the location you have supplied?
Nov 26, 2009 10:35 AM|LINK
in the bin folder should it be in debug or release or just in the bin root?
tahnks
Nov 26, 2009 11:02 AM|LINK
I mean u will get gacutil in follwing Path"C://Progarm files/Microsft Visual studio \sdk\<version>\Bin" on Local Machince .. and Upload gacutil exe and Then do the Gacutil process..
erics44 in the bin folder should it be in debug or release or just in the bin root? tahnks
it should be bin Folder
Nov 26, 2009 11:58 AM|LINK
thanks
i recognises that dll now
i have another problem tho, i need to reference another dll and it is erroring saying
a reference to 'abcpdfce7.dll' could not be added. please make sure the file is accessible, and that it is a valid assembly or COM.
i downloaded 2 dlls from the same source and one works and the other doesnt
any ideas?
Nov 26, 2009 12:12 PM|LINK
"abcpdfce7.dll'" is This DLL is COM Assembly???
erics44
Member
91 Points
271 Posts
assembly reference winforms
Nov 26, 2009 09:47 AM|LINK
Hi
I have referenced and assembly in a winform and it all works fine on my development environment.
when i deploy it to another PC the assembly cannot be found.
Do i need to do anything other than put the dll in a common location and then reference it?
Thanks is advance
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: assembly reference winforms
Nov 26, 2009 09:53 AM|LINK
hi,
try putting Your Assembly in GAC..
http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80%29.aspx
gacuil.exe -i <path o Assembly>
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
erics44
Member
91 Points
271 Posts
Re: assembly reference winforms
Nov 26, 2009 10:16 AM|LINK
thanks for the reply
i take it i have to put the assembly in a gac on a common server?
i trioed doing that in the cmd prompt and i get the error
gacutil is not recognised?
once it is in the gac do i have to re-reference it from my project?
thansk again
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: assembly reference winforms
Nov 26, 2009 10:24 AM|LINK
U will That on local drive C://Progarm files/Microsft Visual studio \sdk\<version>\Bin
uplaod it and then check..
Is Your DLL us present in Your Bin Directory???
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
erics44
Member
91 Points
271 Posts
Re: assembly reference winforms
Nov 26, 2009 10:34 AM|LINK
yes it is in the bin folder
sorry i dont really understand your first sentence
Do you mean that i will have to upload it to the gac on a common server?
can i just copy it to the location you have supplied?
erics44
Member
91 Points
271 Posts
Re: assembly reference winforms
Nov 26, 2009 10:35 AM|LINK
in the bin folder should it be in debug or release or just in the bin root?
tahnks
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: assembly reference winforms
Nov 26, 2009 11:02 AM|LINK
I mean u will get gacutil in follwing Path"C://Progarm files/Microsft Visual studio \sdk\<version>\Bin" on Local Machince ..
and Upload gacutil exe and Then do the Gacutil process..
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: assembly reference winforms
Nov 26, 2009 11:02 AM|LINK
it should be bin Folder
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
erics44
Member
91 Points
271 Posts
Re: assembly reference winforms
Nov 26, 2009 11:58 AM|LINK
thanks
i recognises that dll now
i have another problem tho, i need to reference another dll and it is erroring saying
a reference to 'abcpdfce7.dll' could not be added. please make sure the file is accessible, and that it is a valid assembly or COM.
i downloaded 2 dlls from the same source and one works and the other doesnt
any ideas?
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: assembly reference winforms
Nov 26, 2009 12:12 PM|LINK
"abcpdfce7.dll'" is This DLL is COM Assembly???
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.