Wrox Programmer Forums
|
BOOK: Beginning Visual C# 2010
This is the forum to discuss the Wrox book Beginning Visual C# 2010 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, ; ISBN: 9780470502266
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2011, 04:35 PM
Authorized User
 
Join Date: Dec 2011
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default 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?
 
Old December 29th, 2011, 05:43 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

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.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 26 UI Builder? bhiggs96 BOOK: Beginning iOS 4 Application Development 5 August 4th, 2011 08:52 AM
CHAPTER 2 page 26 -27 joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 August 3rd, 2009 07:03 PM
code for chapter 26 missing? uvis130 BOOK: Excel 2003 VBA Programmer's Reference 3 February 6th, 2006 03:11 PM
chapter 26 code alfmeiggs BOOK: Excel 2003 VBA Programmer's Reference 0 November 3rd, 2005 05:57 PM





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