Skip to main content

Posts

Showing posts from June, 2011

How to Creating a Feature in MOSS 2007

Microsoft provides ways to extend the out of the box functionality of SharePoint Portal Server 2007 e.g. Features, SharePoint Designer 2007, Windows Workflow Foundation etc. Features offer flexibility in terms of developing extended functionality � such as Page Templates, List, Content Types, Web Parts, Workflow and events � to new and existing SharePoint 2007 sites. Introduction: The Feature Framework has been extended to allow developers to create custom Features. Features can be deployed by using SharePoint Portal Server 2007 new form of deployment, namely Solution Deployment. Solutions are custom packages (e.g. WSP file) or redistributable CAB files, created by developers and deployed by SharePoint Administrators. Administrator can deploy Features to the individual site or to all Web front End Servers. In this article, I will walk-through Creating and deploying an Event Handler Feature, which can be activated on the Web or Site, Site Collection, Web Application or Farm Level. ...

Sharepoint "Unknown Error" Solution

Sharepoint is very bad when it comes to showing useful error. Even the log files does not contain information that can be considered useful. This is a big problem specially when programming webpart and other extensions. To change this behavior and get sharepoint to display detailed message Modify your web.config to set the following: <SafeMode ... CallStack="true" ...> <customErrors mode="Off" /> <compilation batch="true" debug="true"> All three of the modifications are required for full debug output.

How come GOOGLE search engine is very very fast?Just in milliseconds we get data.Can I also make my application as robost and faster as GOOGLE.How to do with Asp.net?

Google utilizes Distributed Computing . They have very high-end powerful servers backing them up. They have HUGE data Centers geographically located across the globe. When we traditionally develop an application we would think either we have a SINGLE web server serving the request/response or a Web Farm(multiple Web Server ready to serve and load balancing server will distribute request to server that can serve our request). IF you have 10-20 webservers in a WebFarm or WebGarden, you could see significant improvement in serving request/response in a multi user environment. WebGarden: An application pool with multiple worker process is called Web Garden. WebFarm : Application hosted in multiple web servers and a load balancer does the distribution of requests based on the load on each servers. If WebServer has a hardware configuration that is powerful enough(multiple cores, lots of RAM and network Bandwidth and of course a better Database server and good  imple...

When to call a function using a thread or by calling it asynchronously.?

Asynchronous you will not wait for the result from the method(or method to complete the task), and continue your work. At later point of time your method will return results. Threading you are paralleled execution of your methods. This is based on availability of processing power for the work. If you call a method in a thread, thread will wait and complete the execution of the method has called. But in asynchronous it will not wait method to complete the execution and later point we will get a notification or result from the method. These are the simple explanation I can give from my understanding. http://social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/fa9e1830-ef06-4dd1-8ef7-59ebf04ab1e6/

How to Adding and Deploying Solutions with PowerShell in SharePoint 2010

Visual Studio 2010 makes it really easy to add and deploy solutions when you are developing, but you may eventually want to deploy those solution packages elsewhere right?  We can still use stsadm, but that is effectively considered deprecated now in favor of PowerShell.  In the past to add a solution, we used an stsadm command like the one below.  In today’s example, we’ll be working with a package called SharePointProject2.wsp on my server named sp2010. stsadm –o addsolution –name SharePointProject2.wsp To get started with PowerShell, run the SharePoint 2010 Management Console located in your Microsoft SharePoint 2010 Products folder on your start menu.  This automatically loads the Microsoft.SharePoint.PowerShell snappin so that we can execute SharePoint commands.  To install a solution we use the Add-SPSolution command.  If you are using a Sandboxed solution you would use Add-SPUserSolution instead.  It takes just one parameter, –literalpath,...

How to Activating and Deactivating Features with PowerShell in SharePoint 2010

I was looking at the analytics of the site the other day and I noticed that my post, Adding and Deploying Solutions with PowerShell , currently has the most traffic on the site.  I had always intended to write a follow up post on this, so here it is.  Today I’m going to talk about how to enable and disable features using PowerShell.  It’s great that you know how to deploy solutions now with PowerShell, but now you want to activate your features. In SharePoint 2007 to activate a feature from the command line you might have used a statement like the one below.  I’ll use the Reporting feature on my server named sp2010 as an example.  The value specified in the name parameter refers to the actual folder name of the feature that is in your SharePoint Root folder (14 hive). stsadm.exe –o activatefeature –name Reporting – url http://sp2010 To get started with PowerShell, run the SharePoint 2010 Management Console located in your Microsoft SharePoint 2010 Produc...

How to enable Managed Metadata site columns when using the Blank Site template in Sharepoint 2010

Whenever you use the Blank Site template for a site collection, a lot of supporting features that you may want are not activated.  One of these is the feature for Managed Metadata site columns .  When you pick one, you might see the following error. The required feature is not enabled for this column type. That’s nice, but why don’t you actually tell me the feature name that I need to activate?  I’ve seen a lot of posts on this, and they state to activate the required feature using PowerShell using the GUID of the feature.  Some even, dare I say it, recommend you use stsadm.  Tsk. Tsk.  I don’t know about you, but I can’t remember the GUID off the top of my head.  I got tired of having to look up a post every time I need to activate this feature on a new site collection so I decided to figure out what the name was.  If you’ve read my previous PowerShell posts, you know that we can figure this out with Get-SPFeature .  This told me th...

How to Create Secure Store Service for BCS in Sharepoint 2010

How to use Secure Store Service for SharePoint 2010.BCS Access Account representive of the Credential Owner [Impersonated User], and how to wire it up in SharePoint Designer 2010. Prep Work a)Active Directory Users in Play       1.The Service Account I am selecting as the Impersonated User (Credential Owner)       2.The Security Group where all the people that will consume BCS Data will reside b)SQL Server Security      1.Who has Access to What Setup a)Creating & Configuring the Secure Store Object b)Creating & Configuring the External Content Type in SharePoint Designer 2010 1.Creating External Connection with Secure Store 2.Creating the External Content Type c)Reviewing the External Content Type (ECT) d)Reviewing the Security on the ECT Test & Validation a)Creating an External List derived from the ECT b)Logging on as a User from the Security Group AND Secured in the permission set...