Wednesday, December 15, 2010

Hi,


In a particular scenario, I faced a problem with CAML query, returning an error "The property Query contains an invalid value.".



Our CAML query was:

 

Friday, November 12, 2010

Resources to SharePoint Learners and Developers

Here is a very nice source with e-books and vidoes about sharepoint. Nice and helpful

http://www.deitel.com/ResourceCenters/Software/SharePoint/tabid/2764/Default.aspx

Two Resource centers for SharePoint 2007

Performance and Capacity Planning Resource Center for SharePoint Server 2007

This page contains resources to help you with performance and capacity planning for your SharePoint Server deployment—map your solution design to a farm size and set of hardware that supports your business goals.
Organized By:
Planning
Recommendations
Estimate performance based on test results
Demos
Tools from Microsoft
Tools and Papers from Partners and the Community


Best Practices Resource Center for SharePoint Server 2007

To avoid common pitfalls and keep your Office SharePoint Server 2007 environment available and performing well, follow these best practices based on real-world experience from Microsoft Consulting Services and the product team.

It contains best practices for:
Operational Excellence
Team Collaboration Sites
Publishing Portals
Search
My Sites
Developing Custom Applications
Additional Resources

Upgrade and Migration for SharePoint Foundation 2010 from WSS3.0

Hi all,
I found a new Microsoft artcile to find out different way to Migrate/Upgrade WSS3.0 to SharePoint Foundation 2010. This is very helpful take a look at it.

http://technet.microsoft.com/en-us/sharepoint/ee517215.aspx


Please leave a comment if this post is helpful to you.

Plan for software boundaries (Office SharePoint Server)

This is a very usefull article that i found when i was looking for the Microsoft recommended limitaions in SharePoint sever 2007.
http://technet.microsoft.com/en-us/library/cc262787(office.12).aspx

Friday, November 5, 2010

Eric Swift on SharePoint 2010’s Value for Developers and Admins

Please follow this link:
http://www.sharepointproconnections.com/article/sharepoint-server-2010/Eric-Swift-on-SharePoint-2010-s-Value-for-Developers-and-Admins.aspx

Wednesday, October 13, 2010

Workflow on Survey is not supported in WSS 3.0

Hi,

Today when i try to attach a workflow from Sharepoint Designer 2007, it didn't show eny error.
When the workfolw is started it shows an error.

After googling for the solution i came across an interesting information. That is,

Starting a workflow from a survey response is not supported in Windows SharePoint Services 3.0. Although the Workflows option appears when you click the arrow next to a survey response, you cannot start a workflow from a survey response.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Tuesday, October 12, 2010

Named and Optional Parameters in C# 4.0

How to implement a SharePoint "Change Management P...

codeinfluence: How to implement a SharePoint "Change Management P...: "Not so much from the technical point of view, SharePoint Change Management is the process of monitoring and controlling changes within a Sha..."

Quickly Create Charts in SharePoint 2010

This is a nice article about "Creating Charts on Sharepoint List content".

http://www.sharepointbriefing.com/spcode/article.php/3906281

SharePoint 2010 Document Sets

SharePoint 2010 has a new feature for grouping and managing documents, called Document Sets. We have all experienced a need to work with a “group” of documents. When a company hires a new employee, there are ususally dozens of forms that need to be filled out – hence a New Employee Document Set. The challenge is that prior to this version of SharePoint there was no way to keep track of the documents together other than metadata.
It acts like a folder, but is not a folder. It is a container however, and that container can have policies, workflows, metadata that applies to the entire set of documents within the container.

Let’s use the example of the New Hire process. When a new employee starts working for your company they have to fill out their standard forms, Personal Information, Emergency Contact, W-2, etc. Instead of emailing the employee the documents and then have them exchange emails back and forth, you can use Document Sets to collect all the documents, display the review status for each of the document, create a nice Welcome Page that summarizes what the document set is about, and even use a workflow to streamline the review process. This eliminates the frequently asked question of “Is this the latest version?”, “Is this the right information?”, “Is this complete?”.
You Should Know
There is no limit on the number of documents that can exist in a Document Set.
Metadata can be shared across the Document Set.
Document Sets are based on Content Types.
Docment Sets can be versioned.
Workflows can be associated with the Document Set.
Permissions can be defined per Document Set.
Folders are not allowed in document sets.
Metadata navigation cannot be used in a Document Set.
To get a better understanding, here’s a great video.



