Original Bin Path?

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.
 
S

Scott Allen

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,
 
X

xenophon

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

Members online

Forum statistics

Threads
473,780
Messages
2,569,614
Members
45,287
Latest member
Helenfem

Latest Threads

Top