Wednesday, October 24, 2012

Sharepoint 2013 The context has expired and can no longer be used


I came across this odd error a couple of times in the past few weeks, so I wrote a quick guide that might help you get rid of it.
If you see this error after opening your SharePoint 2013 site, there is a lack of synchronization between Date and Time settings in your SharePoint 2013 Server and your SharePoint web application.
Sorry, something went wrong. The context has expired and can no longer be used. (Exception from HRESULT: 0×80090317)

Here is how you fix it!




  • Open Central Administration -> Application Management.
  • Locate the relevant Web Application and click on 
  • Web Application General Setting window will open up, notice that the Default Time Zone is missing.

Open Date and Time options on your server and check which time zone is configured. Configure the same time zone in Web Application General Setting.


Perform IIS Reset and open your SharePoint 2013 site again.


Hooray! SharePoint site works again!

Ref Link : http://blog.cloudshare.com/2012/10/22/how-to-fix-sharepoint-2013-web-application-error-the-context-has-expired-and-can-no-longer-be-used/#more-3508

Enable Anonymous Access to a SharePoint 2013 site


As is the case in previous versions, you can configure SharePoint 2013 sites to be accessed by anonymous users. In this article I will show the steps needed to configure anonymous access to an existing SharePoint 2013 site.
1. Navigate to the SharePoint 2013 Central Administration in your SharePoint 2013 environment. Under Application Management section, click the “Manage web applications” link.

2. Select one of the available web applications and press the “Authentication providers” button available in the Ribbon. A modal dialog showing the authentication providers available per zone is displayed. As you can see, in a basic scenario only the “Default” zone is listed.


3. Click the “Default” link so a new modal dialog is displayed. Just check the “Enable anonymous access” option and press the “Save” button


4. Navigate to one of the site collections you have created under the configured web application and go to “Configure -> Site Settings”. Under the “Users and permissions” section, click the “People and groups” link.


5. As you can see, SharePoint 2013’s Ribbon display is an “Anonymous Access” button that allows you to configure how anonymous users can access to the site.


6. Press the “Anonymous Access” button in the Ribbon so the related configuration modal dialog is shown. In this dialog you have three configuration options, just click the first one that provides full anonymous access to the site. Press the “OK” button.


7. Back to the “People and Groups” page, check there is a new group called “Anonymous users” available in the list.


8. We are almost done. To finish, start a new instance of a web browser and check that you don’t need to provide credentials information since anonymous access is enabled on the entire site.


And that’s all about how to enable anonymous access to a SharePoint 2013 site. I recommend you check out how it works in your SharePoint 2013 CloudShare environment.

Ref : link:-  https://support.cloudshare.com/entries/22231202-how-to-enable-anonymous-access-to-a-sharepoint-2013-site




Wednesday, September 19, 2012

What is Group Discussion and its Importance - HR Interview Questions

It is a methodology used by an organization to gauge whether the candidate has certain personality traits and/or skills that it desires in its members. In this methodology, the group of candidates is given a topic or a situation, given a few minutes to think about the same, and then asked to discuss the it among themselves for 15-20 minutes.

As in a football game, where you play like a team, passing the ball to each team member and aim for a common goal, GD is also based on team work, incorporating views of different team members to reach a common goal.

Here are some of the most important personality traits that a candidate should possess to do well at a GD:

The skills that are usually assessed in a Group Discussion are:


    * Communication Skills
    * Interpersonal Skills
    * Leadership Skills
    * Motivational Skills
    * Team Building Skills
    * Tolerance to Ambiguity
    * Divergent Thinking
    * Listening skills
    * Presentation Skills
    * Analytical / Logical skills

So, it's important to assess your current strengths in all these areas and accordingly put efforts to strenthen your weaknesses.

What GD Panel Looks for - HR Interview Questions

