Solved

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

Posted on 2009-07-08
2
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 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