Solved

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

Posted on 2009-07-08
2
223 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

14 Experts available now in Live!

Get 1:1 Help Now