Pages

Sunday, December 1, 2019

Monday, October 28, 2019

Sunday, October 13, 2019

Disrupt Asia 2019

On 12.10.2019, I attended and participated as a delegate for North East Federation of Chamber of ICT.
It was very humble meeting my first boss; who is Madu Rathnayake – VP Virtusa Corporation.

Wednesday, June 19, 2019

Read the Response message when a web request throws “500 Internal Server Error”

Introduction

When I call a SOAP request from Postman I got the response as “500 Internal Server Error”. I had to call the same api from C# and read the response and had to pass it from api to front end.

Here is the screenshot of the response.




Solution



   
                string soapResult = string.Empty;
                try
                {
                    using (WebResponse webResponse = webRequest.EndGetResponse(asyncResult))
                    {
                        using (StreamReader rd = new StreamReader(webResponse.GetResponseStream()))
                        {
                            soapResult = rd.ReadToEnd();
                        }
                    }
                }
                catch (WebException wex)
                {
                    soapResult = new StreamReader(wex.Response.GetResponseStream())
                                          .ReadToEnd();
                }
                return soapResult;

Friday, May 10, 2019

Unable to open dtproj projects in Visual Studio 2017

Problem
I was trying to open a sln file which contains “.dtproj”. Unfortunately the project is marked as incompatible and the migration report displayed as below.


Solution

  • Install the latest version of SSDT
  • Open Visual Studio 2017: Go to: Tools > Extensions And Updates > Search: Microsoft Integration Services Projects > Click: Enable
  • Restart Visual Studio
  • In SSIS Project On Solution: Right Click > Reload Project




Wednesday, May 1, 2019