Follow in Twitter & Facebook

Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools

Saturday, March 31, 2012

The type, provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found

- No comments
I found the below error while doing one Wcf sample in Visual Studio 2010. The error is
The type 'WcfSampleService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Also we have discussed what is WCF and how you can call a wcf service in an application.
Here WcfSampleService is the .svc file name.

Friday, March 30, 2012

Web.config and Machine.config

- No comments
In this article we will discuss what is web.config file and machine.config and what is the difference between web.config and machine.config in Also you can check a very good article on Delete and Truncate in sql server 2008.

(1)-A web.config file is used to configure web application. Each application has a t lease one web.config file.

(2)-Web.config is configure your application only.

(3)-The settings made in the web.config file are applied to that that particular web application only.

(4)-An application can override most default values stored in the machine.config file by creating one or more web.config file.

(5)-At min an application creates a web.config file in its root folder.The web.config file is a subset of machine.config file written according to the same XML scehma.

(1)-A machine.config file is used to configure the application in a particular machine. Configuration done in machine.config file is affected on any application that runs in a particular machine.

(2)-Machine.config related to all the application on your server.

(3)-The settings of machine.config file are applied to the whole application.

(4)-The machine.config file contains default and machine specific values for all supported settings.

(5)-Machine settings are normally controlled by the system admin and application should never be given write acess to it.

Also you can check some articles and C#.Net articles.
Hope you all will enjoy !!!

Thursday, March 29, 2012

Cannot determine the location of visual Studio VS common Tools folder.

- No comments
I got the error 'Cannot determine the location of visual Studio VS common Tools folder.
'Svcutil' is not recognized as an internal or external command,operable program or batch file' while trying to create proxy class in Visual studio 2010 command prompt(Always run the Commandprompt as run as administrator by right clicking onthat visual studio command prompt tag select Run as administrator) by the help of the tool svcutil.exe for one wcf application.

I find one solution for that one
Actualy in my system in this path like c:\programfiles\Microsoft Visual Studio 10.0\VC , svcutil.exe is not there.

so first check for that one Actually in case of visual studio 2010 , check the path like
c:\Program files\Microsoft SDKS\Windows\v7.0A\bin ,svcutil.exe is available here.
So insted of the firsrt path, give the second one like

c:\Program files\Microsoft SDKS\Windows\v7.0A\bin> Svcutil.exe http://localhost:54817/Service1.svc (i.e the service path)

Then this will generate two files in the same path Bin folder proxy class file and other one is the config file i.e the output config file according to the name given by you only..

Tuesday, March 27, 2012

Delete and Truncate in sql server 2008

- No comments
Here we will discuss what is the difference between Delete and Truncate in SQL Server 2008. Normally this is also a very good interview question. You can read an article on Connection Pooling in Asp.Net.

(1)-It can delete all rows or particular row .

(2)-Delete is recorded in log file.

(3)-Data can be restored here.

(4)-Delete willnot reset identity.

(5)-Delete is slower than truncate.

(1)-It can delete only all rows.

(2)-Truncate is not recorded in log file.

(3)-Data cannot be restored.

(4)-Truncate will reset identity.

(5)-Truncate is faster than delete.

Also you can check Asp.Net and SharePoint interview questions and answers.

Monday, March 26, 2012

Static variables in C#.Net

- No comments
Static variables are very important in C#.Net and you should use carefully in your Asp.Net application. So it is very important to know what are static variables in C#.Net. Also you can check very good article on Delegates in

Static variables are classes variables not instance variables.

A static variable is a variable whose single copy in memory is shared by all objects,
so any modification to the static variable will modify it's value in all objects.

Static variable is a class variable which value remains constant for the entire class.
In Traditional ASP we had the application object to store the application wide variables.

But in .Net, we have Static variables which in most cases faster to acessing than Application object.

Inorder to implement the static variable , we first have to give our Global.asax a class name
by adding the directive
<%@ Application class name = "MyClass" %>

Then we specify our static variables inside the script tags using "public" or "shared" keywards.

<Script language = "C#" runat = "Server">

public static string mystaticvar = "" ;


Now we have the variable 'mystaticvar' setup, we can call it directly from our .aspx page using the class name and variable name.

X = Myclass.mystaticvar

Where Myclass--class name and mystaticvar--variable name.

Hope this article will help you all....

Also check Primary Key,Unique Key SQL Server 2008.

Thursday, March 22, 2012

Dataset and Datareader

- No comments
Dataset and DataReader are very much important in Ado.Net in Asp.Net. So it is necessary to know what is the difference between dataset and datareader and where to use both. Also you can consider as an interview question in interviews. You can also check ExecuteScalar(),ExecuteNonquery(),ExecuteReader() in Asp.Net.

