Archive for July, 2009

CodeProject Article: Bing API in Action with C#

My latest article BING API in Action - C# is available at CodeProject.
URL: http://www.codeproject.com/KB/cs/BingAPI.aspx
Related old blog post: http://blog.ninethsense.com/bing-api-in-action-search-with-c/
VN:F [1.1.6_502]Rating: 3.0/5 (3 votes cast)

Leave a Comment

SharePoint WebPart deployment for beginners

There are many ways to deploy your webpart to your SharePoint website. Here is one. Please use some search engine to find more methods
For this demonstration, I used these tools:

Visual Studio 2008
WSS 3.0

 
I used Visual Studio 2008 SharePoint extensions 1.2 also but you do not need to bother about this.
Consider the following WebPart:

using [...]

Leave a Comment

SharePoint Error: cannot be imported or used in a WebPartZone control

The WebPart1.testxyz class does not derive from the Microsoft.SharePoint.WebPartPages.WebPart class and therefore cannot be imported or used in a WebPartZone control.
A quick fix for this error will be to change System.Web.UI.WebControls.WebParts.WebPart to Microsoft.SharePoint.WebPartPages.WebPart
Eg:

public class testxyz : Microsoft.SharePoint.WebPartPages.WebPart
//instead of System.Web.UI.WebControls.WebParts.WebPart
 
{
}

VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Create SharePoint 3.0 Custom Properties

It is very simple. Just put [WebBrowsable(true), Personalizable(true)] above your property in code. (There are much more attributes – FYI).
Here is the sample source code:

public class testxyz : System.Web.UI.WebControls.WebParts.WebPart
{
private string _strHello = "blah";
public testxyz()
[...]

Leave a Comment

Microsoft Project Code Named “Velocity”

"Velocity" is a distributed in-memory application cache platform for developing scalable, high-performance applications. "Velocity" can be used to cache any common language runtime (CLR) object and provides access through simple APIs. The key aspects of "Velocity" are distributed cache performance, scalability, and availability.
Microsoft project code named "Velocity" provides a highly scalable in-memory application cache for [...]

Leave a Comment

SharePoint error: No SharePoint Site exists at the specified URL

Resolution:

Take project properties (right click - Solution Explorer –> Project Name)
Take Debug tab
Verify Start Action section. Most probably you may be having wrong URL for your SharePoint in Start browser with URL

VN:F [1.1.6_502]Rating: 5.0/5 (2 votes cast)

Leave a Comment

SharePoint error: The feature name WebPart1 already exists in SharePoint

The feature name WebPart1 already exists in SharePoint. You need to rename the feature before solution deployment can succeed
This is a common error when you (especially a beginner) try to ‘execute’ a SharePoint webpart from Visual Studio. Here is a fix explained.

If you do not see a pkg folder in your solution explorer then click [...]

Leave a Comment

Unable to find manifest signing certificate in the certificate store

You may bet this error after upgrading your old Visual Studio project to new. Here is the quick fix:

On Project Properties (right click on project node of solution explorer –> properties)
On Signing tab
Uncheck Sign with ClickOnce manifests

VN:F [1.1.6_502]Rating: 5.0/5 (6 votes cast)

Leave a Comment

I won praveen[at]live.in

Not sure who else “Praveen” on earth is using this email id. I am getting *HIS* emails… even confidential mails in this email id and I replied to most his mails to inform him about this. Still I am getting mails.
I wonder why he still giving out this email id… even after many months.
Crap!
VN:F [1.1.6_502]Rating: [...]

Leave a Comment

Bing API in Action: Search with C#

Here is a quick code on Bing API with C#.

First you need to create a BING AppID which you can do it here
You need to add web reference to http://api.search.live.net/search.wsdl?AppID=YourAppId in your project
In the sample code provided, I used only necessary settings. There are more. So refer to Bing API Documentation
Below is the screenshot [...]

Comments (1)