Mauro Sampietro
Mauro Sampietro

Reputation: 2814

ASP.NET IIS change APP_DATA and Bin folders

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.

Upvotes: 0

Views: 798

Answers (1)

Peter Hahndorf
Peter Hahndorf

Reputation: 11212

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.

Upvotes: 2

Related Questions