April 2006 Entries
"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" http://dotnet.org.za/armand... I have beautified his solution as shown below:Step 1: Create an attribute class that you can...
MS Logging and Instrumentation BlockError: The type initializer for "Microsoft.Practices.Enterp... threw an exception.Repeat the following for all the code blocks you are using:C:\WINNT\Microsoft.NE... <destinationfolder&a
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...Invoke (String methodName, Object[] parameters)...
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 http://support.microsoft.co...
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{...
EntLib WMI and Event Log Errors(taken from http://blog.hishambaz.com/a... 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...
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 1.0.0.1, fault address 0x0000639b. For more information, see Help and Support Center at http://go.microsoft.com/fwl... SOLUTION The problem was caused by the Code Coverage tool I was using (Coverage...