Wrox Programmer Forums
|
BOOK: Professional C#, 2nd and 3rd Editions
This is the forum to discuss the Wrox book Professional C#, 3rd Edition by Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen; ISBN: 9780764557590
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions 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 4th, 2003, 03:29 AM
Registered User
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems in samples code???????

I bought Professional C# 2rd on Amazon.com.
Following the instructions, I downloaded samples code. But when I opened a sample project of Chapter 14(ASP.NET Pages), Microsoft Development Environment said:
The project 'PCSWebApp1.csproj' must be convert to the current project format. After it has been convert, you will not be able to edit this project in previous versions of Visual Studio.
I clicked Yes. But when run this project, MDE said:
Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.

Please tell me how to run this porojects. Thanks.
(I'm running on Windows Server2003 Enterprise, MDE2003 version 7.1.3088, Microsoft .NET Framework 1.1 version 1.1.4322)

 
Old December 4th, 2003, 04:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I think the book was written for the .NET Framework 1.0. This means the projects in the code download will work with Visual Studio 2002. You're using VS .NET 2003 so it offers to convert the "old" 2002 project to the 2003 format.
Usually, this will work fine without too much trouble. Make sure you have a copy of the old project though, because not every 1.0 project will run fine on the 1.1 framework.

For the debugging issue, check out this link: http://msdn.microsoft.com/library/de...rvererrors.asp

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 4th, 2003, 11:52 AM
Authorized User
 
Join Date: Nov 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to KABay
Default

There are not .sln files in the App2 and App3 folders so I assume you were trying to run the first application iteration.

What worked for me was to follow the directions in the readme file in the Chapter 14 'root' folder to copy the three application folders to my Inetpub\wwwroot.

Convert the Solution and Project(s) as 'suggested'. That ran fine for me using version 1.1.4322 of the Framework.

What the readme file does not say is to create a virtual directory using Internet Information Services (IIS). Name it PCSWebApp1 for the first project and point it to the PCSWebApp1 folder.

Make sure the build configuration ( Build/Configuration Manager/Active Build Configuration) is set to 'Debug' and rebuild the Solution.

After that the first app ran fine.

KABay





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Samples qjay BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 17 July 13th, 2009 04:10 AM
where can i get the samples code edwinomar ADO.NET 2 April 16th, 2004 12:55 PM
Source code for the samples kw48653 ADO.NET 1 August 11th, 2003 02:14 PM





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