Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts

Jun 26, 2012

Error occurred in deployment step 'Add Solution': Property 'SiteUrl' contains an invalid URL

You encounter this error when trying to deploy a BCS solution package in a different environment than where it was developed and tested.
Cause: in the feature xml there is this property which is set with your previous site url and it will fail in the new environment.

Resolution
Know where you have to deploy the solution, get the new site url and update the feature xml and build new solution package and use it in the new environment.

Mar 22, 2011

GetCustomListTemplates returns 0 values

One of my colleague encountered this issue where he was trying to create list on feature activation based on a custom list template uploaded to the list template gallery.
We tried different ways to check why the GetCustomListTemplates method of SPSite retunred empty values even if there are custom list templates uploaded to the gallery.

It is because we didn't set the Version property while uploading the templates via Feature. SharePoint 2010 expects version to be '4' for the list template.
So this did the trick for us:




<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="TestModule1" Url="_catalogs/lt" List="114">
<File Path="TestModule1\MyList1.stp" Url="MyList1.stp" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" >
<Property Name="Product Version" Value="4" />
</File>
</Module>
</Elements>



Resolution: Setting the 'Product Version' property of File object in the elements xml file to value '4' allowed us to access that template via GetCustomListTemplates property of SPSite object in SharePoint 2010

Feb 20, 2011

How To Allow Anonymous Access on a SharePoint Application Page

If you want to allow anonymous access on a SharePoint application page, simply override this property and return true:

protected override bool AllowAnonymousAccess
        {
            get
            {               
                return true;
            }
        }

Next time onwards you will be allowed to browse the page anonymously. This will be useful in sharing anonymous information with users. The best example would be to use a custom Sign/In page or something which you want unauthenticated users to access.

Dec 3, 2010

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator

I got this error while working on a SharePoint 2010 - Business Connectivity Services Project. The full error read like:

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator

It was so that there was mismatch between business data model and the entity defined therein the project.
The resolution:

MisMatch was there between the TypeDescriptors provided by you in the business data model entity's methods and the entity class file (.cs file).

Setting 'The Identifier represented by this TypeDescriptor' wherever applicable.

Also mark the identifier in the typedescriptor wherever it is encountered. Like you will be having two type descriptors customer_id and customer_name of which 
customer_id might be identifier so set it up like that.

Oct 29, 2010

The list cannot be displayed in Datasheet view for one or more of the following reasons

The full error popup reads like:




The list cannot be displayed in Datasheet view for one or more of the following reasons

- A datasheet component compatible with Microsoft SharePoint Foundation is not installed.
- Your Web browser does not support ActiveX controls.
- A component is not properly configured for 32-bit or 64-bit support.

And if you've setup environment like me which has

SharePoint 2010 , Office 2010 x64, SharePoint designer x64 then you are bound to get this error!

The resolution
In order to use the datasheet view, download this 2007 Office System Driver: Data Connectivity Component
Once you set it up, reopen the internet explorer and edit in datasheet view!

Sep 7, 2010

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config

You might get this telerik exception while developing against software involving telerik rad controls in SharePoint 2010.

Full exception reads like:


Exception information: 
    Exception type: InvalidOperationException 
    Exception message: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager 
Well, you need to do some entries for supporting telerik controls in SharePoint 2010 but I missed following entry, modifying web.config upon it resolved my issue:

 
  

Please note there are few more entries you need to do inorder to support telerik controls in a custom aspx page under SharePoint 2010 ( you can safely ignore the MS Ajax related entries as 2010 already contains AJAX inbuilt)

Sep 1, 2010

