Geeks With Blogs
Shailen Sukul blog April 2006 Entries
XML attributes may not be specified for the type - Serialization Error
"XML attributes may not be specified for the type"XmlSerializer and CollectionBase derived classesI get this error when I try to serialize an object that is based upon the CollectionBase class and has an XmlRoot attribute.The solution is to provide hints in the Serialization method to add a defined root in the generated XML. Thanks to user "armanddp" I have beautified his solution as shown below:Step 1: Create an attribute class that you can ......

Posted On Friday, April 7, 2006 10:47 PM

Logging Block Type Initializer Error
MS Logging and Instrumentation Block

Error: The type initializer for "Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent" threw an exception.

Repeat the following for all the code blocks you are using:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe <destinationfolder>\Microsoft.Practices.EnterpriseLibrary.Common.dll

Posted On Friday, April 7, 2006 10:45 PM

Intermittent Web Services Error
Intermittent Web Services Error I have a proxy class that performs a large number of calls on a web service. It fails intermittently with the following error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protoco... ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protoco... (String methodName, Object[] parameters) ......

Posted On Friday, April 7, 2006 10:40 PM

Sql Server DTC Error
SQL Server DTC ErrorError Message: Server: Msg 7391, Level 16, State 1, Procedure p_SP1, Line XThe operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTrans... returned 0x8004d00a].ResolutionSee ......

Posted On Friday, April 7, 2006 10:38 PM

Web Service Inheritance Error
Web Service Inheritance ErrorWe have a bunch of web services that are derived from a base web service class.When running one of the derived web services, I got the following error:“Server did not recognize the value of HTTP Header SOAPAction:”The error was caused by not providing an explicit namespace for the derived web service class. The following attribute fixed the error:[WebService(Namespace... DerivedWebService : BaseWebService{ ......

Posted On Friday, April 7, 2006 10:36 PM

Enterprise Library WMI and Event Log Errors
EntLib WMI and Event Log Errors(taken from after installing Enterprise Library, you MUST install the instrumentation and performance counters.start\All Programs\Microsoft p&p\Enterprise Library\Install ServicesThis will execute installutil on each of the assemblies and register the performance counters. I would hope that in the next version of the installer, this option will be automatically executed after the solution is ......

Posted On Friday, April 7, 2006 10:34 PM

InstallUtil Installutil seems to have stuffed up on my computer. It gives the following error whenever I try to start it, even without parameters: The Application log contains the following dump: Faulting application installutil.exe, version 1.1.4322.573, faulting module codecoverage.dll, version, fault address 0x0000639b. For more information, see Help and Support Center at SOLUTION The problem was caused by the Code Coverage tool I was using (Coverage ......

Posted On Friday, April 7, 2006 10:31 PM

Copyright © Shailen Sukul | Powered by: