उपकरण

InfoPath File Attachment Size Error

When you try to add attachments to the InfoPath Browser Enabled form, you may get the following error. If the attachment file size is beyond the configured maximum user session data.

The Selected file is too large and is causing the form to exceed the amount of allowable resources. Select another file.

संकल्प:

Click on General Application Settings in Central Administration

Click on Configure InfoPath Forms Services under InfoPath forms Services

The file attachments will be kept in session for the user in state service. Increase the maximum size of user session data in kb, to allow large attachments.

Site Collection Backup using PowerShell

PowerShell always gives the administrator the feel of programming, Basically I am a developer not really much into using the options or menus to do the tasks like backup (I never used the backup option in Central Administrationजम्मू)

Let’s talk about Backup of Site Collection using PowerShell with examples.

Syntax:

Backup-SPSite <<Site Collection URL>>

-Path <<File Path>>

[-Force]

[-Confirm]

[-NoSiteLock]

[-UseSqlSnapshot]

 

उदाहरण 1:

    Backup-SPSite http://localhost -Path C:\SiteBackup.bak

Creates the backup of the site collection, the backup file will be stored in C: drive named as SiteBackup.bak

 

उदाहरण 2:

    Backup-SPSite http://localhost -Path C:\SiteBackup.bak -Force

When the job is scheduled to take the daily backup, if the backup file already exists in the specified path, the backup process would be terminated.

Using -Force will enforce overwrite on existing file.

 

उदाहरण 3:

    By default the Bacup-Site command let will set the site collection as read only, while the backup is in progress to avoid updates and/or prevent the backup file from corruption. Using -NoSiteLock switch will not lock the site collection to read only, while backup in progress.

 

उदाहरण 4:

    Switch
UseSqlSnapShot will perform the backup using snapshots, this switch will work only with Enterprise Edition.

TaxonomyPicker Error in Eventlog SharePoint 2010

You might have noticed the following error logged into the EventLog.

Load control template file /_controltemplates/TaxonomyPicker.ascx failed: प्रकार लोड नहीं किया जा सका ‘Microsoft.SharePoint.Portal.WebControls.TaxonomyPickerfrom assemblyMicrosoft.SharePoint.Portal, Version=14.0.0.0, = संस्कृति तटस्थ, PublicKeyToken=71e9bce111e9429c’.

 

 

There is an encoded char issue in .ascx control:

Open the TaxonomyPicker.ascx in the 12 hive control templates path:

 

Replace “&#44″ with double quote

This issue still exists after installing my October 2010 Cummulative Updates.

Get Help for PowerShell cmdlet

Day 2:

How to get help for PowerShell cmdlet, like syntax or list of mandatory/optional parameters to be used with cmdlet.

Get-Help is the cmdlet to provide help for the cmdlet.

Syntax:

    Get-Help <<cmdlet>>

उदाहरण: Let’s get help for Get-Help ;)

    Get-Help Get-Help

 

List all PowerShell Command-let’s in SharePoint 2010

This is the series of PowerShell Scripts in SharePoint 2010. Learn a cmdlet (command-let) a day.

Cmdlet(Command-let)

    Cmdlet’s are compiled commands installed with PowerShell. When you start “SharePoint 2010 Management PowerShell”, the console starts with pre-loaded cmdlets.

Day 1:

Get-Command

    Get-Command cmdlet will return all commandlets registered with PowerShell.

    -Module

        Passing Module value with Get-Command will return only the cmdlet’s available on the specific Module.

Syntax:

    Get-Command -Module <<Module Name>>

 

उदाहरण:

    Get-Command -Module Microsoft.SharePoint.PowerShell

List does not exist Error for Anonymous Users in SharePoint 2010

I was getting the “List does not exist error” for anonymous users, after enabling the debug mode I got the below loooong exception.

It doesn’t really point you with the actual error, after couple of digs; I figured that my master page gallery and style library has unique permission, not inheriting from the parent.

Inheriting the permission from the parent, solved the issue.

Server Error in ‘/’ Application.


List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.<nativehr>0×81020026</nativehr><nativestack></nativestack>

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.<nativehr>0×81020026</nativehr><nativestack></nativestack>

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[COMException (0x81020026): List does not exist.

The page you selected contains a list that does not exist. It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>]

Microsoft.SharePoint.Library.SPRequestInternalClass.GetListsWithCallback(स्ट्रिंग bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, Boolean bPrefetchRelatedFields, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +0

Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(स्ट्रिंग bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, Boolean bPrefetchRelatedFields, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +278

[SPException: List does not exist.

The page you selected contains a list that does not exist. It may have been deleted by another user.]

Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +27257906

Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(स्ट्रिंग bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, Boolean bPrefetchRelatedFields, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +27639327

Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName) +623

Microsoft.SharePoint.SPListCollection.ItemByInternalName(String strInternalName, Boolean bThrowException) +27372020

Microsoft.SharePoint.SPListCollection.get_Item(Guid uniqueID) +114

Microsoft.SharePoint.Publishing.CommonUtilities.GetListByID(SPWeb web, Guid listID, Boolean attemptCleanup) +346

Microsoft.SharePoint.Publishing.Internal.CachedVariationSettings.GetVariationLabelsList(SPWeb rootWeb) +123

Microsoft.SharePoint.Publishing.Internal.CachedVariationSettings..ctor(Guid siteId, SPUrlZone zone) +183

Microsoft.SharePoint.Publishing.Internal.<>c__DisplayClass1.<CreateVariationSettings>b__0() +429

Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729

Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated SecureCode) +27488118

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(कॉलबैक SecureCode इंतजार, ऑब्जेक्ट परम) +27187865

Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated SecureCode) +93