(1)-It is a readonly and forward only data i.e Read-Only acess.
(2)-U can acess one table at a time .
(3)-It comes under connected architecture.
(4)-One of the most advantage is that it is much faster than dataadopter.
(5)-Using Datareader only one value can be acessed at a time from the database.
(6)-Here the data is retrieved based on the select statement .
(7)-We can't do DML operations through datareader.

(1)-It is defined with multiple tables.
(2)-It is a disconnected architecture.
(3)-It can't be defined without DataAdopter.
(4)-Dataset is able to fetch record in bidirection.
(5)-Datas having read/write acess.
(6)-It comes under dissconnected architecture.
(7)-It is slower as compired to datareader.

Wednesday, March 21, 2012

Asp.Net cookies Advantages and disadvantages

- No comments
Cookies are client side statemanagement techinque in Read other article on Difference between cookie and session in

(1)-Cookies don't require any server resources since they are stored in the client.
(2)-Cookies are easy to implement.
(3)-You can configure cookies to expire when the browser session ends (Session Cookies) or they can exist for a length of time on the client computer
(Persistent cookies).

(1)-User can delete a cookie.
(2)-Users browser can refuse cookies, so your code has to anticipate that possibility.
(3)-Cookies exists as plain text on the client machine and they may pose a possible security risk as anyone can open and temper with cookies.
(4)-Cookies don't provide security.
(5)-Cookie provides maximum of 4kb of text data(cookie supports only string data).
(6)-Separate text file will be created towards each domain[website] to maintain cookies.
(7)-Browser supports maximum of 20 cookies towards a website.
(8)-Browser supports maximum of 300 cookies towards different websites.
(9)-One browser type[Internet Explorer] stored cookies willnot be used by another browser type[Fire Fox].
(10)-It can represent only text, object cannot be stored.
(11)-Cookies having limitation in count and memory size.

You can also check more interview questions and answers.

Tuesday, March 20, 2012

Server.Transfer() and Response.Redirect()

- No comments
Hey,Friends this is a common question in the interview  What is the difference between Server.Transfer() and Response.Redirect() in Asp.Net? So i am sharing some differences, hope this will help you. You can also check Page Lifecycle Events in ASP.Net.

(1)- Server.Transfer transfers page processing from one page to the next page without making a roundtrip back to the client browser.

(2)- This provides a faster response with a little less overhead on the server.

(3)- Server.Transfer doesn't update the client's url history list or current url.

(4)- Server.Transfer() sends the request to the server.

(5)- It can only take you to the pages with in one application.

(6)- Server.Transfer() is a method of server() is a method of server object which is an instance of System.Web.Http Server Utility class.

(1)- Response.Redirect is used to redirect the user's browser to another page or site.

(2)- This performs a roundtrip back to the client browser.

(3)- Response.Redirect updates the client's url history list or current url.

(4)- Response.Redirect() sends the request to the browser.

(5)- Respose.Redirect can redirect you to any page i.e pages within the application as well as external pages.

(6)- Response.Redirect() is a method of request object which is an instance of System.HttpRequest class.

Also check Connected and Disconnected Architecture Ado.Net.

Monday, March 19, 2012

Delegates in

- No comments
Delegate is an important concept in You can also check Arraylist,Hash table,Sorted list and Dictionary C#.Net.
Delegate is implemented as an object which stores the address of another method.
Advantages of Delegates:
1-Effective use of delegate improves the performance of application
2-Used to call a method asynchronously

To work with delegates we have to follow 4 steps. These are as follows
(1)-Declare the delegate
(2)-Define the Method
(3)-Creating the instance of the delegate

Validation controls in

- No comments
Validation controls are there in to validate proper entry of data. Here we will discuss the validation controls available in and we will see some important properties of each validators. You can also read Web.config and Machine.config
There are 6 validation controls in These are
(1)-Requiredfield validator
(2)-Range validator
(3)-Compair validator
(4)-RegularExpression validator

Friday, March 16, 2012

Visual Studio 11 Beta Download

- No comments
Here is the link to download Visual Studio 2011 beta.

Also you can download .NET Framework 4.5 Beta

Primary Key,Unique Key SQL Server 2008

- No comments
Here we will discuss what is primary key, unique key in SQL Server 2008 and What is the difference between primary key and unique key in SQL Server 2008. You can also check What is Connection Pooling in Asp.Net ?

Primary key:
(1)-Primary key is(Unique key+not null).

(2)-There must be one primary key can be present inside a table.

(3)-It doesn't support null values .

(4)-It doesn't support duplicates.

(5)-Primary key allows each row in a table to be uniquely identified and ensures that no duplicate rows exist.

(6)-Clustered index is created in Primary key.

