Binary files copy and execution paths ??



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

.



Relevant Pages

  • Re: VS 2005 ASP .Net Web Site Projects, VSS, and Bin folder
    ... Web Site: http://www.composablesystems.net ... The problem is that the Web Site Project compiles these DLL ... Then when we sync with VSS those DLL files ...
    (microsoft.public.vsnet.general)
  • RE: Publish Failed
    ... most of such web site publish error occur when you ... **Check other web site project to see whether the problem is ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HELP me with this question about VBScript PLZ
    ... >> undertaking a Web site project? ... When developing applications on the web site ... Please reply to the newsgroup. ...
    (microsoft.public.inetsdk.programming.scripting.vbscript)
  • Re: HELP me with this question about VBScript PLZ
    ... > When might a client-side VBScript be a valid choice of technology ... >> undertaking a Web site project? ... When developing applications on the web site ...
    (microsoft.public.inetsdk.programming.scripting.vbscript)
  • Re: Multiple sites sharing single web.config file
    ... I want a config file that will apply to ... Having web applications below the website level is ... each web application must be a separate web site. ... > all the sub directories under it can make use of it(these sub ...
    (microsoft.public.dotnet.framework.aspnet)