Wednesday, August 31, 2011

How to create web applications in SharePoint 2010?

In this article we will discuss the details steps to create web applications in SharePoint 2010. You can also check my last article on how to create a site collection in SharePoint 2010.
Step-1:
Go to Start->All Programs->Microsoft SharePoint 2010 Products->SharePoint 2010 Central Administration.


Step-2:
Click the option Manage web applications under Application Management.

Change authentication in Sharepoint 2010 site

My special thanks to Ramya.jay from chennai for this post !!!
Suppose your site admin password was hacked by any unknown person and changed the authentication of the site, then the following steps will be used to recover the full authentication.
Step:1
      The following is the error page that I got when I tried to enter into my site. And here I used Form Based Authentication .

Step:2

Tuesday, August 30, 2011

could not be loaded because more than one endpoint configuration for that contract was found

While consuming the wcf service I got the following error
System.InvalidOperationException: An endpoint configuration section for contract '
' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.

To resolve this pass the end point name in the constructor while creating object as follows

ServiceReference1.Service1Client serviceClient = new ServiceReference1.Service1Client("NetTcpEndPoint");
Here NetTcpEndPoint in the end point name.
You can also check some WCF articles here.

An attempt was made to load a program with an incorrect format

I got the errro An attempt was made to load a program with an incorrect format in one of  my c#.net application. I was importing a com dll which is 32 bit and my .net application build in 64 bit. The logic behind is: your dll and the .net application should be same version. To make your .net application to support 32 bit, Right click on the project go to properties. Then from there choose Build from the left side and Go to the Platform target: and change to x86 and it will work fine. see the figure below :
You can also check out some C#.net articles.

Monday, August 29, 2011

The server was unable to process the request due to an internal error

If you are hosting any wcf service in the production and you are getting the below error, rather getting the exact exception then you need to do as described below. The error message is:
{"The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs."}

For this you need to change in the App.config file in the wcf project. Put the below tag in the  <serviceBehaviors> section.

How to create a site collections in MOSS 2007 ?

In this article we will discuss how to create a site collection in moss 2007. Also you can follow how to create site collection in SharePoint 2010.

Site collections are a group of sites that form a hierarchy with a single top level website with a collection of subsites below it. These are the steps to create a site collection
Step-1:
Go to Start->AllPrograms->Microsoft Office Server-> Microsoft SharePoint 3.0 Central Administration.


Step-2:

Sunday, August 28, 2011

How to create a web application in MOSS 2007?

In this article we will discuss the steps required to create a web application in MOSS 2007. Also in my last article I have explained the detail steps to create site collection in SharePoint 2010.

Go to start->AllPrograms->Microsoft Office Server->open Microsoft 3.0  Central Administration , then central Administration window will open.
Goto Aplication Management -> Create or extend Web application ->
Create New Web Application -> one window will open ,change description,Application Pool name to a new name that you want to give as the name of your new application,you can also change the port here,For changing the port no need to change the port no each and every place. Just change it at Port option

Thursday, August 25, 2011

Content Editor Web Part in SharePoint 2010

In this post, we will discuss what is content editor webpart in SharePoint 2010. Also, you can check out my previous posts on:

- Configure search service application sharepoint 2013/2016 step by step

- How to use LINQ in SharePoint 2013/2016

Create an event handler to prevent items from deleting item from SharePoint list using Visual Studio 2010

Content Editor webpart is an out of box webpart comes with all SharePoint 2010 versions. It can hold HTML, JavaScript, and CSS. You can edit the content editor webpart, and point it to a

Tuesday, August 23, 2011

Disposing SharePoint Objects

If you are using SharePoint object model, then it is very much important to correctly release resources.

Also you can check out some posts on:

- Get list level content types using SharePoint 2010 client object model

- AllowUnsafeUpdates in SharePoint 2010

- How to deploy sandboxed solution in SharePoint 2010?

It should ensure that any unmannaged resources should be released as soon as they are no longer needed. Though garbage collector automatically releases memory allocated to unused objects, but it will release in a unpredictable manner. The .NET Framework provides the IDisposable interface, which exposes a Dispose method that you should call to explicitly release these unmanaged resources. To invoke Dispose method, you can use the using keyword, you can use the try/finally code block or you can explicitly invoke Dispose method.

