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?!