Unique key:
(1)-There may be more than one unique key can be present inside a table.

(2)-It supports null values.

(3)-But it doesn't support duplicates like suppose inside column there are two null values then SqlServer internally give some different values but values are not equal.

(4)-Unique key constraint is used to prevent the duplication of key values within the rows of a table and allow null values.

(5)-Non-Clustered index is created in unique key.

You can also see some SQL Server articles here.

Thursday, March 15, 2012

Connected and Disconnected Architecture Ado.Net

- No comments
I am sharing some differences between Connected and Disconnected Architecture in ADO.Net in To communicate with database we must have connection from front end application to database.

They can be of two type.
Connected Architecture:
(1)- In Connected Architecture you have to declare the connection explicitly by using Open() and close the connection by using Close() and you can execute commands using different methods like ExecuteNonQuery(),ExecuteScalar() and ExecuteReader().

(2)- Connected Environment needs constantly connection of user to datasource while performing any operation.

(3)- Only one operation can be performed at a time in connected environment.

(4)- Connected environment is slower in speed.

(5)- We get updated data in connected environment.

Disconnected Architecture:
(1)- In Disconnected Architecture, you don't need to define the connection explicitly.Sql DataAdopter itself can open and close the connection and you can use dataset for storing the information temporarily and Fill() is used to execute the commands give in adopter.

(2)- Disconnected environment doesn't need any connection.

(3)- Multiple operations can be performed at a time in disconnected environment.

(4)- It has a good speed.

(5)- In disconnected environment, there is a problem in dirty read.

Also check What is Connection Pooling in Asp.Net ?

Arraylist,Hash table,Sorted list and Dictionary C#.Net

- No comments
In this article we will discuss about Arraylist, Hash table, Sorted list and Dictionary. Also you can check my last article on Delegates in
- This is one type of Array whose size can increase and decrease dynamically.

- Arraylist can hold items of different types.

- The base class is System.Collections.ArrrayList.

- An ArrayList uses an array internally and initializes its size with a default value called capacity. As the no of elements increases or decreases , it adjust the capacity of the array by making a new array and copying the old values into it.

Asp.Net developer Opening at Embytes Solutions

- No comments
Embytes Solutions has a job opening for an ASP.Net developer.

Qualification :  BE/B Tech/MCA/MSc., Computer Science.
Experience:  3-4 yrs
Skill Set :  C# Dot net 3.5 Frame Work, Asp.Net, Design Patterns, AJAX, Silver light (added advantage), SQL Server, IIS Server, Java Script / J Query, Experience in E-Commerce portal development.

Friday, March 9, 2012

The service did not start due to logon failure

- No comments
I go the error message while trying to start MSSQLSERVER service. The detailed error message is: Windows could not start the SQL Server (MSSQLServer) service on Local Computer.

Error 1069: The service did not start due to logon failure.

Normally you will get this error if you have changed your network password.

go to start -> run and then type services.msc this will open the Services window. Search for SQL Server (MSSQLSERVER).

Then right click on that go to properties as shown in the figure below.

This will open the Properties dialog box, Navigate to the Log On tab and change the password and shown in the figure below.

Then try starting the service it should work.

Wednesday, March 7, 2012

SharePoint Developers Opening 3 - 5 Yrs with CMMi Level 5

- No comments
We have an Job opening for Moss/SharePoint Developers with Dot Net (Knowledge) 3 to 5 for CrimsonLogic Bangalore-(CMM Level 5 Company)

Division/ Department: Development
Job Type: Permanent
Experience required: 3 - 5 yrs
Qualification: Bachelor"s degree in Computer Science or equivalent
Job Location : Bangalore
Experience required: (3 to 5)

Tuesday, March 6, 2012

Asp.Net Openings

- No comments
Experience required for the Job: 4 - 7 years
Annual Salary of the Job: 4.0 - 10.0 Lacs
Job Location: Chennai

We have immediate openings with one of our client (Deployment Project) at Chennai.
Company : Helios & Matheson IT Ltd.,
Client : Investment Banking Giant
Location : Chennai

If you are interested send your updated profile with below details to

Saturday, March 3, 2012

External content type video tutorial SharePoint

- No comments
Here is a video tutorials on how to create external content types using SharePoint Designer 2010. The author is Asif rehmani who is a MVP in SharePoint and a very good SharePoint designer trainer.

Friday, March 2, 2012

SharePoint 2010 Development videos

- No comments
Check some SharePoint 2010 development videos from Microsoft SharePoint team members. Click here to see !

Thursday, March 1, 2012

SharePoint Infopath 2010 Video tutorial

- No comments
This Infopath SharePoint 2010 video tutorials explain about how to create a forum using Infopath 2010. You can also check more SharePoint 2010 InfoPath articles.