Example of using keyword:
using (SPSite site = new SPSite("URL of the Site Collection"))
{
// Code here
}

Internally the compiler converts the using block to try/finally block as shown below.
SPSite site = null;
try
{
site = new SPSite("URL of the Site Collection");
// Code here
}
finally
{
if (site != null)
site.Dispose();
}

The SPSite and SPWeb types both implement the IDisposable interface, and both allocate unmanaged memory. If you do not correctly release SPSite and SPWeb instances, you will probably experience memory leaks, crashes, and frequent application pool recycles.

But if they are derived from the context object then the framework will take care of releasing resources, you should not release the resources.
For example SPWeb web = new SPSite(SPContext.Current.Web.Url).OpenWeb().
Here the web object is derived from the SPContext, so we should not dispose that. Here SPWeb object web.Dispose() automatically called.

You can also check a good article on SharePoint 2010 Best practices.

You can also check for the SPDisposeCheck for memory leaks.
http://www.fewlines4biju.com/2011/08/spdisposecheck-for-sharepoint-2010.html

you can check more in the msdn article.
http://msdn.microsoft.com/en-us/library/aa973248(v=office.12).aspx

Monday, August 22, 2011

Reassigning Option in Sharepoint Issue Tracking list

Issue Tracking is a general task in an organization for testing, product development, Code promotion etc.  Sharepoint 2010 Issue Tracking template is useful for this purpose. But for few issues we need to setup reassigning option for those issues.
      This article outlines the steps to setup reassigning option in Issue Tracking.
Step:1
    Create Sharepoint 2010 issue tracking list by the following steps:
v  Goto ‘Site Action’ menu
v  Select more option and choose ‘Issue Tracking’ under the category of ‘Tracking’
v  Enter the Name and Description for this list
v  Click ‘Create’ button to complete.
Step:2


         We need to hide some fields because by default we are going the assign the person based on the

Asp .net Development Company

One stop shop to all your application needs, asp .NET development companies! Read more to know more!
Asp .Net is a framework that works on applications. This is marketed and developed by Microsoft Company. The .Net is a development company that helps in designing dynamic websites with distinctive web applications in it. With its inception in January 2002, .Net was known with its first version 1.0 and ever since it has reached asp .NET 4. With best of the varied and distinctive features, .NET is the best framework to work in. Microsoft was first known for its Active Server Pages but soon this version was succeeded by asp .NET framework. Asp.NET is a Common Language Runtime which supports the asp.Net code with the help of .NET language.
Key Features:

Sunday, August 21, 2011

Add URL to Google, Bing & Yahoo search engine

You can add URL to different search engines like google, yahoo, bing etc.
You can add url to google by clicking here.
You can add URL to Bing search engine here.
You can add URL to yahoo search engine here.
Add URL to Top List by Clicking here

Friday, August 19, 2011

FAST search in SharePoint 2010

In this post we will discuss about FAST search in SharePoint 2010. Also you can check some of the posts  on:

- Query Search with SharePoint 2013 Client Object Model

- Copy or Move files from one folder to another folder using SharePoint 2010 object model

- Add custom web part properties to visual web part in SharePoint 2010

After taking over FAST Search & Transfer (an enterprise search company), Microsoft has developed FAST Search Server  2010 for SharePoint that is a fully integrated search server engine.

End users got some benefits from FAST as described  below:
- In FAST search, word and PowerPoint files will be displayed with thumbnail in the search result page. PowerPoint files can be previewed in the results list without opening the file, either with a PowerPoint client or with Office Web Applications.

- Office files can be opened in the browser without installing the client on the computer.

- FAST Search, you also can define Visual Best Bets, which are pictures or videos that are Best Bets for several keywords.

- FAST Search provides the capability of result refining on metadata associated with all results. Also FAST search shows counts for each of the refiners.

- For people search user can search by contextual user information like department, skills, competencies, city etc.User Contexts are nothing but can be built by using User Profile properties.

- Each property can be the base of sorting, configured in the “Sort by” field.

- Another feature called Similar search where users can get a new result set based on the search of the selected search result item.

- FAST Search supports language-specific word breaking and stemming, spellcheck, and antiphrasing.

