Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Spearing
authored and
Spearing
committed
Oct 4, 2016
0 parents
commit 90cfacd
Showing
802 changed files
with
85,521 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title>Errata</title></head> | ||
<body> | ||
<h2>Building Client/Server Applications With VB.NET</h2> | ||
<h3>An Example Driven Approach</h3> | ||
<h4>Errata</h4> | ||
<p>This information is designed to supplement the information in the readme files, | ||
answer some common questions that have been asked by readers and correct | ||
several errors in the book text. | ||
</p> | ||
<OL> | ||
<LI> | ||
Binary Formatter Error | ||
<br> | ||
<br> | ||
The error you will see is the following: | ||
<br> | ||
<STRONG>An unhandled exception of type 'System.Runtime.Serialization. | ||
SerializationException' occurred in mscorlib.dll | ||
<BR> | ||
Additional information: BinaryFormatter Version incompatibility. Expected | ||
Version 1.0. Received Version 1008738336.1684104552.</STRONG> | ||
<br> | ||
<br> | ||
First, you need to understand why you are receving the binary formatter | ||
exception. The reason is that there is a problem with the connection to the | ||
server. The IIS server then returns an error in SOAP format that starts with | ||
something like the following "HTTP 1.1 ". Since you are using a binary | ||
formatter the first thing .NET looks for is the version information and it sees | ||
"1.1" when it is expecting a binary version number of 1.0. This causes the | ||
binary formatter exception. | ||
<br> | ||
<br> | ||
Second, you need to know how to get to the root cause of the exception. The | ||
root cause is typically a malformed web.config file or an error in the coding | ||
on the client side. Any other error will return a regular exception that can be | ||
diagnosed in the design environment. So how do you get additional information | ||
on the exception. There are two ways to do this: | ||
<br> | ||
<br> | ||
- Use a program called TCPTrace available from | ||
http://www.pocketsoap.com/tcptrace/ This program sends a stream from the client | ||
to the server through a sniffer that captures all outgoing and incoming data | ||
over the specified port. HOWEVER, there is an issue with this in that it will | ||
not work for this particular application because it uses Integrated | ||
Authentication and TCPTrace cannot forward the NT Security Token. | ||
<br> | ||
<br> | ||
- Switch from the binaryformatter to the soapformatter. To do this, change the | ||
code in the frmMain form constructor method form the binaryformatter to the | ||
soapformatter as follows: chan = New HttpChannel(props, New | ||
SoapClientFormatterSinkProvider, New _ SoapServerFormatterSinkProvider) Do not | ||
run the application when you're not debugging in this mode as it is orders of | ||
magnitude slower as you'll. | ||
<LI> | ||
Several readers have mentioned that I had a tendency throughout the book to | ||
create an instance of a manager class using the following code: | ||
<br> | ||
<br> | ||
Dim objEmployeeMgr as ucEmployeeMgr = objEmployeeMgr.GetInstance() | ||
<br> | ||
<br> | ||
This method works in version 1.0 and 1.1 however, since GetInstance is a shared | ||
method, technically the call should be made as follows: | ||
<br> | ||
<br> | ||
Dim objEmployeeMgr as ucEmployeeMgr = ucEmployeeMgr.GetInstance() | ||
</LI> | ||
</OL> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Imports System.Reflection | ||
Imports System.Runtime.InteropServices | ||
|
||
' General Information about an assembly is controlled through the following | ||
' set of attributes. Change these attribute values to modify the information | ||
' associated with an assembly. | ||
|
||
' Review the values of the assembly attributes | ||
|
||
<Assembly: AssemblyTitle("")> | ||
<Assembly: AssemblyDescription("")> | ||
<Assembly: AssemblyCompany("")> | ||
<Assembly: AssemblyProduct("")> | ||
<Assembly: AssemblyCopyright("")> | ||
<Assembly: AssemblyTrademark("")> | ||
<Assembly: CLSCompliant(True)> | ||
|
||
'The following GUID is for the ID of the typelib if this project is exposed to COM | ||
<Assembly: Guid("37E88C3B-D1A2-42CA-BF13-1D8A002C01EF")> | ||
|
||
' Version information for an assembly consists of the following four values: | ||
' | ||
' Major Version | ||
' Minor Version | ||
' Build Number | ||
' Revision | ||
' | ||
' You can specify all the values or you can default the Build and Revision Numbers | ||
' by using the '*' as shown below: | ||
|
||
<Assembly: AssemblyVersion("1.0.*")> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Microsoft Visual Studio Solution File, Format Version 7.00 | ||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ClassGenerator", "ClassGenerator.vbproj", "{A1996D38-BDC1-41CB-A55A-310BAD2334AF}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfiguration) = preSolution | ||
ConfigName.0 = Debug | ||
ConfigName.1 = Release | ||
EndGlobalSection | ||
GlobalSection(ProjectDependencies) = postSolution | ||
EndGlobalSection | ||
GlobalSection(ProjectConfiguration) = postSolution | ||
{A1996D38-BDC1-41CB-A55A-310BAD2334AF}.Debug.ActiveCfg = Debug|.NET | ||
{A1996D38-BDC1-41CB-A55A-310BAD2334AF}.Debug.Build.0 = Debug|.NET | ||
{A1996D38-BDC1-41CB-A55A-310BAD2334AF}.Release.ActiveCfg = Release|.NET | ||
{A1996D38-BDC1-41CB-A55A-310BAD2334AF}.Release.Build.0 = Release|.NET | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityAddIns) = postSolution | ||
EndGlobalSection | ||
EndGlobal |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<VisualStudioProject> | ||
<VisualBasic | ||
ProjectType = "Local" | ||
ProductVersion = "7.0.9466" | ||
SchemaVersion = "1.0" | ||
ProjectGuid = "{A1996D38-BDC1-41CB-A55A-310BAD2334AF}" | ||
> | ||
<Build> | ||
<Settings | ||
ApplicationIcon = "" | ||
AssemblyKeyContainerName = "" | ||
AssemblyName = "ClassGenerator" | ||
AssemblyOriginatorKeyFile = "" | ||
AssemblyOriginatorKeyMode = "None" | ||
DefaultClientScript = "JScript" | ||
DefaultHTMLPageLayout = "Grid" | ||
DefaultTargetSchema = "IE50" | ||
DelaySign = "false" | ||
OutputType = "WinExe" | ||
OptionCompare = "Binary" | ||
OptionExplicit = "On" | ||
OptionStrict = "Off" | ||
RootNamespace = "ClassGenerator" | ||
StartupObject = "ClassGenerator.frmGenerate" | ||
> | ||
<Config | ||
Name = "Debug" | ||
BaseAddress = "285212672" | ||
ConfigurationOverrideFile = "" | ||
DefineConstants = "" | ||
DefineDebug = "true" | ||
DefineTrace = "true" | ||
DebugSymbols = "true" | ||
IncrementalBuild = "true" | ||
Optimize = "false" | ||
OutputPath = "bin\" | ||
RegisterForComInterop = "false" | ||
RemoveIntegerChecks = "false" | ||
TreatWarningsAsErrors = "false" | ||
WarningLevel = "1" | ||
/> | ||
<Config | ||
Name = "Release" | ||
BaseAddress = "285212672" | ||
ConfigurationOverrideFile = "" | ||
DefineConstants = "" | ||
DefineDebug = "false" | ||
DefineTrace = "true" | ||
DebugSymbols = "false" | ||
IncrementalBuild = "false" | ||
Optimize = "true" | ||
OutputPath = "bin\" | ||
RegisterForComInterop = "false" | ||
RemoveIntegerChecks = "false" | ||
TreatWarningsAsErrors = "false" | ||
WarningLevel = "1" | ||
/> | ||
</Settings> | ||
<References> | ||
<Reference | ||
Name = "System" | ||
AssemblyName = "System" | ||
/> | ||
<Reference | ||
Name = "System.Data" | ||
AssemblyName = "System.Data" | ||
/> | ||
<Reference | ||
Name = "System.Drawing" | ||
AssemblyName = "System.Drawing" | ||
/> | ||
<Reference | ||
Name = "System.Windows.Forms" | ||
AssemblyName = "System.Windows.Forms" | ||
/> | ||
<Reference | ||
Name = "System.XML" | ||
AssemblyName = "System.Xml" | ||
/> | ||
</References> | ||
<Imports> | ||
<Import Namespace = "Microsoft.VisualBasic" /> | ||
<Import Namespace = "System" /> | ||
<Import Namespace = "System.Collections" /> | ||
<Import Namespace = "System.Data" /> | ||
<Import Namespace = "System.Drawing" /> | ||
<Import Namespace = "System.Diagnostics" /> | ||
<Import Namespace = "System.Windows.Forms" /> | ||
</Imports> | ||
</Build> | ||
<Files> | ||
<Include> | ||
<File | ||
RelPath = "AssemblyInfo.vb" | ||
SubType = "Code" | ||
BuildAction = "Compile" | ||
/> | ||
<File | ||
RelPath = "frmGenerate.vb" | ||
SubType = "Form" | ||
BuildAction = "Compile" | ||
/> | ||
<File | ||
RelPath = "frmGenerate.resx" | ||
DependentUpon = "frmGenerate.vb" | ||
BuildAction = "EmbeddedResource" | ||
/> | ||
</Include> | ||
</Files> | ||
</VisualBasic> | ||
</VisualStudioProject> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<VisualStudioProject> | ||
<VisualBasic> | ||
<Build> | ||
<Settings ReferencePath = "" > | ||
<Config | ||
Name = "Debug" | ||
EnableASPDebugging = "false" | ||
EnableASPXDebugging = "false" | ||
EnableUnmanagedDebugging = "false" | ||
EnableSQLServerDebugging = "false" | ||
RemoteDebugEnabled = "false" | ||
RemoteDebugMachine = "" | ||
StartAction = "Project" | ||
StartArguments = "" | ||
StartPage = "" | ||
StartProgram = "" | ||
StartURL = "" | ||
StartWorkingDirectory = "" | ||
StartWithIE = "true" | ||
/> | ||
<Config | ||
Name = "Release" | ||
EnableASPDebugging = "false" | ||
EnableASPXDebugging = "false" | ||
EnableUnmanagedDebugging = "false" | ||
EnableSQLServerDebugging = "false" | ||
RemoteDebugEnabled = "false" | ||
RemoteDebugMachine = "" | ||
StartAction = "Project" | ||
StartArguments = "" | ||
StartPage = "" | ||
StartProgram = "" | ||
StartURL = "" | ||
StartWorkingDirectory = "" | ||
StartWithIE = "true" | ||
/> | ||
</Settings> | ||
</Build> | ||
<OtherProjectSettings | ||
CopyProjectDestinationFolder = "" | ||
CopyProjectUncPath = "" | ||
CopyProjectOption = "0" | ||
ProjectView = "ProjectFiles" | ||
ProjectTrust = "0" | ||
/> | ||
</VisualBasic> | ||
</VisualStudioProject> | ||
|
Oops, something went wrong.