All that one observes in a GD can be categorized into two broad areas: the Content and the Process. The content is all about the matter (or the 'what') spoken in the GD. Whereas, the process refers to the 'how', 'when' and 'why' of the GD. Both are equally important and need adequate attention at all stages. A high quality contribution with no regard to the 'process' is as suicidal as one which is high on packaging with little content.

Skills of an Individual that are Judged in Group Discussion are:

    * How good you are at communication with others.
    * How you behave and interact with group.
    * How open minded are you.
    * Your listening skill.
    * How you put forward your views.
    * Your leadership and decision making skills.
    * Your analysis skill and subject knowledge.
    * Problem solving and critical thinking skill.
    * Your attitude and confidence.

Important Points to Remember about Group Discussion (GD) - HR Interview Questions

   * It is important for all the members of a group discussion to use reasoning.
    * It is also important for you to ask questions that will allow you to determine how much the other members know about a specific topic.
    * You should not make a statement which gives your opinion about the accuracy of a comment that has been made by another member.
    * If you are the one who is planning or leading the group, it is important to make sure every members contributes something to the discussion.
    * It is important to make sure everyone is talking about the topic. The students should talk and make statements regarding the topic.
    * The best way to approach the topic of discussion is to start with a concept that is simple before moving to one that is complex.
    * Once you have researched the topic, you should develop your own thoughts or opinions about it.
    * To successfully participate in group discussion, you must know how to work well with others, and you must understand the topic or materials that are being discussed.

How to prepare and succeed in an job interview - HR Interview Questions

It has been effectively proven that in majority of all interviews that are done usually has a decision unto the applicants in a matter of minutes. And the rest is just for formality. This will mean that a glossy first impression will be of utmost importance during an interview to ensure that you get the perfect job.

By the time that you are given the knowledge that an interview is on its way. The first move is to observe and study the company that is offering the interview. A good knowledge and understanding with regards to the products and services offered along with who buys these things will be a great advantage at your part. A brief history about the company of your choice will give you something that other applicants would want. And make sure to get good information about the person who will give the interview to you. Mainly his position in the company along with his name.


On your way inside the place, make sure that every single person deserves a smile from you. Cheerfully great them along the way and politely talk with them. Do this as you can never know who among all of the people inside the building has great connections with the interviewer. Go into the establishment ahead of the interview time to make yourself comfortable with the atmosphere in the place and also to gather more information.

Take a good time going through your application and have enough time to think through the things about you so you don’t get blanked during the interview. Another good point is to bring along with you certain certificates that can be proof with regards to your professional and educational history. Do not bluntly show it to the interviewer. Instead, politely wait until this person asks to see it

As you have the time because you have went to the establishment early. Use some of it by thinking about 2 broad questions. This will come in handy because usually in the end of the interview. They tend to ask you if you got a few questions. This will most likely give the interviewer the idea that you are sharp and you think very fast.

Try to make yourself as simple as possible during the interview. Be the honest person that you can only think of before. Be sure to not let them see or at lost do not cross your arms in front of them and do not fold your legs while they see you. Look at them straightly and keep in mind that this whole interview is done only to acquire information’s and observations from you. This means your answers must be flawless along with your movements.

Body Language for an interview - HR Interview Questions

Posture
When the interviewer offers you a seat at the start of the job interview, sit upright but not too stiffly in your chair. This indicates that you are comfortable and feeling confident. Hunching down in your chair gives the impression of nervousness and low self-esteem. A sloppy posture indicates a careless attitude and a lack of energy. Sitting on the edge of your chair can come across as being nervous and tense.
Relax and lean slightly forward, about 10 degrees, towards your interviewer. This gives the message that you are both interested and involved. Leaning back makes you appear too relaxed and casual. Leaning to the side can be perceived as not feeling comfortable with the interviewer.

How you position your head also sends a message. Tilting your head very slightly to one side comes across as friendly and open. Keeping it straight comes across as self-assured and authoritative.