Friday, October 8, 2010

Microsoft Security Bulletin Advance Notification for October 2010


********************************************************************
Microsoft Security Bulletin Advance Notification for October 2010
Issued: October 7, 2010
********************************************************************

This is an advance notification of security bulletins that
Microsoft is intending to release on October 12, 2010.

The full version of the Microsoft Security Bulletin Advance
Notification for October 2010 can be found at
http://www.microsoft.com/technet/security/bulletin/ms10-oct.mspx.

This bulletin advance notification will be replaced with the
October bulletin summary on October 12, 2010. For more
information about the bulletin advance notification service, see
http://www.microsoft.com/technet/security/Bulletin/advance.mspx.

To receive automatic notifications whenever Microsoft Security
Bulletins are issued, subscribe to Microsoft Technical Security
Notifications on
http://www.microsoft.com/technet/security/bulletin/notify.mspx.

Microsoft will host a webcast to address customer questions on
these bulletins on October 13, 2010, at 11:00 AM Pacific Time
(US & Canada). Register for the Security Bulletin Webcast at
http://www.microsoft.com/technet/security/bulletin/summary.mspx.

Microsoft also provides information to help customers prioritize
monthly security updates with any non-security, high-priority
updates that are being released on the same day as the monthly
security updates. Please see the section, Other Information.

This advance notification provides a number as the
bulletin identifier, because the official Microsoft Security
Bulletin numbers are not issued until release. The bulletin summary
that replaces this advance notification will have the proper
Microsoft Security Bulletin numbers (in the MSyy-xxx format) as the
bulletin identifier. The security bulletins for this month are as
follows, in order of severity:


Critical Security Bulletins
===========================

Bulletin 1

- Affected Software:
- Windows XP Service Pack 3:
- Internet Explorer 6
- Internet Explorer 7
- Internet Explorer 8
- Windows XP Professional x64 Edition Service Pack 2:
- Internet Explorer 6
- Internet Explorer 7
- Internet Explorer 8
- Windows Server 2003 Service Pack 2:
- Internet Explorer 6
- Internet Explorer 7
- Internet Explorer 8
- Windows Server 2003 x64 Edition Service Pack 2:
- Internet Explorer 6
- Internet Explorer 7
- Internet Explorer 8
- Windows Server 2003 with SP2 for Itanium-based Systems:
- Internet Explorer 6
- Internet Explorer 7
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2:
- Internet Explorer 7
- Internet Explorer 8
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2:
- Internet Explorer 7
- Internet Explorer 8
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2:
- Internet Explorer 7
(Windows Server 2008 Server Core installation not affected)
- Internet Explorer 8
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2:
- Internet Explorer 7
(Windows Server 2008 Server Core installation not affected)
- Internet Explorer 8
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2:
- Internet Explorer 7
- Windows 7 for 32-bit Systems:
- Internet Explorer 8
- Windows 7 for x64-based Systems:
- Internet Explorer 8
- Windows Server 2008 R2 for x64-based Systems:
- Internet Explorer 8
(Windows Server 2008 R2 Server Core installation
not affected)
- Windows Server 2008 R2 for Itanium-based Systems:
- Internet Explorer 8

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 2

- Affected Software:
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 3

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation not affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 4

- Affected Software:
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Important Security Bulletins
============================

Bulletin 5

- Affected Software:
- Microsoft Windows SharePoint Services 3.0 Service Pack 2
(32-bit versions)
- Microsoft Windows SharePoint Services 3.0 Service Pack 2
(64-bit versions)
- Microsoft SharePoint Foundation 2010
- Microsoft Office SharePoint Server 2007 Service Pack 2
(32-bit editions)
- Microsoft Office SharePoint Server 2007 Service Pack 2
(64-bit editions)
- Microsoft Groove Server 2010
- Microsoft Office Web Apps

