only My site
Showing posts with label Error and Resolution. Show all posts
Showing posts with label Error and Resolution. Show all posts

Wednesday, July 17, 2013

Unable to find a Configuration whose ID

Error

Error occurred in deployment step 'Add Solution': Unable to find a Configuration whose ID is equal to 1 in the WebTemplatePackage_Feature1\Bala Template\onet.xml file for feature {7e557079-c818-415d-850b-c6445896ff96}. The WebTemplatePackage_Feature1\Bala Template\onet.xml file must contain a Configuration element whose ID attribute is equal to the BaseConfigurationID attribute declared in the WebTemplate element.

Cause

The IDs in Element.xml and Onet.xml didn't match.

Solution

The IDs in Element.xml (baseconfigurationID) and Onet.xml(ID) should be the same. Refer the below sample code.

 

Wednesday, January 30, 2013

Tuesday, January 29, 2013

There is a problem with the query that the web part is using. Check the configuration of the web part and try again

Error : "There is a problem with the query that the web part is using. Check the configuration of the web part and try again..."

Cause : The Content Query Web Part utilizes the Windows SharePoint Services cross-list querying mechanism to retrieve content from a SharePoint site collection. If the Web Part is configured to issue a query that involves a large number of lists, the cross-list query mechanism may raise an exception.

Resolution :
In order to fix it, you need a more restrictive query or you need to export the .webpart file, modify the ListsOverride property to modify the limit and then use the new imported webpart.
My new lists override property looks like this:
<property name="ListsOverride" type="string"><![CDATA[ <Lists MaxListLimit="2000"> </Lists>]]></property>

By default, cross-list queries have a list limit of 1,000. This means that if you configure the Content Query Web Part with a query that includes more than 1,000 lists, the cross-list query will not complete, and the Web Part will not show any content. The reason for this throttling is to avoid overburdening SQL Server 2005.The more lists the cross-list query includes, the longer it takes for the database server to return the content the query is asking for. For very large numbers of lists, this could cause the database server to disproportionately process cross-list queries at the expense of other requests.
If your requirements involve querying for more than 1,000 lists, you can increase the list limit if the database load that the operations require is acceptable. You can do this by adding a MaxListLimit attribute to the ListsOverride property of the Web Part. For example, if you wanted to raise the list limit to 2000, you would set the ListsOverride property
 

An error occurred during the processing of /OSSSearchResults.aspx. Code blocks are not allowed in this file.

Error : “An error occurred during the processing of /OSSSearchResults.aspx. Code blocks are not allowed in this file.”

Cause : By default the inline server side codeblocks are disabled and we need to enable it in web.config

Resoultion : we need to enable code block in web.config.
 
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
<PageParserPaths>
     <PageParserPath VirtualPath="/osssearchresults.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
</SafeMode>


Source : http://blog.pixelmill.com/1037/sharepoint-2010-allow-server-side-code-inline-code-blocks/

Wednesday, January 9, 2013

Visual Source Safe : Could not find the visual SourceSafe internet web service connection information. SourceSafe web service cannot be accessed.

