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
Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 64
C# LINQ ForEach() question 6 54
VS 2017 18 49
Code enhancement 4 22
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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