.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘Symptoms’

DEFECT ERROR: Object Reference not set to an Instance of an Object

Symptoms
“Object reference not set to an instance of an object” This error occurs when generating a report for a company that has been deleted from within FRx.
Resolution
This SMR has been fixed in R04670 Service Pack, please check our website () for availability of Service Packs for your General Ledger. You may also sign up for automatic notification of Services on our website .

BUG: You receive an error message when you serialize a DBConcurrencyException object in ADO.NET 1.0

Symptoms
When you serialize a DBConcurrencyException object, the value of the Row property in the serialized version of the object is set to a null value and an exception occurs:

An unhandled exception of type ‘System.NullReferenceException’ occurred in app_name.exe
Additional information: Object reference not set to an instance of an object.
Resolution
Serialization support is not provided for DataRows in this version of Microsoft Visual Studio .NET.

BUG: XmlTextReader Decodes URLs Before Downloading Resources Resulting in Unpredictable Behavior

Symptoms
When you use the XmlTextReader object to download resource files, the reader decodes the URL for the resources. If the URL contains any special characters (for example, ampersands or percent signs), this may result in unpredictable behavior.
Resolution
To resolve the problem, follow these steps: Use the XmlUrlResolver and the System.IO.Stream classes to map the specified URL.Create an XmlTextReader object and pass the Stream as the parameter. For an example, see the “More Information” section of this article.

BUG: PInvoke method with System.GUID return type raises exception error

Symptoms
When you run Platform Invocation Services (PInvoke) with System.GUID as the return type, the process is unsuccessful and you receive the following exception error message:

An unhandled exception of type ‘System.Runtime.InteropServices.MarshalDirectiveException’ occurred in TestPInvoke.exe Additional information: Method’s type signature is not PInvoke compatible.
Resolution
Microsoft has confirmed that this is a problem in Visual Studio .NET.

“Ie5wzd caused an exception in module Msjava.dll or Kernel32.dll” error message when you run Office 2000 Setup

Symptoms
When you run Office Setup, you may receive an error message similar to one of the following:

Ie5wzd caused an exception in module Msjava.dll
-or-

Ie5wzd caused an exception in module Kernel32.dll
Resolution
This behavior may occur for either of the following reasons: The Microsoft Java Virtual Machine (VM) is damaged.
-or-NetZip is installed on your computer.

“ActiveX component can’t create object” error message when you use Data Access Objects version 3.0 (DAO 3.0)

Symptoms
When you use Microsoft Data Access Objects version 3.0 (DAO 3.0) with the products listed at the beginning of this article, you may receive the following error message:

Run-time error ‘429′: ActiveX component can’t create object.
Resolution
This error message occurs when both of the following conditions are true: You are referencing the DAO 3.0 object library.
-and- You are using the CopyFromRecordset method in your macro.