How to Create a dll in c# [Resolved]

Posted by Shitalr under C# on 8/28/2013 | Points: 10 | Views : 2457 | Status : [Member] | Replies : 6
Hello,
I want to create a dll in c# or in classic asp how can i create and how can i use that dll function and plz tell me how should i register it to the iis.
thanks!




Responses

Posted by: Bandi on: 8/28/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Create DLL 

1) CREATE New Project
--> Class Library in C#
--> Write your code whatever you want
--> Right-click on ProjectName in the Solution Explorer
--> Build
-->Under bin folder you can view the dll file

Add Reference in another project
2) Open another project where you wish to use the above DLL
--> Right click on ProjectName in solution explorer
--> Click on Add Reference
--> In the "Add Reference dialog box" go to Browse menu
--> Point to the DLL file which was create
--> Click on OK button

Usage of DLL
3) Add namespace as follows in the current project:
using DLLNamespace;
Now you can be able use that dll

http://www.youtube.com/watch?v=sbg993POJ6Y

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 8/28/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
Dear Shitalr,

How to create a dll in c#.
1. File menu -> New Project -> choose your Programing language (Visual C#/VB etc.) -> Windows -> Class Library.
2. After the project has been created, make use of Build menu -> Build Solution (or Build [Project Name]) to compile the project.
3. You may find out the dll in the folder: project folder\bin\debug(or release)

How can i use that dll function.
1. Add the DLL via the solution explorer.
2. Right click on references --> add reference then "Browse" to you DLL
3. Then you can use the function directly in you project.

How should I register DLL to the IIS?
1. Publish the website and copy the website directly into iis folder.
2. It will automatically called form user website.

Happy Coding.


Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 8/28/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Follow this link
http://www.c-sharpcorner.com/UploadFile/mahesh/dll12222005064058AM/dll.aspx
http://www.codeproject.com/Questions/247556/How-to-Create-DLL-in-asp-net

Calling .NET DLL from Classic ASP Page
http://testtrack.blogspot.in/2005/10/calling-net-dll-from-classic-asp-page.html

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 8/28/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://www.codeguru.com/csharp/csharp/cs_misc/dllsandexecutables/article.php/c4239/Creating-and-Using-C-DLLs.htm
http://www.mindstick.com/Articles/9d1f70d0-efab-4e56-a511-1892020e7a95/

If this post helps you mark it as answer
Thanks

Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 8/28/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.tutsstore.com/how-to-make-a-dll-file-in-c-sharp/

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shitalr on: 8/28/2013 [Member] Starter | Points: 25

Up
0
Down
Thank you so much for helping me.

Shitalr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response