- In FAST Search, custom queries can be set up using the native query language for FAST.

Benefits for Administrators:
- FAST search can scale-out up to more than 500 million items.

- FAST search is easy setup of User Context, Visual Best Bets, promotion/demotion.

- FAST search is Easy-to-configure sorting and refinement.

Thursday, August 18, 2011

SPDisposeCheck for SharePoint 2010

In this post we will discuss a very useful SharePoint tool which is known as SPDisposeCheck. Also you can check out my previous posts on:


SPDisposeCheck is a tool that analyzes the custom SharePoint solution that uses SharePoint object model. If you can using SPSite or SPWeb objects then it is very much necessary to dispose the objects.Many SharePoint API's allocate COM based memory that is not released by CLR garbage collection and must be released by calling the Dispose() methods. If the objects will not be disposed propertly, this you will get the error as "Detected use of SPRequest for previously closed SPWeb object SharePoint 2010". Check for more information.

There are also some objects which should not be disposed, for more information you can read this article.

As the name suggests SPDisposeCheck will ckeck your assemblies and will let you know the memory leaks according to the Microsoft standards. It is a command line utility and called by the Visual studio addin. It takes  path to a managed .DLL or .EXE or the path to a directory containing many managed assemblies. Then it starts analyzing the memory leaks.

You can download the from the below URL

http://code.msdn.microsoft.com/SPDisposeCheck

After downloading this and during installation you can tick on the check boxes to integrate SPDisposeCheck to visual studio 2010.

Once the Integration happens it can be found under Tools -> SharePoint Dispose Check in Visual Studio.

Job Openings in Design Engineer, Red Prairie Consulantant, OTM Functional Consulant, OTM Technical Consultant

Here are some job openings in Design Engineer, Red Prairie Consulantant, OTM Functional Consulant, OTM Technical Consultant. You can send resume to my mail id fewlines4biju@gmail.com and please mention the Job code as well. Refer to the image for the job description, Experince and Job location.

Wednesday, August 17, 2011

Lets support Anna Hazare

Note: Anna already in 10 days fast. So support Anna and Punish all corrupted politicians !!! Be with the 74 year old man who is trying to remove corruption !!! Born on 15 June 1937 Bhaaingar near to city Hinganghat in Bombay in a very middle class family. At the age of 25 Anna joined Indian Army to server the country. He was the only person survied in  Indo-Pakistani War of 1965, where all of Hazare's comrades were killed. God did not want to take him, so he saved his life provided one bullet had passed by his head. He read a book named "Call to the youth for nation building" by Swami Vivekananda in Delhi railway station and his life changed a lot, start serving to poor people. For his dedication towards serving people in India, He got Padma Shri award in 1990 and Padma Bhushan award in 1992. But today he is in Tihar Jail where India's most wanted people like Kalmadi(CWG scam) and Raza(2G scam) are there.

Tuesday, August 16, 2011

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

This error " It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS " might occured if your project contains more than one web.config file in the subsequient folders. If this situation happens then there are properties like  authentication, session state should not be configured in the child web.config. so for this i commented this line and it works for me.
The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application.

Monday, August 15, 2011

Happy Independence Day

Happy Independence Day !!! Proud to be Indian !!!!

Sunday, August 14, 2011

Marriage Party @Bangalore

I organized a marriage party at Bangalore on 12th Aug 2011 since none of my friends able to attained my marriage. Here I am sharing some of my pics.
Asima with Raju's friends & my mother

Tuesday, August 9, 2011

How to change date format in SharePoint 2010?

In this post we will discuss about how to change date format in SharePoint 2010?

Also you can check out:

- How to Check if your SharePoint 2010 Web Application Uses Claims Authentication?

- Get icon for different file types in SharePoint 2010

- Steps to create App Catalog site in SharePoint 2013

There are various ways to change date format in a SharePoint site. For this you can change from the Regional settings. For this to work Open the Site Collection, then Go to Site Actions in the left side. Click on Site Settings. Then under Site Administration click on Regional settings and change the date format accordingly.

To change the date format is a site column:
Procedure to change the date format in a site column is First we need to create a date column and then we will create another column which is of type Calculated and this column will populate on a formula based on the column we have made.

