Using a class library in multiple applications in asp.net

T

TaeHo Yoo

Hi Gens,

I have a class library (CL) which I would like to use in two
applications (A and B).

I would like to be able to edit CL anywhere (either CL itself or A or B
application) but all the changes I make regardless of where I edit CL,
the changes must be made only to the original source and as soon as I
edit CL, the changes should be made and used instantly.

And I would like to be able to debug CL in both A and B applications as
I develop them.

How can I archieve this?

Thanks
 
J

James Curran

Well, there's a whole DLL deployment problem which depends a lot on your
individual configuration, so I won't get into it here, and talk just about
development.

First of all, how do you have this set up? Normally, you'd have two
solutions (A & B) and three projects. (A, B & CL). Each solution would
have two projects: it's own, and CL. The source files for CL would exist in
only one place on your hard disk.
 
T

TaeHo Yoo

I really appreciate all your help James.
But I hope you wouldn't mind one more question.
In the actual project, I have A, B and C class libraries for a project(
say MyProject).
When I add A and B reference as Projects to MyProject, it works fine but
when I try to add C as Project to MyProject. I can't access any classes
in C class library and I am getting the following error
"Cannot copy assembly 'C' to file
'c:\inetpub\wwwroot\MyProject\bin\C.dll'. Access is denied."

Any idea??
Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top