0

Is there a way to tell ASP not to look for dlls in BIN folder?

ASP.NET automatically replace |DataDirectory| with a path ending with \App_Data is there a way to change that?

I never searched so much with so meager results.

11
  • This has nothing to do with Classic ASP - this is ASP.NET. Can you edit your question and retag, please? Commented Jun 12, 2015 at 12:45
  • No, there is not. Why would you want this? Commented Jun 13, 2015 at 8:02
  • @JohnSaunders working with relative path always prepends App_Data so i must place my things in app_data.. Commented Jun 13, 2015 at 12:44
  • What does this have to do with the bin folder? Commented Jun 13, 2015 at 19:21
  • @JohnSaunders cause i cannot move my dll anywhere else cause ASP.NET looks for assemblies in \bin (at least i am facing that) Commented Jun 15, 2015 at 7:01

1 Answer 1

2

No, for both questions.

Both bin and |DataDirectory| are hard-wired in the ASP.NET runtime, there is no way to change it.

If you don't want to use \App_Data, just don't use it and don't use DataDirectory either. Use your own data location and implement your own code to get to it.

There is simply no way around the bin directory.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.