Is possible to use classes in an asp.net application from a consoleapplication?

R

Rabbit63

Hi:

I want to use the classes of my asp.net application from my a console
program. May I do that?

Thanks

Q.
 
P

Peter Rilling

Sure, but you won't have any website support. Just reference the assembly
as you normally would.
 
R

Rabbit63

Hi:

The problem is I have to put the console program in the /bin directory
of the asp.net application; otherwise, I will get a run-time error
(there is not any error while compiling): could not find the file.

Any idea?

Thanks

Q.
 
P

Peter Rilling

The website library does have to be in the same folder as the console, but
when you create the reference in your console app, open the property grid
for the reference and you should see a setting called something like "Shadow
copy". Set this to "true" and the website library will be copied to the
location where your console is built to.
 

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