p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual C# 2010 (http://p2p.wrox.com/forumdisplay.php?f=563)
-   -   Chapter 26 Page 929 Point 4 (http://p2p.wrox.com/showthread.php?t=86183)

Frodo December 29th, 2011 04:35 PM

Chapter 26 Page 929 Point 4
 
Here it says Modify the code in app.config, but the snippet gives the file to be downloaded as Web.config. There is an app.config under Ch36Ex03 in the download. Because I am using VCE I created a WCF file in VWD and copied the files over, so I have a web.config under AppControlService.

Should I rename my web.config as app.config? Should I delete all the additional lines of code in the web.config? What is the difference between an app.config and a web.config?

ChristianNagel December 29th, 2011 05:43 PM

A web.config is used for configuration of Web applications, a app.config is used for configuration of Windows applications. The app.config file is renamed to sampleApp.exe.config during the build with Visual Studio. The web.config stays with this name for Web applications.
In this exercise a Windows application is done to host the WCF service, thus it should be an app.config.


All times are GMT -4. The time now is 01:40 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.