Posts

Mutual SSL Authentication

Detailed introduction to Mutual SSL Authentication by Elvin Cheng. http://www.codeproject.com/Articles/326574/An-Introduction-to-Mutual-SSL-Authentication

WCF WSDL location address Issue resolved when hosted over HTTPS with basicHTTPBinding

Image
Recently I was working on a WCF web service which needs SSL implementation using basicHttpBinding, so that the service remains inter-operable and cater to native clients. Everything was going well, I was able to host my web service over HTTPS (I will detail out the configuration for the same in section below). But when I deployed on Server, following errors were received when proxy is generated: " Metadata contains a reference that cannot be resolved: " " The WSDL document contains links that could not be resolved." The issue lies with the WSDL which generates the location url with client machine name, which restricts generation of appropriate proxy over Internet because it will never be able to resolve machine name over internet. Here is what the Soap Address location and WSDL Import location look like in my WSDL: < soap:address location ="https://MachineName.mydomain.com/MyService/Service.svc" /> < wsdl:import   locati...

IE9 rendering issues table offset at random columns

Today while developing an ASP.NET application using AJAX to display the Search Result, I encountered a weird issue. My aspx p age contain a Repeater control with ItemTemplate to display free flow data in HTML Table .  Issue What seems to happen though, is that one or two rows in the loaded table, will have its data offset at a random column.   You can find the details of issue in following articles: http://stackoverflow.com/questions/7267014/ie9-table-has-random-rows-which-are-offset-at-random-columns http://social.msdn.microsoft.com/Forums/en-AU/iewebdevelopment/thread/28d78780-c95c-4c35-9695-237ebb912d90 Resolution The problem was with extra white space between td nodes causing IE9 render a dynamically generated table incorrectly, in my case to misalign a cell within a table.  Same code rendered perfectly fine in IE6, IE7, IE8, FireFox 4, Chrome 10, but not IE9.  Try one of the following Adding to the head element [me...

How to get the IUSR and IWAM user account passwords

Open up command prompt and navigate to C:\Inetpub\AdminScripts. Then type: cscript.exe adsutil.vbs get w3svc/anonymoususerpass If everything goes well, you will see the following with the password in ***** format: C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs get w3svc/anonymoususerpas Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. anonymoususerpass : (STRING) "**********" To display the IUSR and IWAM account passwords in cleartext, you need to open C:\Inetpub\AdminScripts and edit Adsutil.vbs in Notepad. Find this line: If (Attribute = True) Then IsSecureProperty = True Else IsSecureProperty = False End If and change it to: If (Attribute = True) Then IsSecureProperty = False Else IsSecureProperty = False End If Now run the script commands above again and you will see the passwords in clear text. Of course, please make...

Prevent Recursive Workflows in SharePoint

When creating Workflows in SharePoint, you might have encountered issue when workflow recursively call itself and  tell the workflow to run automatically when an item is updated [approved], then because the workflow is updating the item its goes and calls itself again! This is known as recursive workflows, commonly known as an "infinite looping" in a workflow. To avoid this issue we just need to a dd a condition to the Workflow and only update list or document library item on certain condition. I found an interesting Microsoft article  Run a workflow when a specific field changes Also there is a video which also s how how the conditions prevent recursive workflows.

Display Percentage Values on a Pie Chart (Report Builder and SSRS)

By default, categories are shown in the legend to identify each value. If you have labeled the pie chart using category labels, you may want show percentages in the legend. To display percentage values as labels on a pie chart Type  #PERCENT  for the  Label data  option. (Optional) To specify how many decimal places the label shows, type "#PERCENT{P n }" where  n  is the number of decimal places to display. For example, to display no decimal places, type "#PERCENT{P0}". Click here  for Microsoft Technet Article for more details.

SharePoint Garbled Email Issue

Recently I came across an issue where ‘Alert Me’ emails originated from SharePoint environment are getting garbled and reaching the customers in following format. Resolution   After troubleshooting it was found that somehow recent patch on Exchange Server was adding a line break in Internet Email header messing up the Header itself, which was garbling the Email body and it was showing something like this.  On  analyzing multiple garbled email headers and comparing them to working email header it was found that these garbled messages were missing the “Reply To” address. Setting up the ‘Reply To’ address in SharePoint Admin for the Farm fixed the issue. Note that this issue was only with ‘Alert Me’ email relaying outside the company to extranet users, within companies Email Addresses there seems to be no issue.  Also a point to note that this entry was missing for last 2 years and we never faced this issue, nothing was changed on SharePoint server when...