It is also important to pay attention to the posture of your interviewer. Sometimes you can establish rapport by adopting the same posture as the other person. This is called mirroring. If they have adopted a more formal posture do the same until you see that the interviewer has relaxed and become less formal.

Tell me about yourself - HR Interview Questions

Do you know why this question is asked so often in most job interviews? Because, this question is actually an ice-breaker. Asking this question starts the conversion. So one better be prepared for an answer. This question gives the interviewer a chance to know about the interviewee. Once you start talking about yourself, interviewer starts preparing his/her next question. So there are high chances that the next question that would be fired on you will be based on the answer of this question. As the answer for this will be based on you, you think and prepare it before the interview.


You! Tell them your name and which place you are from. Do not start with “Your name”, start with “I am your name”. This is a very common mistake. Not acceptable in interviews especially in call centre jobs.
You may talk about your family (cover up in short), you may talk about your how you came to the city, etc.


Education- Tell them about your education i.e. graduation/post-graduation.
If you are a fresher then tell them the grades you got. If you have done something different than others then tell them. It surely adds a value!


Experience- Talk about your whole experience. Start from early years and gradually come to recent years. If you have a long experience then you must not be doing same thing all years. Then exactly what you were doing? This is what your interviewer wants to listen.
If you are a fresher then talk about your projects.

Experience regarding to the post you have applied for- This is of most interest to your interviewer. You may be having lot of experience but how much experience you have regarding current job post is very very important. If you do not have it then you can talk about some related experience. Or if you do not have related experience too then say it clearly. Buy along with it give them confidence that you can do it and you have genuine interest to do it.
Fresh candidates who do not have any kind of experience, you should show some positive attitude and exhibit willingness to learn and do new things. Be ready to do new things. Don’t worry that you will make mistakes. Fresher candidates are expected to do mistakes and your employers are well aware of it so you don’t have any reason to be afraid. Believe me no one will give you more work than you can handle.

Do not describe your salary or pay scale at this point of time.
Avoid giving unnecessary details. Value your interviewer’s time.
The idle answer should not last more than 1 minute.


Other reasons that interviewers ask this type of question are because they want to:

Hear your thought pattern
See what’s important to you, by assessing what topics you talk about
Assess your language and grammatical skills
Buy time while they look over your CV
Confirming what you have already written in your CV
Look for loopholes in your resume
Gauge your personality, etc.




Example 

Good morning,

Firstly I would like to thanks for giving me this opputunity and its my pleasure to introduce my self.

I am neha came from hyderabad. I did my Btech IT in JNTU H with 61%. I completed my intermediate with 78% from narayana junior college. And my schooling with 73%.

When it comes to family. My Family contain three member including me. My father and mother are Govt Employee's.

And then coming to my Hobbies. Playing shuttles and watching TV.

My strength is Each and every problem that occured in my life till now has taught me so much. And I think I am strong enough to face any situation in my life and career. My experience is my strength and I feel it as the best teacher.

Coming to My weakness is - I am too concerned with the people, which has given me so much pain and tears.

My Short term Goal is to join in this company and my Long Term goal is to I would like to be in a good position in your company and improving my skills and knowledge in the development of your organization and myself.

My Areas of interest are c, .Net.

I easily adapt to any kind of environment, and that helps me feel comfortable at work. Being calm and patient, helps me to solve the problems in a better way. And that is my biggest strength too.

Am very passionate to be a part of this company if I got selected I'll work whole hardly to the progress of the company.

Why should we hire you - HR Interview Questions

