views:

1938

answers:

4

Hello,

How do you attach a dll to a asp.net site? I want to be able to debug and edit the dll without having to keep replacing the reference in my asp.net site. I checked attach to process but didn't see the worker process. I am using asp.net, iis 7.

+4  A: 
Koistya Navin
What happens if I want to edit the dll?
jumbojs
You can replace it at any time later.
Koistya Navin
..with a new or modified version.
Koistya Navin
A: 

Using Visual Studio you should create a Solution that has your website as a project and the DLL (code) as another project. Make a reference in the Website project to the DLL project and it should update it automatically.

If you are not using the Web Application model and just the Website model you could just have your DLL project output to your website's /bin directory directly. That will update the DLL in the website/bin folder whenever you build your DLL project.

If I could suggest, because I still use it, go to LearnVisualStudio.com and check out the free video's.

Brian Boatright
A: 

If you want to edit the dll, open that project up in a second instance of Visual Studio and treat it like you would for any other project.

Set the reference in your /bin folder to the debug dll that the second Visual Studio creates.

Jeramy Rutley
A: 

I'm assuming you have Visual Studio...

If you're just trying to add a dll, you can add a reference to it by right clicking on your website node and choosing "Add Reference..." . You will be able to debug the dll if you have its pdb along with it (to load the symbols from). You will NOT be able to edit the dll.

If the dll is in fact another project you have the source code for, just add the project to your solution, and from your website project add a reference from the "projects" tab. VS should add a reference and dependency so that it keeps the dll updated when you change code in your dll project.

SirDemon