• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Using a 3rd Party DLL in C# Web Application

I am building a very small one function web application that needs to call a 3rd party dll, pass in two variables and return an encrypted URL for the user to click on.  I have the third party dll loaded in the bin folder of the web application, I have added a reference to it, but cannot seem to see any of its methods.  If i type "using ...." at the top of thhe page, intellisense doesnt pick it up.  Im sure I added it wrong or something.  Can someone tell me the proper way to add a reference to a third party dll in a C# web app?

So i need to register it on my machine first, or can I just put it in the bin folder and reference it?

Thanks
0
jmpatton
Asked:
jmpatton
  • 4
  • 2
1 Solution
 
Kalpesh ChhatralaSoftware ConsultantCommented:
put file in project directory and add DLL file reference.


Command for register in GAC

gactutil -i c:\foldername\assemblyname\bin\assemblyname.dll
0
 
jmpattonAuthor Commented:
gactutil is not recognized as an internal or external command
0
 
Kalpesh ChhatralaSoftware ConsultantCommented:
you can run gacutil command from "Visual Studio Command Prompt (2010/2008)"

 
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jmpattonAuthor Commented:
Ok I got that.  Now it is telling me that the dll i am trying to put into the GAC is failing because it doesnt have a strong name.  I created the ".snk" file and now the AssembleKeyFile will not recognize the path to theh .snk file.
0
 
jmpattonAuthor Commented:
ok next thing.  I got the AssemblyKeyFileAttribute to recognize the .snk file.  Stll get "GAC is failing because it doesnt have a strong name"
0
 
jmpattonAuthor Commented:
OK, i got it added to the GAC, but I still cant use it my program.  If I type "Using..."  Intellisense still doesnt pick it up.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now