Skip to main content

Posts

Showing posts from 2016

[Solution] :How to not serialize the __type property on JSON object

While working on ajax- webservice , most of the time we prefer return value from web service method should be in JSON format . If we expect a web service method to return the value as JSON object then it will display few information about the source code through the __type property. Also this property is additional load for response. We ideally need to avoid this property Have a look at the below image in which it is returning JSON object which has my custom properties along with __type property. Here i have used burp suite penetration testing tool to test the loophole in our software. Through fiddler i have got the information about request /response  and wanted to hide error message which gets generated from exception. Usually stack trace may allow hackers to  retrieve error message which  contains code related information by using which hacker can easily find the loophole to hack the function.So when  exception arises hacker should not be able to know the i

[Solved] Unrecognized attribute 'allowInsecureTransport'.

In order to install sharepoint on  client operating system such as windows 7 , windows vista  there are lots of hotfixes we have to download and install before running the sharepoint application file .Even after installing all of required hotfixes still you may face one more issue if you are going to create sharepoint site through utility written in c#/powershell    on windows 7 machine  . You may get an exception as mentioned below Unrecognized attribute 'allowInsecureTransport'. Note that attribute names are case-sensitive. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\Bdc\client.config line 36                                                or Unrecognized attribute 'allowInsecureTransport'. Note that attribute names are case-sensitive. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\SecurityToken\client.config line 41)  Remember , this is because of missing update for Windows 7

First program in Python!!!

Here you go!!.. Learning new programming languages is quite equal to learning new regional language. I have head started with python programming language which is one of the oldest programming languages . It is has OOPS concept so that if we are familiar with OOPS concept then this programming language should be quite easy for us to learn. Only syntax varies. To start with i have tried to write a smallest program in python language.The problem statement is very simple Write a program to find 2 consecutive vowels in a string  .Consider those two consecutive vowels as one character and return the number of characters in that string. I have used an online editor http://www.tutorialspoint.com/execute_python_online.php to learn coding practically.Now let me show you step by step to execute this small program When you open the   Online EDITOR  linkby default you can see root folder and under that root folder there is file named main.py  2.Now right clic