They will ask this question in your job interview because they want to see your confidence level. If you answer the interview in a fantastic way and stumble upon this particular question then you might lessen the impression you have earned so far.
Another reason behind asking this question is, people love surprises. The interview candidates sometimes come with some surprising answers. And it becomes easier to know the candidate.
How to prepare for this tricky interview question?
The best way to answer this question is to convince your interviewers by giving the examples of your skills and worthiness why you are the best candidate for this job. Now, all the interviews might have different job requirement though the required skills are the same. So it will be better if you do not try to make a master answer which you can answer in all interviews. Even if you can find some master answers over the internet, chances are your interviewer is an experienced person who has already heard all of them.
So first, prepare the answer yourself. Before going for an interview; spend some time reading the job description carefully. Compare the job description with your abilities and skills. Also mention what you have accomplished in your other positions. Be positive and attract their attention towards your abilities, your experience, and your energy. Also show your interest in the company and the position.
You may also include some things that are required in any job but not necessary described in the job description. Give them examples of how you are a good team member and how you have tried to put an extra value to the organization interest. Also mention any work you have done for the organization or your colleagues which was not part of your job.

Example:
Because I sincerely believe that I'm the best person for the job. I realize that there are many other college students who have the ability to do this job. I also have that ability. But I also bring an additional quality that makes me the very best person for the job--my attitude for excellence. Not just giving lip service to excellence, but putting every part of myself into achieving it. In _____ and _____ I have consistently reached for becoming the very best I can become by doing the following . . .

Good Luck!

What do you know about our organization - HR Interview Questions

Every recruiters have an interest to know about your interest in the their company that up to what extent do you know about this company. You are being able to answer the question. If you have to conduct some researches regarding this company. But always remember this fact that you have to represent yourself as you have done some research work about this company and gained some information and you are keen to know more. Don’t overwhelm the interviewer. This may hurt the interviewer’s ego. You can discuss about its products or services, revenues, reputation, image, goals, problems, management style, people, history and philosophy. This is the safe way to answer this question, “In my job search, I’ve investigated a number of companies. Yours is one of the few that interests me, for these reasons I am here” Don’t say like this: “Well, everyone tells me that you’re in all sorts of trouble, and that’s why I’m here”.
For answering this question you have to prepare yourself in advance. Go through internet and read blogs and check Discussion Boards and social networking sites. If you are a college going student go to the career office or placement department you can get a list of alumni who work for the company. Mark up some relevant information easy to remember. This will put up a dogmatic impact over the interviewer panel.

Why do you want this job - HR Interview Questions

Sometimes the interviewer is not convinced about your purpose for applying this job. Generally the interviewer wants to know how long this person will stay with them. And if the purpose is not clear then the interviewer may get an impression that you are not looking for a permanent job and you will leave the organization soon.
For answering this question, you have to define yourself as the eligible and best candidate on the behalf of your experience and qualities needed for the job. Also mentioned that you the company have an excellent image and you want to work for an organization like it. You can do your best and enjoy a lot while working for this company.

Tips on how to answer this question
Consider the job position and your background before customizing these answers.
Keep in mind that you should try to construct an answer that will explain who you are and why you are there.
Another good idea is to add a few words about the good/positive image of the company.
Here are the answers:
1. Given the sense of importance of this ‘career field’; it has always made me want to be – “your career” and now to be a “this job”, because I can’t think of any other job-career that is so important to society.

2. This position challenges me to keep up with the cutting edge of technologies.

3. I would like to develop my EFG skills to acquire in-depth experience in my profession for the benefit of this organization.

4. This job in such a stable company offers long-term career development and this is what I am looking for.

5. I see this company not only as a positive work environment, but also as a good opportunity to have my skills and qualifications make a difference.

6. I would like to gain experience in this line of work because I feel that it will perfectly suit my ABC skills.

7. I feel I should have direct hands-on knowledge/experience in this position/at this stage of my career.

8. I believe that this job will help me assume another level of responsibility in my career. 

9. The job is tailored to my AFG skills and previous experience.

10. I want to be a part of a company on its way up as this company already launched several top products.

11. I believe that this entry-level job may enhance my professional experience.

12. Being part of a research and development team is a job experience I always love to have.

13. The company’s good reputation and its successful strategies and values make everyone want to work for such a company.

14. This challenging job will allow me to utilize my ABC skills.

15. This company is known as a company that rewards employees who deliver good results

