Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Beginning Visual C# 2010
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 29th, 2011, 04:35 PM
Authorized User
Points: 98, Level: 1
Points: 98, Level: 1 Points: 98, Level: 1 Points: 98, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
  #2 (permalink)  
Old December 29th, 2011, 05:43 PM
Wrox Author
Points: 1,163, Level: 13
Points: 1,163, Level: 13 Points: 1,163, Level: 13 Points: 1,163, Level: 13
Activity: 33%
Activity: 33% Activity: 33% Activity: 33%
 
Join Date: Sep 2010
Location: Austria
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



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


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