- Do the Visual Basic .NET and C# Developer Series books offer anything above what is covered in the Visual Basic .NET and C# How to Program series books?
C# How to Program contains the combined content of C# A Programmers Introduction and C# for Experienced Programmers except for the chapter on the Mobile Internet Toolkit.
Visual Basic .NET How to Program covers all the content in Visual Basic .NET for Experienced Programmers except for the chapter on the Mobile Internet Toolkit. It also includes introductory programming coverage not included in Visual Basic .NET for Experienced Programmers.
To avoid redundant purchases you should not purchase Visual Basic .NET for Experienced Programmers if you already own either Visual Basic .NET How to Program or the Complete Visual Basic .NET Training Course. Similarly, you should not purchase either C# Developer Series book if you already own C# How to Program or the Complete C# Training Course.
For more information about the differences between these series, please review the following diagrams:
Choosing the Right DEITEL™ Product for your C# Programming Needs
Choosing the Right DEITEL™ Product for your Visual Basic .NET Programming Needs
- When creating a console application, Visual Studio .NET supplies a default module named Module1, which contains Sub Main. Changing this name results in the following error when the solution is built.
'Sub Main' was not found in 'ConsoleApplication1.Module1'.
To fix this problem, double click the error message in the Task List, which will open the Startup Object dialog. Select from the list of startup objects the one that contains Sub Main and click OK.
- Why is it that the programs on the CD do not run on my machine, even though I have Visual Studio .NET installed? I am getting an error about a RESX file.
You probably have a different version of Visual Studio .NET on your machine. As Visual Studio .NET evolved, different betas/release candidates become available. Our programs were initially created for Beta1, re-created for Beta2, re-created for Release Candidate 1, then finally tested on Release Candidates 2, 3 and 4. Release Candidate 4 was the most recent version of Visual Studio .NET when this book went to press. We have tested all the book’s examples on the final release. This example set is available under the Downloads/Resources link at www.deitel.com.
The common error messages are “Invalid RESX file,” “Invalid RESX input,” or an error message informing the user that a simple type cannot be understood, such as System.Byte. Also, you probably will see a red circle with an X inside of it when you attempt to view the program in design mode. Your RESX file is a resource file that is created by Visual Studio .NET with your project. In fact, Visual Studio .NET creates several files of which the programmer may not be aware. The format of these files changed several times during the evolution of Visual Studio .NET. The easiest and quickest way to fix this problem is to re-create the project and paste in the code from your original project. Be sure to copy everything (including the generated code for your GUI). You may also have to fix references to files and images used by your program. For example, if you were displaying an image using a relative directory, you will need to move the image into the new project’s directory structure so that your program can find it.
- I am using code provided on the book’s CD. Why am I getting errors claiming that certain classes do not exist?
In some of our chapters we create class libraries (assemblies) for use in later programs. Chapter 3 demonstrated how to add references to assemblies. However, our libraries and programs were created on our own machines, in various directories. Your directory structure will most likely be different from ours, and so you will again need to add the reference to any libraries used, specifying the correct location on your machine. Below is a list of figures where this problem may arise, and a link to a page containing the list of steps needed to both determine if you have this problem and how to fix it.
Programs with references to libraries created in the book (C# How to Program):
8.19, 16.27, 17.9, 17.11, 17.12, 17.15, 17.16, 17.17, 17.18-23, 23.5, 23.10, 23.11, 23.12, 23.13, 23.14, 23.18, 23.21
Programs with references to libraries created in the book (C#: A Programmer’s Introduction):
8.19, 15.5, 15.7, 15.8
Programs with references to libraries created in the book (C# for Experienced Programmers):
5.19, 13.27, 14.9, 14.11, 14.12, 14.15, 14.16, 14.17, 14.18-23, 20.5, 20.10, 20.11, 20.12, 20.13, 20.14, 20.18, 20.21
Programs with references to libraries created in the book (Visual Basic .NET How to Program, Second Edition):
8.19, 16.27, 17.9, 17.11, 17.12, 17.15, 17.16, 17.17, 17.18-23, 23.7, 23.12, 23.13, 23.14, 23.15, 23.16, 23.21, 23.25
Programs with references to libraries created in the book (Visual Basic .NET for Experienced Programmers):
5.19, 13.27, 14.9, 14.11, 14.12, 14.15, 14.16, 14.17, 14.18-23, 20.7, 20.12, 20.13, 20.14, 20.15, 20.16, 20.21, 20.25
- I am working in the chapter on Web services, using the final release of Visual Studio .NET. Why do I not see the link to the root directory of my local Web server, as shown in Figure 21.9? [Note: This question only applies to the C# How to Program and Visual Basic .NET How to Program books. For our other C# and VB .NET publications, this figure has already been removed.]
The final release of Visual Studio .NET has a different Add Web References dialog. Type the location of your Web service’s ASMX file in the Address bar at the top of the dialog. This will bring you to what is shown in Fig. 21.11.
- How do I get the Web applications and Web service examples running?
To begin, users must have IIS running on their machine. We assume that the reader already has IIS installed and running, or they would not have been able to install Visual Studio .NET.** Directions on getting Web project running can be found here.
* Be sure to check out the errata page, as well the Downloads/Resources page to download the most recent version of the code examples.
** Be sure to check the Microsoft Web site for the latest IIS security-related updates.
- Where can I download the trial version of Visual Studio .NET?
The 60-day trial version of Visual Studio .NET Professional Edition is no longer available from Microsoft (as of 2/27/2003). Microsoft indicates that a new trial edition will be available soon. Visit the following site for details.