Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2007

Tip: Looking for answers? Try searching our database.

Why custom (config) files are not copied in Web Site / Webservice bin folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PAF - 19 Mar 2007 10:15 GMT
Hi all,

I have a solution that contains a Web Site / Webservice project and
one library project.
The library project use a config file.

When I build the solution, the config file is not copied in bin folder
of web site in spite of the config file is flagged as "Copy Always".

Someone could explain me why and give me a solution?

Thanks
<ct> - 19 Mar 2007 13:10 GMT
When setting the Copy to Output Directory property to Copy always, the file
is copied to the build output directory of the project in which it is
contained, i.e. the library project.

Now, the .config file that is used by the library project, do you read from
using your own routines? I am asking, because if it includes standard
settings that are "automatically applied" to the assembly, you need to move
these settings to the .config file of the application (web service or web
site) that is using your assembly (library project).

Signature

Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS

> Hi all,
>
[quoted text clipped - 8 lines]
>
> Thanks
PAF - 20 Mar 2007 11:51 GMT
First thank you for your answer.

In fact my Assembly project is using another Assembly that is not my
Assembly. So I can't change anything in the code... This Assembly is
looking for a config file that is not copied to the web site bin
folder in spite of "Copy Always".

But with WinForms projects, the file is copied. So what is the
difference between WebSites and WinForms?!

Thank you.

> When setting the Copy to Output Directory property to Copy always, the file
> is copied to the build output directory of the project in which it is
[quoted text clipped - 22 lines]
>
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.