473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Original Bin Path?


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.
Jan 30 '06 #1
2 1688
On Mon, 30 Jan 2006 15:53:23 -0500, xenophon <xe******@online.nospam>
wrote:

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,

--
Scott
http://www.OdeToCode.com/blogs/scott/
Jan 30 '06 #2

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.

On Mon, 30 Jan 2006 17:19:23 -0500, Scott Allen
<sc***@nospam.odetocode.com> wrote:
On Mon, 30 Jan 2006 15:53:23 -0500, xenophon <xe******@online.nospam>
wrote:

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,


Jan 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bartolomé Sintes Marco | last post by:
Hi, In this mail, http://www.mail-archive.com/kragen-hacks@canonical.org/msg00030.html Kragen Sitaker explained how to unzip a file in Python #!/usr/local/bin/python # learn how to use...
31
by: John Roth | last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which can be found here: http://tinyurl.com/2578q Frankly, I like the idea. It's about time that all of the file and directory stuff...
2
by: Rob Cowie | last post by:
Hi, Given a string representing the path to a file, what is the best way to get at the filename? Does the OS module provide a function to parse the path? or is it acceptable to split the string...
0
by: Bell, Kevin | last post by:
I'm having trouble with something that seems like it should be simple. I need to copy a file, say "abc-1.tif" to another directory, but if it's in there already, I need to transfer it named...
0
by: Lex Yacc | last post by:
I have a capture screen App, and want to catch the active window Picture. Could I get the active window's file original info? For example, The Ie's Url, Office2000's opened file path, other edit...
1
by: William Stacey [MVP] | last post by:
I need a bullet proof way to combine a root and a relative path to form a FQ rooted path (similar to a VDir in IIS). Path.Combine alone will not do the job in all cases. I also need to be sure...
8
by: Edward Mitchell | last post by:
I have a main project that is protected in that the user is directed to a login.aspx file. The text in the web.config file is: <authentication mode="Forms"> <forms loginUrl="Login.aspx" />...
6
by: =?Utf-8?B?VGVycnk=?= | last post by:
When I asked this question before, don't think I was showing up as an MSDN subscriber, so I hope that is fixed now. I am a newbe here and am working through some books on using ADO.Net. These...
2
Ciary
by: Ciary | last post by:
hey all, i've a question about file upload. i want to save the original filepath as it was on the users PC (eg 'C:\Documents and settings\guest\documents\test.txt') i cant seem to find the right...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.