?
Solved

Using a 3rd Party DLL in C# Web Application

Posted on 2011-03-01
6
Medium Priority
?
393 Views
Last Modified: 2012-05-11
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
Comment
Question by:jmpatton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 2000 total points
ID: 35008439
put file in project directory and add DLL file reference.


Command for register in GAC

gactutil -i c:\foldername\assemblyname\bin\assemblyname.dll
0
 

Author Comment

by:jmpatton
ID: 35009742
gactutil is not recognized as an internal or external command
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 35010201
you can run gacutil command from "Visual Studio Command Prompt (2010/2008)"

 
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:jmpatton
ID: 35010219
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
 

Author Comment

by:jmpatton
ID: 35010353
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
 

Author Comment

by:jmpatton
ID: 35017448
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question