The type or namespace name 'Publishing' does not exist in the namespace 'Microsoft.SharePoint' (are you missing an assembly reference

This error crops up if you try to use publishing assembly reference in your SharePoint 2010 projects using Visual Studio 2010.

To resolve you have to do few steps mainly adding reference to System.Web.DataVisualization.dll .
Perform all steps listed in this link and you should be good:

http://social.technet.microsoft.com/Forums/en/sharepoint2010programming/thread/586e3c4e-5936-42f5-9752-e6ac8c92d4c0

Jun 17, 2010

Error deleting Web site "/subsite001". You can't delete a site that has subsites.

Error deleting Web site "/subsite001". You can't delete a site that has subsites.


 This error occurs when user deletes a subsite using the 'Delete This Site' button under Site Administration of a site.

Resolution:
Go To: Site Actions > Site Settings > Site Administration: Content and Structure
There check the box besides the web and either select delete button from the ECB or from the top Actions menu.

Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154

I got this error while trying to debug a console application accessing SharePoint Portal Server 2010 in Visual Studio 2010.

 Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 80040154


Resolution: It is because you are trying to build a x86 application. Go to project properties and set type to x64 everywhere. Then rebuild and debug. The Error Vanishes!

Jun 9, 2010

Getting Started with SharePoint Server 2010 for IT Pros

Micorosoft technet has this great new learning series for SharePoint 2010.
Check it out here http://technet.microsoft.com/en-us/sharepoint/ee518660.aspx

There are 11 modules which explain you :

1 | What Can SharePoint Server 2010 Do for Me?
This module introduces Microsoft SharePoint Server 2010 capabilities to IT professionals...
2 | How SharePoint Server 2010 Works
This module covers software and hardware requirements, and the basic concepts...
3 | Simple Install for Testing in SharePoint Server 2010
This module explains how to create a single server environment for testing.
4 | Search in SharePoint Server 2010
This module explains the search capabilities in Microsoft SharePoint Server 2010 and more...
5 | Backups in SharePoint Server 2010
This module covers new backup features in Microsoft SharePoint Server 2010 and more.
6 | Creating Your First Web Application, Site Collection and Web in SharePoint Server 2010
This module explains creating the first site on a SharePoint farm by using Microsoft SharePoint Server 2010 and more...
7 | Getting Started with Security in SharePoint Server 2010
This module covers security in Microsoft SharePoint Server 2010.
8 | Windows PowerShell for SharePoint Server 2010 Administrators
This module covers Windows PowerShell basics and SharePoint cmdlets.
9 | Tools to Optmize the Performance of SharePoint Server 2010
This module covers performance-related tools.
10 | Introduction to Upgrade in SharePoint Server 2010
In this module covers upgrade process and more...
11 | Service Applications and Topologies in SharePoint Server 2010
This module explores how SharePoint 2010 provides services in a flexible and scalable architecture

 Once again the link is http://technet.microsoft.com/en-us/sharepoint/ee518660.aspx

Dec 20, 2009

Installing SharePoint 2010

Hello all. I was all exicted when I heard about SharePoint 2010. And as it was 64 bit only, was worried a little bit whether it will work on my machine. It surely is demanding in terms of resource and system configuration both hardware and software wise, however I was able to install it on my system.
Sorry I didn't plan this post and you will find some installation screenshots missing, but I think I should post this anyway!

My QuadCore System specs:
Intel Q6600 Quad Core Processor
Asus P5Q-E MOBO
Corsair XMS2 2GB dual channel RAM
OS: Genuine Windowx XP SP3 (yes its xp still!)

VIRTUAL SETUP:
Virtual Box (Yes, virtual pc 2007 will not support a 64 bit OS on windows xp)
Virtual OS: trial edition of Windows Server 2008 R2
SharePoint 2010
RAM ALLOCATED: 1280 MB (Yes, sharepoint 2010 worked with this memory in a vm!, tho cpu usage is always 99%-100%, I was able to run it and test it out)


This was to do with the system specs. Now here I'm pasting screenshots of how the installation procedure went. I got one or two errors regarding some missing hotfixes on the system, which I googled and installed.
So not to keep you waiting, here are the screenshots:






 






 
 

 
 
 

 So finally I was able to install it on a vm with not so much RAM. I'll be posting updates regarding my encounters with SharePoint 2010 very soon!

Nov 19, 2009

SharePoint 2010 Public Beta is now available

Finally some good news! SharePoint 2010 Public Beta is now available for download.
As I had registered for the notification, got an email from microsoft regarding this.

Two versions are available for SharePoint 2010 Beta:

SharePoint Server 2010 (Enterprise Client Access License features)
&
SharePoint Server 2010 for Internet Sites, Enterprise

The languages that SharePoint Server 2010 Beta is available include:
Chinese (Simplified), English, French, German, Japanese, Russian and Spanish


I will post more details in upcoming posts regarding my SharePoint encounters! Stay Tuned!