- Impact: Information Disclosure
- Version Number: 1.0

Bulletin 6

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation affected)
- Windows Server 2008 R2 for Itanium-based Systems


- Impact: Elevation of Privilege
- Version Number: 1.0

Bulletin 7

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems

- Impact: Elevation of Privilege
- Version Number: 1.0

Bulletin 8

- Affected Software:
- Microsoft Word 2002 Service Pack 3
- Microsoft Word 2003 Service Pack 3
- Microsoft Word 2007 Service Pack 2
- Microsoft Word 2010 (32-bit editions)
- Microsoft Word 2010 (64-bit editions)
- Microsoft Office 2004 for Mac
- Microsoft Office 2008 for Mac
- Open XML File Format Converter for Mac
- Microsoft Word Viewer
- Microsoft Office Compatibility Pack for Word, Excel,
and PowerPoint 2007 File Formats Service Pack 2
- Microsoft Office Web Apps
- Microsoft Word Web App

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 9

- Affected Software:
- Microsoft Excel 2002 Service Pack 3
- Microsoft Excel 2003 Service Pack 3
- Microsoft Excel 2007 Service Pack 2
- Microsoft Office 2004 for Mac
- Microsoft Office 2008 for Mac
- Open XML File Format Converter for Mac
- Microsoft Excel Viewer Service Pack 2
- Microsoft Office Compatibility Pack for Word, Excel,
and PowerPoint 2007 File Formats Service Pack 2

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 10

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation not affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 11

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation not affected)

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 12

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation not affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 13

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems

- Impact: Elevation of Privilege
- Version Number: 1.0

Bulletin 14

- Affected Software:
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Denial of Service
- Version Number: 1.0

Moderate Security Bulletins
============================

Bulletin 15

- Affected Software:
- Windows XP Service Pack 3
- Windows XP Professional x64 Edition Service Pack 2
- Windows Server 2003 Service Pack 2
- Windows Server 2003 x64 Edition Service Pack 2
- Windows Server 2003 with SP2 for Itanium-based Systems
- Windows Vista Service Pack 1 and
Windows Vista Service Pack 2
- Windows Vista x64 Edition Service Pack 1 and
Windows Vista x64 Edition Service Pack 2
- Windows Server 2008 for 32-bit Systems and
Windows Server 2008 for 32-bit Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for x64-based Systems and
Windows Server 2008 for x64-based Systems Service Pack 2
(Windows Server 2008 Server Core installation not affected)
- Windows Server 2008 for Itanium-based Systems and
Windows Server 2008 for Itanium-based Systems Service Pack 2
- Windows 7 for 32-bit Systems
- Windows 7 for x64-based Systems
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation not affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Remote Code Execution
- Version Number: 1.0

Bulletin 16

- Affected Software:
- Windows Server 2008 R2 for x64-based Systems
(Windows Server 2008 R2 Server Core installation affected)
- Windows Server 2008 R2 for Itanium-based Systems

- Impact: Tampering
- Version Number: 1.0


Other Information
=================

Follow us on Twitter for the latest information and updates:
http://twitter.com/msftsecresponse

Microsoft Windows Malicious Software Removal Tool:
==================================================
Microsoft will release an updated version of the Microsoft Windows
Malicious Software Removal Tool on Windows Update, Microsoft Update,
Windows Server Update Services, and the Download Center.

Non-Security, High-Priority Updates on MU, WU, and WSUS:
========================================================
For information about non-security releases on Windows Update and Microsoft
update, please see:
* http://support.microsoft.com/kb/894199: Microsoft Knowledge Base
Article 894199, Description of Software Update Services and
Windows Server Update Services changes in content.
Includes all Windows content.
* http://technet.microsoft.com/en-us/wsus/bb456965.aspx: Updates
from Past Months for Windows Server Update Services. Displays all
new, revised, and rereleased updates for Microsoft products other
than Microsoft Windows.