First create a site column by going to Site Settings -> Galleries -> Site Column -> Then click on create. It will open the New Site Column page. Give a name of the column choose type od Date and Time and choose Date and Time format as Date only and click on OK. Here our column name is ParentDate.

Then again click on Create in the Site Column page give the name (I am giving here name as ChildDate). Choose type as Calculated from the radio button list. Then in the Additional column list section in the Formula field type=TEXT([ParentDate],"dd-mmmm-yyyy") and choose the Data type return from this formula as Single line of text. Then click on OK and try using this column in your custom list, the date format will come as dd-mmmm-yyyy.

The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column

In this post we will discuss how to resolve error: The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column which comes in SharePoint 2010.

Also you can check out my previous posts on:

- Add jQuery in visual web part in SharePoint 2010

- Get icon for different file types in SharePoint 2010

- New Embed Code in SharePoint 2013

Recently I was trying to add a custom site column of type Calculated in SharePoint 2010. So in the formula box I have given like =TEXT(ParentDate,"dd-mmmm-yyyy") where ParentDate is the coulmn name and is of type date time. I have checked this formula from google. When I click on OK, it shows me the error as "The formula refers to a column that does not exist.  Check the formula for spelling mistakes or change the non-existing column to an existing column".

After that I have modified the formula to =TEXT([ParentDate],"dd-mmmm-yyyy"). The only modification I have done here is, I have added square bracket before the ParentDate and it worked for me.

PLSQL walkin in Bangalore

Here is a walkin in PL/SQL for bangalore location. Please see the figure below for location, company, date and contact person and job description. Note my employee id is - 112971

Friday, August 5, 2011

Life after one month of marriage

After a long time I am writting a personal blog and this is my first personal blog after my marriage. Time never waits for anything, seconds, minutes, hours, days, months and I have completed 1 month of my marriage. Sometimes it feels a lot of change happens during this time. One of my friend told me "You will feel good for the first 6 months and after that you will feel the heat.", Another one in my office colleague congrats me by saying "Welcome to the hell !!!". So sometimes I afraid of thinking these things. Except that one of my aunt told me " Since you got married now, think before saying anything to your parents, brother etc. Do not tell something like you told before marriage". Though I was thinking very funny at that time but as the time progress, somehow I feel that is the way it should be.

Thursday, August 4, 2011

Host a WCF service in Windows service in c#.net

It took me around 10 working hours to know me how to host a WCF service in a Windows service. It took a long time but I am able to do it. I am describing the steps below, let me know if I am wrong somewhere. Open Visual Studio 2010 and Click on File -> New Project -> Go to the WCF project template and then select WCF Service Library. Just to let you know that I am not sure what will happen when you will select WCF Service Application over WCF Service Library. I have choosen WCF Service Library here. Need to check the difference :) as shown in fig.


The project contains one App.config file, Iservice1.cs file and Service1.cs file. You can

Wednesday, August 3, 2011

Visual Studio 2010 Missing Setup and Deployment Templates

Also you can check out some posts on:

- Disposing SharePoint Objects

- AllowUnsafeUpdates in SharePoint 2010

- Approve master page using PowerShell in SharePoint 2010

Today when I tried to add a setup project from Other Project Types templates, It shows me No items found. Then I click on teh Set up and Deployment link, it also shows me no items found. But in the Extensibility section I got 2 templates like Visual studio Add-in and Shared Add-in template.You can see the figure below.


Its really a bug from Microsoft. Even if I googled a lot and I reset the Visual Studio 2010 settings, still I did not get anything.

After that I click on the small Icon present in the left side of Setup and Deployment it shows me 2 links like InstallShield LE and Visual Studio Installer. But this time also it is showing me No items found. Till now I thought there might be in my Visual studio. But when I individually click on the InstallSheild LE link I got the template InstallShield Limited Edition Support.


And When I click on Visual Studio Installer, It shows my required templates like Setup Project, Web set up project, Merge module project, setup wizard, CAB project as shown in below fig:

Monday, August 1, 2011

JQuery tutorial

JQuery is a Javascript library and is very light weight.
Some tasks you can do using JQuery:
HTML element selections
HTML element manupulation
CSS manipulation
AJAX
Java script effects and animations
HTML event functions etc.
Syntax to add JQuery library into a web page:
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>