Solved

vs2005: reference web app code from console app without replicating the dll's?

Posted on 2009-07-08
2
228 Views
Last Modified: 2013-11-26
Is it possible to create a console app that uses code from a web app *without* having VS copy the web's dll, and all the dll's its dependent upon from the web directory over into the console's bin directory?  I'd like the console app to use/link to the web code back in it's original directory.

Not sure if this is relevant but I created the reference by browsing to the web app's dll.  The "Projects" tab in the "Add Reference" dialog is empty (doesn't show any Projects).

Thanks for any help-
0
Comment
Question by:ottenm
2 Comments
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 500 total points
ID: 24808507
I'm pretty sure the only way you could accomplish what you're trying to do would be to put the web application assemblies in the GAC. If an assembly isn't in the GAC, .NET requires that it be in the same folder as the calling assembly, or a subfolder of the calling assembly.
0
 

Author Comment

by:ottenm
ID: 24812698
Thanks CraigWagner.  Your description made me realize I could also deploy the console's EXE into the web app's bin directory, which is working.

Thanks for your help-
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now