Microsoft Active Protections Program (MAPP)
===========================================
To improve security protections for customers, Microsoft provides
vulnerability information to major security software providers in
advance of each monthly security update release. Security software
providers can then use this vulnerability information to provide
updated protections to customers via their security software or
devices, such as antivirus, network-based intrusion detection
systems, or host-based intrusion prevention systems. To determine
whether active protections are available from security software
providers, please visit the active protections Web sites provided by
program partners, listed at
http://www.microsoft.com/security/msrc/mapp/partners.mspx.

Recognize and avoid fraudulent e-mail to Microsoft customers:
=============================================================
If you receive an e-mail message that claims to be distributing
a Microsoft security update, it is a hoax that may contain
malware or pointers to malicious Web sites. Microsoft does
not distribute security updates via e-mail.

The Microsoft Security Response Center (MSRC) uses PGP to digitally
sign all security notifications. However, PGP is not required for
reading security notifications, reading security bulletins, or
installing security updates. You can obtain the MSRC public PGP key
at
https://www.microsoft.com/technet/security/bulletin/pgp.mspx.

To receive automatic notifications whenever
Microsoft Security Bulletins are issued, subscribe to Microsoft
Technical Security Notifications on
http://www.microsoft.com/technet/security/bulletin/notify.mspx.

********************************************************************
THE INFORMATION PROVIDED IN THIS MICROSOFT COMMUNICATION IS
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT
DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING
THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE
LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL
DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY
FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING
LIMITATION MAY NOT APPLY.
********************************************************************
To cancel your subscription to this newsletter, reply to this
message with the word UNSUBSCRIBE in the Subject line.

To set your contact preferences for this and other Microsoft
communications, see the communications preferences section of the
Microsoft Privacy Statement at:
<http://go.microsoft.com/fwlink/?LinkId=92781>.

For the complete Microsoft Online Privacy Statement, see:
<http://go.microsoft.com/fwlink/?LinkId=81184>.

For legal Information, see:
<http://www.microsoft.com/info/legalinfo/default.mspx>.

This newsletter was sent by:
Microsoft Corporation
1 Microsoft Way
Redmond, Washington, USA
98052

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.9.0 (Build 397)
Charset: utf-8

wsFVAwUBTK3rn/SWSWlRYp1gAQirXhAAoWZh8tRgruv+ekxTawl5YnHId7tBZXV3
FlWfeILUi2mtp7ucRPmL8P8noXFVhtQ6fBVEk6Kr2pJbkm+F1S61qMVsPvw5GnmR
wppNLK+OhYMUF4CpnfV92DraNIvsLG/nQJ23KS8tjfY/iJwJ5UDfyj8oHQAtGYRG
5NfnRJgAI17Kb5v9dhoqVW3oWdxaU0ENvT0kkpAd2bbxhiJ4eKSJRYeiq4PThU7H
oN55TSM8/ytEtiMK/FwRBKJchUOBqvxGKnoF0smh8Fp8wspeWS1ypSo1/1VMfIDx
UinbGXxXyzKNETet9o2EYfumXbOWEFxiFIv8VreYYdp/iPNiTsb2pE4Qh3vOMMJq
zSAEgNhn4SPq9kU/EhwZFvY3dpTqFNeM2l7NO0NZgL91bY/e06GLUoj1KmlHsRac
2WXhCFo8PJobR7+U3NHiGDTP18accAuOR/LZPXRzDUlrify1oFxqG6sPkfGZwWiE
+YEeS1f1raMlDP1mmtAfjVMDKsP0w3HFb821uUwoDZFct0qAmIIUw2P4NZNUncLc
7XAJwflx5oPxbl4xm4Exrb4VhTCJqBad4P/snCMICqPfjzyElp8+slqhtmZ9RJ7L
TcodolwVzDrmxreKynSW2TSEcbHl+yNXkzxwml59YtLY9Hx0cd8lt6gDPV/hPhLZ
LFX33vnnAz0=
=4IF8
-----END PGP SIGNATURE-----

