Original Bin Path?

  • Thread starter Thread starter xenophon
  • Start date Start date
X

xenophon

What is the path of the original bin directory for asn ASP.NET 2.0
application?

System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

That does not show me the original location (where some config files
are), it shows the dynamically-compiled location. The aboev code gave
the original place in Framework 1.1

Thanks.
 
What is the path of the original bin directory for asn ASP.NET 2.0
application?

I'm not sure what you mean by "original", but,

Server.MapPath("~/bin");

will give you a physical location for the bin directory underneath the
root of your web application.

HTH,
 
By original, I mean the directory location before the ASP.net shadow
copy kicks in. I have a custom .config file located in the bin
directory for the web app, and I want to use the same calling/coding
convention for my WinForms and DLL components.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top