Computing

Random Bug : MSMQ Unacknowledged messages

1 minute read Published:

In the outgoing queues we had unacknowledged messages, sometimes on server 1 sometimes on server 2. The two servers were cloned … and they had the same QMID Source : from John Breakwell: When you send a message, the sender’s Queue Manager ID (QMID) is sent with it. The destination builds a cache table mapping QMID to IP address of sender. This is to speed up sending acknowledgements back.

Microsoft Visual Studio and GIT ignore list

1 minute read Published:

You can find a good .gitignore for many languages / tools at the gitignore project Here is the direct link for the Visual Studio .gitignore https://github.com/github/gitignore/blob/master/Global/VisualStudio.gitignore

WinDbg - Howto find the cause of an IIS crash in production.

6 minute read Published:

We had a dump file of the crash \o/ and I had a Microsoft training on this subject 3 month ago with the impressive Christophe Nasarre. Opening the dump Launch WinDbg x64 because we have a dump of a 64 bits process CTRL+D or FILE / OPEN CRASH DUMP Setting the symbols server .sympath SRV\*c:\symbols\*http://msdl.microsoft.com/download/symbols .reload Check the modification .sympath Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols Expanded Symbol search path is: srv*c:\symbols*http://msdl.

XML - Deserialization error with invalid character

2 minute read Published:

Recently I had a strange error, I serialized a complex object and during the deserialization process I got : “Error : System.Xml.XmlException: ‘.’, hexadecimal value 0x00, is an invalid character. Line X, position Y.” It appears that we had a “\0” inside a string, something like “Hello\0World” ! and during a classic serialization, the character was encoded in “�” With the help of Google I have found this post (2007) with a way to have an happy deserialization 🙂

Error 415 and WCF Compatibility between .Net 2.0 and 3.5

1 minute read Published:

If you try to call a 3.5 WCF Service with the framework 2.0 and WCF 3.0, you will have an error 415 : Cannot process the message because the content type ‘text/xml; charset=utf-8’ was not the expected type ‘application/soap+xml; charset=utf-8’ ‘text/xml’ is the content type for SOAP 1.1 while ‘application/soap+xml’ is the content type for SOAP 1.2 and your client WCF 3.0 use SOAP 1.1 while the service with WCF 3.

Howto remove Diacritics in .Net

1 minute read Published:

If you need to remove diacritics from a string you can do a lot’s of replace like this : inputString = inputString.Replace('À', 'A'); repeat for ÀÁÂÃÄâãäàáÈÉÊËêëèéÌÍÎÏîïìíÒÓÔÖôõöòóÙÚÛÜûüùúÝýÑñç and maybe miss some exotic chars or the Õ in this list ! or you can use this function public static string RemoveDiacritics(string inputString) { //!\\ Warning 'œ' will be replaced with a 'o' not an 'oe' String normalizedString = inputString.Normalize(NormalizationForm.FormD); StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < normalizedString.

SEO - Subfolders or Subdomains

1 minute read Published:

I recently moved my blogs from subdomains and multiple domain to one domain with subfolders, here are articles on the subject from Chewy’s Blog and Search Engine Journal … search engine view subdomain site as a different site so the work you have done on the sub domain does not directly affect the parent domain as they are viewed as a separate entity. History, first I had my blog.

WCF WSDL SOAP binding: Rpc or Document, Encoded or Literal

2 minute read Published:

Yeah, my new WebService must be Rpc/Encoded. What ???? Hopefully this page from Ibm explain the different style/use in SOAP message. A WSDL document describes a Web service. A WSDL binding describes how the service is bound to a messaging protocol, particularly the SOAP messaging protocol. A WSDL SOAP binding can be either a Remote Procedure Call (RPC) style binding or a document style binding. A SOAP binding can also have an encoded use or a literal use.

SEO - WWW or NO-WWW ?

1 minute read Published:

For my new domain “frederichusson.com” I used links without “www.” like “http://frederichusson.com" mainly because I like when things are simple. Then I realized that maybe it was a mistake and maybe a “www.” site can get a better ranking in search engine. Then I searched on this subject and came accross “www. is deprecated” and a little after on an article at sitepoint.com And so I decided to stay without “www.

Howto test if and index exist in SQL Server

1 minute read Published:

IF INDEXPROPERTY(OBJECT_ID('TableName'), 'IndexName', 'IndexID') IS NOT NULL PRINT 'Index is here' ELSE PRINT 'Index not found'