Sunday, September 26, 2010

Install and Enable IIS URLScan with a Custom Rule to avoid ASP.NET Vulnerability

ScottGu's link


If you do not already have the IIS URLScan module installed on your IIS web server, please download and install it:


It takes less than a minute to install on your server.

Wednesday, September 22, 2010

Security Advisory 2416728 (Vulnerability in ASP.NET) and SharePoint. Update : Updated 9/21/2010 3:06PM

http://blogs.msdn.com/b/sharepoint/archive/2010/09/21/security-advisory-2416728-vulnerability-in-asp-net-and-sharepoint.aspx



This post documents recommended workarounds for the following SharePoint products:

* SharePoint 2010
* SharePoint Foundation 2010
* Windows SharePoint Services 2.0

Workarounds are not necessary for the following products:

* Microsoft Office SharePoint Server 2007
* Windows SharePoint Services 3.0
* SharePoint Portal Server 2003

Tuesday, September 21, 2010

Update: 2007/WSS3 is not vulnerable to the attack. No workaround is needed right now, but you still need to apply the fix when it come out

How to validate? Can I type in some non-existing pages to test if web.config changes work on SharePoint?

The answer would be no. When you try to access a non-existing page on a SharePoint site with a modified web.config you will still have 404 codes. But SharePoint has its own custom error handler to generate those 404s for non-existing pages, which will not be able to be used directly by the attack. The workaround will be able to prevent error codes from being generated by accessing certain ASP.Net resources, and it would work if you followed the steps correctly.

Just remember, the ultimate solution is the upcoming ASP.Net fix. This workaround is just temporary, get you protection before the patch is released. Once it’s released, apply the fix and then restore your web.config to the original ones.

Jie

Courtesy: Jie Li's GeekWorld blog.

Security Advisory 2416728 (Vulnerability in ASP.NET) and SharePoint.

http://blogs.msdn.com/b/sharepoint/archive/2010/09/21/security-advisory-2416728-vulnerability-in-asp-net-and-sharepoint.aspx

Friday, September 10, 2010

Differences in selecting lookup column.

When you are creating a lookup column in a list (A) and select the Title columns as the lookup column from List (B). You can see two different columns
1. Title
2. Title (Linked to Edit Item)

Case 1: In AllItems.aspx of List (A) when you display the lookup column, it shows the value with a link to the corresponding list (B) item Display.aspx. It will not have any source url in that url. When you click on cancle it goes to the corresponding list (B). It will have RootFolder=* at the end of url.

E.g. http:///Lists//DispForm.aspx?ID=134&RootFolder=*

Case 2: In AllItems.aspx of List (A) when you display the lookup column, it shows the value with a link to the corresponding list (B) item Display.aspx. It will have the source url to List A in that url. When you click on cancle it goes back to the list (A).

E.g. http:///Lists//DispForm.aspx?ID=134&Source=http:///Lists//AllItems.aspx?

To remove the Hyperlinks of Lookup values

Hi,

If you have a lookup column in a List and in the AllItems.aspx if you want to disable the hyper link of that lookup values you can use this code
/*****************************************************************


_spBodyOnLoadFunctionNames.push("RemoveLookupLinks");
function RemoveLookupLinks()
{
var oP = document.getElementsByTagName('a');//the collection of a tags
var flag = falsefor(var i=0;i{
if(oP[i].attributes["href"].value.indexOf("RootFolder=*")!= -1)
{
var linkvalue = oP[i].innerHTML;//value of the lookup field
oP[i].parentNode.innerHTML = linkvalue;//replacing value of the lookup to whole the Anchor tag
flag = true;
break;
}
}
if(flag)RemoveLookupLinks();
}


******************************************************************/


It looks for the anchor tags with href containg RootFolder=* and replaces that tag with its inner HTML. Because, Only lookup fields will have that kind of HREF.

Thursday, August 19, 2010

