Skip to main content

Posts

Recent posts

[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

Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.

while deploying the solution using visual studio you may get this error -"Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm. " Solution:   Hint for the solution is in the error message itself. It is not able to connect to sharepoint server means it is not able to communicate to  database instance. i.e the instance might have stopped. So goto SQL Server configuration manager. Click on start and search for "SQL Server configuration manager". You should know that the sharepoint installed to which instance? In my case it is sql server(sharepoint). It was stopped. Just start the instance by right click on that and select Start option. Now start deploying the solution from visual studio Hope this may help someone thanks pradeepa achar

[Solved]:How to make SharePoint site or any site to work in READONLY mode

Some times there will be situation where we have to make the site to work in read only mode for the end user so that they can access the site , get the contents . That's it. They should not add any more data .This type of situation comes because of certain reasons. one among them i can say is, we are moving the database to another server and later we are making all the users to access new server for further usage. During this process if the user adds data it will be big problem. So let's make users to use the site in readonly mode. Solution:   In order to achieve this , follow the following steps: 1. Open the visual studio management studio and right click on  the database to which your site is attached to save the data. Now select the Properties 2.click on the "Options" 3.Scroll down till "State" and make the Database Read-only to True Now..it is done!!!.. Let the user access the s

[SOLVED] : Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow) at Microsoft.SharePoint.SPListItemCollection.GetColumnNumber(String groupName, Boolean bThrowException) at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow) at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException) at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException) at Microsoft.SharePoint.SPListItem.get_Item(String fieldName) at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue

I wanted to retrieve a SPListItem  value and got error while debugging as- "   at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow)    at Microsoft.SharePoint.SPListItemCollection.GetColumnNumber(String groupName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow)    at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)    at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue " I started banging my head like anything. because for another column of  same field type it was working fine and for one of the column of same field type it was giving this error. Those fields i have created through schema. So i created one more column of same type and tr