473,385 Members | 1,320 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,385 software developers and data experts.

Binary files copy and execution paths ??

PAF
Hi all,

I don't understand something...

First:

I have a Web Site project that provide web services who use some other
libraries projects. When I build my Web Site, bin folder is created
and all binaries are copied, but I have some other files (like config
files) that are not copied and also not published. I checked that the
"Copy to Output Directory" property is set to "Copy always" on config
file, but no chance...
In other non Web Site projects it works fine.

Then:

For testing I finally copy manually my config files... But now, to
access my config files, I use "Environment.CurrentDirectory" to access
my files, but that give me the main process path (like "C:\Windows
\System32" or "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE"
in debug mode).
I tried to use the Assembly path with
Reflection.Assembly.GetExecutingAssembly.Location, but it gives me
strange internal MS path ("C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\Temporary ASP.NET Files\xmlmedidataservice
\53b34031\94b02742\assembly\dl3\59ec994e\67846382_ 1966c701")
Some one could help me to find my files in Web Site projects?!

Mar 14 '07 #1
2 1658
Hi PAF,

Can you use Request.PhysicalApplicationPath?

Eugen
"PAF" wrote:
Hi all,

I don't understand something...

First:

I have a Web Site project that provide web services who use some other
libraries projects. When I build my Web Site, bin folder is created
and all binaries are copied, but I have some other files (like config
files) that are not copied and also not published. I checked that the
"Copy to Output Directory" property is set to "Copy always" on config
file, but no chance...
In other non Web Site projects it works fine.

Then:

For testing I finally copy manually my config files... But now, to
access my config files, I use "Environment.CurrentDirectory" to access
my files, but that give me the main process path (like "C:\Windows
\System32" or "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE"
in debug mode).
I tried to use the Assembly path with
Reflection.Assembly.GetExecutingAssembly.Location, but it gives me
strange internal MS path ("C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\Temporary ASP.NET Files\xmlmedidataservice
\53b34031\94b02742\assembly\dl3\59ec994e\67846382_ 1966c701")
Some one could help me to find my files in Web Site projects?!

Mar 15 '07 #2
PAF
Yes sure with Web Site, but in webservice, I haven't Request object...

Mar 16 '07 #3

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

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
44
by: Xah Lee | last post by:
here's a large exercise that uses what we built before. suppose you have tens of thousands of files in various directories. Some of these files are identical, but you don't know which ones are...
9
by: Arnold | last post by:
I need to read a binary file and store it into a buffer in memory (system has large amount of RAM, 2GB+) then pass it to a function. The function accepts input as 32 bit unsigned longs (DWORD). I...
4
by: knapak | last post by:
Hello I'm a self instructed amateur attempting to read a huge file from disk... so bear with me please... I just learned that reading a file in binary is faster than text. So I wrote the...
12
by: Adam J. Schaff | last post by:
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: ...
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
2
by: Matthew Moran | last post by:
I posted this on the .asp group but believe this may be a more appropriate forum. I have a need to have a web server (windows based) grab files each week from a linux based server - hosted...
1
by: Matthew Moran | last post by:
I have a need to have a web server (windows based) grab files each week from a linux based server - hosted elsewhere. I cannot use UNC paths. I want to have a script (.asp/asp.net) on the...
12
by: duzhidian | last post by:
failed to open stream: No such file or directory I have the programs like this structure: a.php is locate at . b.php is located at ./lib c.php is located at ./lib/sublib a.php uses a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.