What Are Your Weaknesses - HR Interview Questions

What are your weaknesses? In almost every job interview, the candidate is asked this question. You might think that this is some kind of leg pulling question. To your surprise that is not true! This is not at all a leg pulling question. But this is actually a brainteaser.
The question will trigger your presence of mind.  Be positive, pure and clear. Plan and deliver your answer in such a way that your weakness should reflect to your strengths. Be confident and answer it in a good sound.
Example 1:
You can answer like; you are a stickler for meeting and project deadlines which may cause you to sometimes work late nights. And you lose the work and personal life balance.
Example 2:
Or you can also answer it like; you like to stay on top of the project until it is done according to quality standards, which sometimes may cause frustration in your juniors.
It shows your maturity level and openness when you are brave enough to talk about your weaknesses.  Now it is time to show your intelligence and presence of mind. So add up something that demonstrates how you take your weaknesses positively. Tell them that you are not just aware of your while you are actually working on them.
So for example for above two weaknesses we spoke about, we will cover them as below.
Weakness 1:
You lose work & personal life balance. But tell them that you work on it by planning your work ahead of time and you have come long way and you are now seeing some improvements.
Weakness 2:
Your juniors sometimes get frustrated because you emphasis much on quality. But you educate them with the importance of quality work and how it makes your product unique than other competitors and puts you in a good position in market.
This will be enough to impress your interviewers. While make sure that you do not spend much time on this question as after some time the conversation might head towards something less important.

C sharp basic interview questions and answers for freshers

Can an Interface contain fields?
No, an Interface cannot contain fields.

Can you create an instance of an interface?
No, you cannot create an instance of an interface.

1.Does C# support multiple-inheritance?
No. But you can use Interfaces.

2.Where is a protected class-level variable available?
It is available to any sub-class derived from base class

3.Are private class-level variables inherited?
Yes, but they are not accessible.

How do you create empty strings in C#?
Using string.empty as shown in the example below.
string EmptyString = string.empty;

4.Describe the accessibility modifier “protected internal”.
It is available to classes that are within the same assembly and derived from the specified base class.

6.Which class is at the top of .NET class hierarchy?
System.Object.

7.What does the term immutable mean?
The data value may not be changed.
Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.

8.What’s the difference between System.String and System.Text.StringBuilder classes?
System.String is immutable.
System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

9.What’s the advantage of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

10.Can you store multiple data types in System.Array?
No.

11.What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.

12.How can you sort the elements of the array in descending order?
By calling Sort() and then Reverse() methods.

13.What’s the .NET collection class that allows an element to be accessed using a unique key?
HashTable.

14.What class is underneath the SortedList class?
A sorted HashTable.

15.Will the finally block get executed if an exception has not occurred?
Yes.

16.What’s the C# syntax to catch any possible exception?
A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

17.Can multiple catch blocks be executed for a single try statement?
No. Once the proper catch block processed, control is transferred to the finally block .

18.Explain the three services model commonly know as a three-tier application?
Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources)



1. How many types of JIT compilers are available?
There are Two types of JIT compilers.
standard JIT compiler.
EconoJIT compiler.

2.What are the different types of assemblies – name them?
Private
Public/Shared
Satellite assembly

3.What is GAC? What are the steps to be taken to pick up the latest version from GAC?
This Global Assembly Cache(GAC) stores .NET assemblies to be shared by several applications on that computer.publisher policy file is the configuration file to redirect to different version
1. Create the publisher Policy assembly using the assembly linker
2. Add the publisher policy assembly to the GAC using GACutil tool
Gacutil /i
3. During runtime CLR is looking into the publisher policy file and redirect the application to bind with new version assembly as specified inside the publisher policy.


4.How do we use different versions of private assemblies in same application without re-build?
In Asseblyinfo file need specify assembly version.
assembly: AssemblyVersion

5.Different methods of using a legacy COM component in .NET framework?
1. TLBIMP to create an Assembly from a COM component
2. Reference a COM component directly from .NET Editor