Today one of my team member tried to open a solution from VS2010 and which is hosted in VSS server. During the time he opens the solution the VSS Server was switched off (offline) and he was promted with multiple options (of course, the system couldn't connect to the shared folder database) and he choode "work offline" mode and opened the solution.

Lates the VSS server was Switched on (online) and he tried to open the .net project solution .sln , and this time he got the following error.

"Could not find the visual SourceSafe internet web service connection information. SourceSafe web service cannot be accessed."

Solution :

Go to the Visual Studio -> Tools -> options -> Choose Source Control and Plug-in Selection.
Switch Back to Microsoft Visual SourceSafe instead of Microsoft Visual SourceSafe(Interenet);

For VS2010 Premium and Ultimate
Go to the Visual Studio -> Debug -> Options and Settings -> Choose Source Control and Plug-in Selection.  Switch Back to Microsoft Visual SourceSafe instead of Microsoft Visual SourceSafe(Interenet);

Note : The scenario above I mentioned is based on my friend's Information.

Tuesday, January 8, 2013

VSS 2005 and VS2010 Integration

Issue :

I was looking to configure the VSS 2005 in Tools -> Options -> Source Control and it was not there in VSS 2010 Ultimate edition.

Resolution :

Note that in Premium and Ultimate version the path to change to VSS is through DEBUG -> OPTIONS AND SETTINGS -> SOURCE CONTROL

To configure VSS2005 with VS2010 we can change the settings in Tools-> Options-> Source Control-> Select the Vss Source Safe option. Note that in Premium and Ultimate version the path to change to VSS is through  DEBUG -> OPTIONS AND SETTINGS -> SOURCE CONTROL

Tuesday, December 25, 2012

Slideshow (Carousel) in Sharepoint 2010 CQWP

We can do customization the Sharepoint CQWP according to our need. Here is the one of the complex implementation of shideshow using jquery, css and CQWP. The article is well narrated with shreen shots. The Key elments are ItemStyle.xsl and ContentQueryMain.xsl.




https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Integrate-a-Slider-with-the-Content-Query-Web-Part-Part-1-What-does-my-Slider-Need-to-Work.aspx

https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Integrating-a-Slider-with-the-Content-Query-Web-Part-Part-2-Setting-up-my-Content-Source.aspx

https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Integrate-a-Slider-with-the-Content-Query-Web-Part-Part-3-Integration-with-the-CQWP.aspx

Known Issue and Resolution

While Implementing the above slider i had the following Issues.

Error :
"The web part references an untrusted XSL file. Only XSL files contained in this site's Style Library may be referenced"

Cause :
The path was pointing to the wrong location. Instead of "sites/MySiteCollectionName/Style Library/Xsl Style Sheets" location, it is pointing to "/Style Library/Xsl Style Sheets".

Resolution :
Change the properties in the CQWP File (export the web part and open it in notepad). Possibly we need to change the following file path properties
1. ItemXslLink - Example /sites/rd/Style Library/Xsl Style Sheets/Slider/ITemStyle.xsl
2. MainXslLink - Example /sites/rd/Style Library/Xsl Style Sheets/Slider/ContentQueryMain.xsl
3. Xsl

In the ContentQueryMain.xsl file, the following needs to be done
1. Add the jquery file (jquery.min.js) link in the code above the global.css. This may not required if the jquery link is available in Master page.
2. use ../ prefix for the "/Style Library" (if it is hosted in sites/rd)

Yet Another Slideshow with full code

http://chrisstahl.wordpress.com/2011/08/09/image-slideshow-with-cqwp-in-sharepoint-2010/

Item style customization steps

http://www.heathersolomon.com/blog/articles/customitemstyle.aspx

Friday, August 24, 2012

RadAsyncUpload - RadAsyncUpload does not have permission to write files in the TemporaryFolder

Today I deployed a aspx page (with telerik:RadAsyncUpload) control in a new environment and come up with the following error

Error :

"RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.   at Telerik.Web.UI.RadAsyncUpload.TestTemporaryFolderPermissions() "

Cause :

The logged in user don't have Write permission for the temporary folder.

Resolution :

The resolution for the issue is need to give Authenticated_Users account write permission for the TemporaryFolder. The temporary folder is by default located in ApplicationRootPath.com80\App_Data\RadUploadTemp. You may also give everyone account also, but it is not advisable.

In addition we can also specify a custom path for the TemporaryFolder. The following is the code for the same

<telerik:RadAsyncUpload TemporaryFolder="c:\windows\temp"

Again we need to give the appropriate permissions to the "c:\windows\temp" folder as mentioned above.

Sunday, April 1, 2012

Error : “Access is denied. Verify that either

Recently I noticed one issue in User profile page. The issue is the users "About me" and "Picture" which I updated in my profile is visible in Profile page but not in People search result. Obviously I understood that it is crawl issue and found the below issue in crawling.

Error : “Access is denied. Verify that either the Default Content Access Account has access to
this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a
SharePoint repository, verify that the account you are using has "Full Read" permissions on the
SharePoint Web Application being crawled.”

Resolution : In Search Service application > Seach Administration > Check the 'Default content
access account'. In my case it is 'Domain\SP_XXXSearchUser'

Make sure this account has the '' permission in the 'User Profile Service' application.

Step - 1
Step – 2

Also make sure there is an entry for DisableLoopbackCheck in the registry.
If its not present follow the below steps :

Go to command window and type regedit.exe

Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right click on LSA and create a new 32bit DWORD value

Name it as "DisableLoopBackCheck" and modify its value to 1

Close the registry and crawl the content.

SPContext Replacement in Timer Jobs

Recently we encountered an issue in running the code (with "SPContext") in Timer job. After doing the learning, I understood the that the SPContext will not work in

1. Timer Job
2. Event Receier
3. Console and windows application running in the servers

Solution :

The solution is

using(SPSite oSite = new SPSite(this.WebApplication.Sites[0].Url))

{

using(SPWeb oWeb = oSite.OpenWeb())

{

}

}

Monday, January 30, 2012

Error : The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.

Error : The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.
Answer :
1. Start Central Administration.
2. Click Security, and then click "Define Blocked file types"
3. On the Blocked File Types page, click the Web application that you want to configure in the Web Application box.
4. Remove the file name extension from the list of blocked file types.
5. Click OK.

Friday, January 27, 2012

Error : Search Alert rule not working

Error : Search Alert rule not working
Answer :
To enable search alerts
1.Verify that the user account that is performing this procedure is an administrator for the Search service application.
2.Open SharePoint 2010 Central Administration.
3.In the Application Management section, click Manage service applications.
4.On the Manage Service Applications page, click the Search service application for which you want to configure search alerts.
5.On the Search Administration page, in the System Status section, locate Search alerts status.
6.The search alerts status displays as OffEnable or OnDisable.
7.By default, search alerts are turned Off. Click Enable to turn on Search alerts.

Error : An error was encountered while retrieving the user profile.

Error : An error was encountered while retrieving the user profile.
Code which cause this error : UserProfile profile = mgr.GetUserProfile(user.Name);
Answer : UserProfile profile = mgr.GetUserProfile(SPContext.Current.Web.CurrentUser.RawSid);

Tuesday, January 24, 2012

Error : There was an error when granting access for

Error : There was an error when granting access for DOMAIN\SP_XXXDbAdmin to this SharePoint farm. Membership in the machine administrators group is required to grant access to the SharePoint databases.
Access denied. Only machine administrators are allowed to create administration service job definitions of type: Microsoft.SharePoint.Administration.SPUpdateWorkerProcessGroup, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.

Ans : Run the SharePoint configuration wizard which will solve the issue.

Monday, January 23, 2012

Error : Failed to establish connection with report server.

Error : Failed to establish connection with report server. Verify the server URL is correct or review ULS logs for more information. Product area: SQL Server Reporting Services, Category: Configuration Pages

Answer : Use IP rather than Server name. Eg : http://IPADDRESS:80/ReportServer

Note : Before doing the Sharepoint SSRS config in Central Admin, we need to install the SharePoint 2010 Full installation (existing farm option).

Saturday, January 21, 2012

Error : Could not find MOSS MA despite being marked as fully configured, was it deleted?

LoadConnections failed trying to fill the connections list. Most likely during RetriveResources because of permissions --- {1}. Available parameters: Microsoft.ResourceManagement.WebServices.Client.PermissionDeniedException: Access to the requested resource(s) is denied at Microsoft.ResourceManagement.WebServices.Client.ResourceTemplate.EnumerateResources(SearchParameters parameters) at Microsoft.ResourceManagement.WebServices.ResourceManager.RetrieveResources() at Microsoft.Office.Server.UserProfiles.ConnectionManager.LoadConnections() .

ConnectionManager.LoadConnections(): Could not find MOSS MA despite being marked as fully configured, was it deleted?

Symptom : the disappearance of your AD connection from User Profile Sync connections.

Answer1 : Stop the User Profile Synchronization service in Central Administration -> Manage Services on Server and restart it. Please take a look at http://cid-6f40fb61d28cf147.office.live.com/view.aspx/Technology/MOSS%20MA%20Not%20found%20error%20when%20create%20new%20synchronization%20connection.docx for detail.

Friday, January 20, 2012

Error : Load control template file /_controltemplates/TaxonomyPicker.ascx failed

Error 7043 "Load control template file /_controltemplates/TaxonomyPicker.ascx failed"

Answer :

This is not causing any issues except for a wrong ULS log message a single time in a web application process life time, the exception is caught and that template file is skipped. This message should be treated as log noise and can be ignored.To change this behavior:

1. Navigate to /14/TEMPLATE/ControlTemplates/TaxonomyPicker.ascx user control
2. Open the user control in a text editor and locate the first line
3. Find the character string , and replace with a comma ‘,’ (without quotes).
4. Save the user control

Wednesday, January 18, 2012

Error : The form cannot be rendered. This may be

Error : "The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator"

Resolution : Run the Farm wizard in Central Admin and select the State Service.

For more info : http://www.topsharepoint.com/sharepoint-2010-state-service

Monday, January 16, 2012

Error : The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>)

Error : The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>)

Answer : the workaround is to wrap a tag around the <% ... %>code block. This makes the code block a child of the Placeholder control, instead of being a direct child of the Page.Header control, but it doesn't change the rendered output at all. Now that the code block is not a direct child of Page.Header you can add things to the header's controls collection without error.

Source : Stackoverflow