Microsoft.SharePoint.Publishing.Internal.CachedVariationSettings.CreateVariationSettings(Guid siteId, SPUrlZone zone, Boolean forceRefresh) +131

Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingRibbonTrimmer.TrimVariationsGroup() +193

Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingRibbonTrimmer.TrimPublishTab() +52

Microsoft.SharePoint.WebControls.SPPageStateControl.OnPreRender(ई EventArgs) +621

Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageStateControl.OnPreRender(ई EventArgs) +788

System.Web.UI.Control.PreRenderRecursiveInternal() +108

System.Web.UI.Control.PreRenderRecursiveInternal() +224

System.Web.UI.Page.ProcessRequestMain(बूलियन includeStagesBeforeAsyncPoint, बूलियन includeStagesAfterAsyncPoint) +3394

 


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

How to Deploy the SiteTemplate(.stp) file into SharePoint Farm

The site templates can be directly uploaded intoSite Template Galleryin root site collection. If you want to deploy the Site Template at the SharePoint Farm Level. Use stsadm -addtemplate to upload the stp file.

Syntax:

    Stsadm -o addtemplate -filename <filename> -title <title of template> -description <description of template>

 

उदाहरण:

    Stsadm -o addtemplate -filename cksuge.stp -titleUserGroup Template” -descriptionCKS User group Template

 

Now I could see the Site template displayed at Farm level.

SharePoint 2010 Easy Setup Script

Chris Johnson released a new tool to help setup a SharePoint 2010 developer machine.

In order to make this process as easy as possible they have created a series of PowerShell scripts that automate the entire process of building a fully running and ready to go SharePoint 2010 environment. The scripts are highly configurable, but out of the box they will download all of the required software, install all of the SharePoint prerequisites, install other software such as Visual Studio and Office. The script will then install and configure SharePoint 2010. And finally the script will provision a site.

There are really three options to develop SharePoint solutions. The first option is to remote desktop in to a hosted instance of SharePoint. This may be an option for many larger companies that have a good server and support infrastructure it is often not an option for smaller companies. The second option is to download and run the Information Worker VHD that has everything already setup and preconfigured. This is a very easy way to get started but it requires a machine with 8GB of RAM and capable of running Hyper-V. Again many smaller companies and independent developers can’t meet these requirements. The third option is to install SharePoint directly onto your machine running Windows 7 64बिट. The downside to this option is that it requires a steep learning curve to understand how to setup and install all of the bits and pieces to have a full SharePoint developer environment. This is where the Easy Setup Script comes in. The goal of the Easy Setup Script is to reduce the learning curve and time for a casual developer to get started.

Download SharePoint Easy Setup Script


Easy Setup Script Process Flow

Click to view full size


Link to Post.


 

SharePoint फाउंडेशन 2010 - त्रुटि खोजें

मैं त्रुटि नीचे हो रही थी, जब मैं SharePoint फाउंडेशन में कुछ के लिए खोज करने के लिए कोशिश 2010 वेबसाइट.
“अपनी खोज है क्योंकि इस साइट पर एक इंडेक्सर को नहीं सौंपा है पूरा नहीं किया जा सकता है. अधिक जानकारी के लिए अपने व्यवस्थापक से संपर्क करें”

तुम लोगों को पता है कि रूप में, हम ज्यादा विकल्प नहीं है के लिए नींव में खोज प्रबंधित करना 2010, क्योंकि इसकी सीमा के.

तब मुझे पता लगा कि, मैं कॉन्फ़िगर / नहीं मेरे खोज सेवा शुरू नहीं किया, जब मेरी पहली वेब अनुप्रयोग बनाने.

इतना, हम सामग्री डेटाबेस के लिए कॉन्फ़िगर करने की आवश्यकता इंडेक्सर.

आवेदन प्रबंधन पर जाएँ -> डेटाबेस -> सामग्री डेटाबेस प्रबंधित करें

अपनी सामग्री डेटाबेस का चयन करें और अपनी खोज के सर्वर का चयन.

इस अद्यतन बाद, कुछ समय के लिए प्रतीक्षा (मुझे नहीं पता, यह कुछ समय लगता है), यदि आपके खोज सेवा चल रहा है, इंडेक्सर स्वतः सामग्री रेंगने शुरू कर देंगे.

एक त्रुटि का दावा प्रदाताओं में हुई है

SharePoint2010 खेत में mysite जब विन्यास, यह एक त्रुटि फेंकना शुरू कर दिया था “एक त्रुटि का दावा इस साइट संग्रह से कॉन्फ़िगर प्रदाताओं में हुई है”

मुद्दा आंकड़ा नहीं किया जा सका देख लॉग और घटनाओं से बाहर.

डिफ़ॉल्ट खातों को प्रदर्शित करता है इसके अलावा कुछ कबाड़ घर का काम “ग:0(.s सच”

संकल्प:

केंद्रीय प्रशासन के लिए के साथ तक पहुँचा करने की आवश्यकता है “वैध वैकल्पिक मैपिंग यूआरएल