Tuesday 27 December 2011

An unhandled exception occurred in the Silverlight Application

If you get an error "An unhandled exception occurred in the Silverlight Application in SharePoint 2010" when you try to create a document library, list, site or anything in SharePoint 2010.

I got this error in my environment when i created Picrure Library in Team site.
Genrally it could be that security validation has been disabled in Webpart Security Validation(Central Administration--> Web Application--> General Settings).


For detailed explanation please find this link

How to Upload multiple files & assign to users in an easy way

Uploading multiple documents and displaying those documents which are assigned to current logged in user only.

For this type of requirment you need to create new column as "Assigned To" in Library with People and Groups column type.

Then goto the Modify view 

Select the "Show items only when the following is true:" radio button  in Filter column and show the items view as per you need.


While i am uploading single file and assigning to user is all doing fine.

But when i am going to upload Multiple documents, in this view am not having "Assigned To" column.
So if you need this column in form view you need to change view for Upload.aspx sharepoint page from /layouts/ folder.

After much research i decided to do this in another way.
Without using Upload Document and Upload Multple Documents menus from sharepont ribbon Library tools,
For Uploading bulk of files and assigning to users  in an easy way you can follow below steps.
  1. By click on the 'Open with Explorer' feature in sharpoint ribbon Library Tools we can copy all the document or any data from our local device to sharepont library.

So now you have all documents in your document library, Now you need to assign them to users.
  1. Click on "Data Sheet View" feaure in library tools, it will take you to below view. Then you can make your changes very easily.

If Data Sheet View feature not visible to you in your site library tools, then you need install "Microsoft Office Access Web Datasheet Component" For insatalling please follow the steps in from this link 

Wednesday 21 December 2011

Moving Active Directory users into SharePoint Site Groups

For moving all the Active Directory users into SharePont 2010 Groups,
Groups are Active Directory objects that can contain users,contacts,computers and other groups.

Active Directory will have two types of Groups.

One is Distribution Group
  1. Distribution groups have only one function - for e-mail distribution lists.  and that is not security-enabled.
  2. Distribution groups cannot be listed in discretionary access control lists (DACLs), which are used to define permissions on resources and objects.
  3. Distribution groups play no role in security (you do not assign permissions to distribution groups), and you cannot use them to filter Group Policy settings.
  4. Distribution Groups are designed to work with email, but not for the assignment or control of permissions to a resource. 
Second one is Security Group
  1. Security group   A group that can be listed in DACLs. A security group can also be used as an e-mail entity.
  2. You can use security groups to control permissions for your site by adding security groups to SharePoint groups and granting Permissions to the SharePoint groups. You cannot add distribution groups to SharePoint groups, but you can expand a distribution group and add the individual members to a SharePoint group.
  3. This type of group has a unique characteristic in that it has a Security Identifier (SID) assigned to it from Active Directory. This SID enhances the function of the group so that it can be used for assigning and controlling permissions to a resource.
1. From Site-->Site Actions-->click on Site Permissions. In this permissions page click on Gran Permissions at top most left corner and give the Acite Directory Security Group Name. In my enviroment added "Domain Users" group.

If you want to add AD group to particular SharePoint Group(Members,Viewers,Ownes,Desingers) then goto the Site Permissions--> click on the SP Group--> here add your Group.


In case if you want to add different types of security groups to sharepoint site :
Then, Create Security Groups as per permission levels like Domain Members, Domain Viewers, Domain Owners, Domain Visitors ...etc., and then assign the members to this groups.(Active Directory Users and Computers--> created Securitygroup-->properties-->members tab)


So that you can add these security groups into sharepoint site,
Sharepoint Site-->Site Actions-->click on Site Permissions link then add the Security groups to related sharepoint permission level site groups.
By adding security group into sharepoint site, all secrity group members will get the particular sharepoint group permissions.

Monday 12 December 2011

Configuring Out going Email settings in SharePoint with Gmail SMTP server

Last week, I configured Form Based Authentication and for User Mangagement i used codeplexfba project.

After finished all settings, I realized that I need to test send mail(Information sending to registered users for Membership Approving,Pending,Password Changing.....etc) functions. As you may know, I need to configure outgoing e-mail settings from SharePoint Central Administration with existed mail server.

The solution I used my Gmail account to send and receive email from my local SharePoint server via MailServer, it is a free e-mail server for Microsoft Windows. It’s used by Internet service providers, companies in all parts of the world.

It supports the common e-mail protocols (IMAP, SMTP and POP3) and can easily be integrated with many existing web mail systems. It has flexible score-based spam protection and can attach to your virus scanner to scan all incoming and outgoing email.

Prerequisites:

1. Create and setup a Gmail account at http://www.gmail.com/
2. Enable the Gmail account for POP3 in Gmail, you can follow the instructions on how to do this here:

To configure the SMPT server:
    Go to Control Panel, click on Turn Windows features on or off, go to Features, click Add Features, select SMTP Server from the list, click Add Required Role Services, click Next (a few times), click Install

or Go to Start,Administrative Tools,Select Server Manager go to Features,

click Add Features, select SMTP Server from the list, click Install.


If SMTP Feature installation sompleted successfully, SMTP feature will be add to IIS 6.0 Manager. SO now


Open Internet Information Services (IIS) 6.0 Manager under Administrative Tools,

expand the node with your local computer name on it, right click on SMPTP Virtual Server and go to Properties SMTP Virtual Server,

In SMTP Virtual Server click the Access tab, click on Relay …, select All except the list bellow and click OK

Click on the Delivery tab, click on Outbound Security,
On the new window that opens select Basic Authentication and type your Gmail (or Google Apps) email and password in the Username and Password fields, and also select TLS encryption


Again now click On the Delivery tab, click Outbound connections… and in the new window that opens change TCP port to 587
Once again in the Delivery tab, click on Advanced and in the new window that opens, in the Smart host field type smtp.gmail.com and click OK


click Apply, click OK

Make sure POP is enabled for your Gmail account (it will be in under Mail Settings -> Forwarding and POP/IMAP).

To configure SharePoint server to send emails through Gmail:

Open SharePoint Central Administration, go to System Settings, go to Configure outgoing e-mail settings     type your computer name in the field Outbound SMTP server and     type your Gmail email address in field From address



Now reset the IIS, Open " Run " command and type iisreset and click enter

And now Open the IIS 6.0 Manager and Start the Configured SMTP Server.

We can check about Out going Email settings for a particular web appllication, Go to Central Administration Site --> Application Management


Thursday 1 December 2011

Central Admin displaying blank page when some authentication providers not installed in IIS

Some times we will get blank page when we are trying to access SharePoint 2010 Central Admin site.

It may cause of mechine have not installed some authenticatin providers during ShaerPont 2010 installation in windows 7 mechine.
We can check the authentication providers list from IIS--> Central Administratio site-->Authentication .

In my SharePoint environment i found this blog , by followint this link i got the central admin page.