Friday, July 23, 2010

SPWeb.Users Vs SPWeb.SiteUsers

Hi,
You will have to get the instances of users who are in your site in some situations. Then make sure that you are using the proper property to get the details.

SPWeb.Users returns the users that are added to that particular subsite only. It will not list the users inherited form parent site.

SPWeb.SiteUsers returns all the users.

Same with SPWeb.Groups and SPWeb.SiteGroups.

Run with elevated privilages............

Hi,
Here I am listing some of the things that you have to take care when you are working with SPSecurity.RunWithElevatedPrivilages.
1) Don't get the instances of SPSite and SPWeb from the context variables.
Eg: If you have RunWithElevatedPrivilages in Event Handlers. Don't get the instances of sitecollection and site from properties varibales directly.

Don't Use
i.e SPSite site=properties.site;
SPWeb web= properties.openweb();
Use

SPSite site = new SPSite(properties.SiteId)
SPWeb web = site.OpenWeb(properties.RelativeWebUrl)

Because the first code returns the instances with the current user prevelages. so, eventhough you are working with elevated privilages you will get access problems with those instances.

Thursday, July 22, 2010

Command to increase limit on site template size

Hello everyone,
Using the following command you can adjust the predefined limit on sharepoint list template size.

stsadm -o setproperty -pn max-template-document-size -pv 20000000

NOTE: The Max value that we can set is 524288000 bytes (500MB).

Reset the IIS After updating the DLL for event receiver

Hi ,
Today, when I was working with Event Receivers for Sharepoint Lists. I got lots of troubles in debugging the code.
Actually, I had writen the code and installed DLL in to GAC. And, added the w3p process to debug the event receiver.
When I changed the code, I forgot to reset the IIS. That did not show me the debigging in a wrong way. Because it is still using the old code.

So, better reset the IIS when you make a new DLL.

NOTE:- Everyone know that we should reset when we install a new DLL we should reset IIS. But some people like me may forget or neglect it. So, Remember my case and don't forget to reset the IIS.

Tuesday, July 6, 2010

Monday, June 28, 2010

Deploying Infopath Template with out Infopath Services Enabled.

Hi,

Here i am discussing about one of my experiences in Infopath Deployment.

Actually, we don't have Infopath services enabled (Available) in the SharePoint server.

So,
1) I had developed an infopath form (Web enabled).
2) In Tools -> Form Options -> Security and Trust, select Full trust and create certificate.
3) Deploy it on the desktop.
4) In the SharePoint site add the code to run "infopath.exe " command with the file name of deployed template.

Getting Rich text content from SharePoint List to Infopath.

Hi,

If you want to get the content of SharePoint List into Info Path, you can do it using Data Connections ( Data Sources).

But the problem is:

You can not get the reference to the columns of type Rich Text box ( Multiple Lines of Text (Rich Text));

Here is the solution:

1) Modify the column to Multiple of Text ( Plain).
2) Add the Data Source to the Infopath.
3) Go back to the list and change the Column type back to Rich text.

Note:- In the process of converting the column type back and forth you may miss some content in that column.

Don't change the Column names of Repeating talbe in Infopath.

Hi,

Today when I was trying to display the data of a Data Source in the form of repeating table in InfoPath, I observed one thing.

That is the column headers in the repeating table are used as the references to the list to query and get the content.

EG:- After dragging and dropping the datasource on to the template and display it as Repeating table.

And if you change the Column name in Header, that column will loose the control to display data.

Even in the Data Binding options you can observer the unknown column.

Datasource in Infopath pull the items from the view of list.

Hi,

Today when I was working with InfoPath to get the list items from SharePoint List using Data Connections (Data Sources), I observed that it is pulling only first hundred items.

Then, I changed the items limit in default view of that list to 200. Then the data source in InfoPath is pulling the first two hundred items.

So, that means it is pulling the data from the Default view.

Welcome

Hi every one,

Welcome to my blog. My intention is to start this blog to share some of my SharePoint Knowledge with all and make everyone help each other.