6.How do you implement SSL?
1. create certificate request
[
=>Right click on the website (VD)
=>Click Directory Security Tab and click Server Certificate
=> Type name of certificate , Organization name , server name
location info,
=> Type the path need to save certificate information Submit certificate request.
]

7.What is ref parameter? What is out parameter?
Ref Parameter: Used to pass a parameter as a reference so that the function called will set the value. This could be used to return more than 1 value by a function.
e.g.
public int AddMuliply( int a , int b, ref int c)
{
c = a*b;
return ( a+b);
}
The above function, returns the addition of two numbers as well as computes the multiplication result and passes to the calling function.
Out Parameter: Used to pass values from the aspx Code-behind to the aspx page.
The difference is that for a ref parameter, you have to assign a value before you call the function, while for OUT parameter, you dont have to assign a value, the calling function assumes that the called function would assign some value.

A ref parameter must first be initialized before being passed from the calling function to the called function. but a out parameter need not be initialized, we can pass it directly when we pass a parameter as ref to a method, the method refers to the same variable and changes made will affect the actual variable.
even the variable passed as out parameter is same as ref parameter, but implementation in c# is different, Arguement passed as ref parameter must be initialized before it is passed to the method. But in case of out parameter it is not necessary. But after a call to a method as out parameter it is necessary to initialize.
When to use out and ref parameter, out parameter is used when we want to return more than one value from a method. Ref parameter can be used as both input and o/p parameter out parameter can be used as only output parameter

8.What is boxing? What is the benefits and disadvantages?
Boxing is converting a value-type to reference type. An example is converting an integer value to an object value.

Ex:
int intValue = 10;
object obj = (object)intValue;

This is used if you want to pass variables of object types to certain functions or methods you have created. Commonly used in events for example (Object sender...).

9.Why multiple Inheritance is not possible in C#?
Multple inheritance is coneceptually wrong. It shouldn't be allowed in any language. Inheritance is the strongest relationship that can be expressed in OO languages.
It's used to express IS-A relationship. Aggregation is used to express IS CONSTRUCTED IN TERMS OF. If you're using multiple inheritance in C++ then you're design is wrong and you probably want to use aggregation. On the other hand it's plausible to want to use multiple interfaces. For instance you might have a class wheel and a class engine. You could say that your class car inherits from wheel and from engine but that's wrong. In fact car aggregates wheel and engine because it is built in terms of those classes. If wheel is an interface and engine is an interface then car must inherit both of these interfaces since it must implement the functionaity of wheel and engine .On this basis we can see that multiple inheritance for classes should not be allowed because it promotes mis-use of the strong IS-A relationship. C# enforces the correct concepts whilst C++ allows mis-use. multiple interface inheritance is permissible and C# allows this. It's all to do with properly understanding OO concepts.

Absolute Multiple Inheritance is not possible in c# but partially it supports multiple inheritance by the use of Interfaces. As interfaces force a class to implement same type of behaviour (as defined in interface) which classes implements that interface

Differences between an abstract class and an interface

1. Abstract classes can have implementations for some of its members, but the interface can't have implementation for any of its members.

2. Interfaces cannot have fields where as an abstract class can have fields.

3. An interface can inherit from another interface only and cannot inherit from an abstract class, where as an abstract class can inherit from another abstract class or another interface.

4. A class can inherit from multiple interfaces at the same time, where as a class cannot inherit from multiple classes at the same time.

5. Abstract class members can have access modifiers where as interface members cannot have access modifiers.

Another common C# Interview Question, that is commonly asked is, When do you choose interface over an abstract class or vice versa?
A general rule of thumb is, If you have an implementation that will be the same for all the derived classes, then it is better to go for an abstract class instead of an interface. So, when you have an interface, you can move your implementation to any class that implements the interface. Where as, when you have an abstract class, you can share implementation for all derived classes in one central place, and avoid code duplication in derived classes.