Dieses Blog durchsuchen

Mittwoch, 23. Oktober 2013

Sitecore 7 Troubleshooting: Index was not found

Solution:

1. Delete Solr Config File in App_Config/Include
2. In my Case in Settings.config this was missing
<setting name="IC.IndexName" value="sitecore_master_index" />


Server Error in '/' Application.

Index  was not found

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.ArgumentException: Index  was not found

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:


[ArgumentException: Index  was not found]
   Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name) +473
   Website.Logic.Search.ItemSelector.get_Index() +83
   Website.Logic.Search.ItemSelector.GetResults(Expression`1 predicate, String sort, Boolean reverse, Int32 start, Int32 count, Boolean neglectPermissions) +6460
   Website.Logic.Search.ItemSelector.GetItems(BaseSearchParameter param, String sort, Boolean reverse, Int32 start, Int32 count) +4373
   Portlets.SearchListPortlet.Page_Load(Object sender, EventArgs e) +4671
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178



Donnerstag, 10. Oktober 2013

Sitecore 7: Troubleshooting: Sitecore has no necessary permissions for reading/creating counters.

Problem:

Sitecore is running very slow and log file showing up this error. Sitecore has no necessary permissions for reading/creating counters.

Solution:

Check installation guide and add IIS AppPool User enough rights.

4.2.1  File System Permissions for Anonymous Requests

Certain types of browser requests (generally for directory lookups and static resources) are executed
with the permissions of the anonymous Internet user account. This account requires Read
permissions to all files, folders, and subfolders under the /Website folder.
The following table contains the default name for this account in different versions of IIS:
IIS version  Default anonymous Internet user account name
7 and 7.5  IUSR
If IIS is configured not to use the default IUSR account for processing anonymous requests or
Anonymous authentication is not enabled for the web site, the aforementioned permissions should be
granted to the corresponding account(s).

4.2.2  File System Permissions for ASP.NET Requests

Requests for ASP.NET resources and all the .NET code running within the application is executed
with the permissions of the account configured as an identity for the web site’s application pool. This
account requires Modify permissions to all files, folders, and subfolders under the /Website and
/Data folders.
The following table contains the default account used for processing ASP.NET requests in different
versions of IIS:
IIS version  Default ASP.NET account name
7  NETWORK SERVICE
7.5  AppPoolIdentity
IIS 6 and later versions allow changing the user account used for processing ASP.NET requests.
If you choose a different user account for processing ASP.NET requests, you must grant this account
the aforementioned permissions.
Note
For more information about application pool identities and specifically about assigning rights to the
AppPoolIdentity account, refer to the following article: http://learn.iis.net/page.aspx/624/applicationpool-identities/

4.2.3  File System Permissions for System Folders

To be able to load .NET runtime and ASP.NET resources used for processing the ASP.NET requests,
the worker process hosting the Sitecore CMS application requires access to multiple system files and
folders that are not distributed as a part of the Sitecore CMS but installed as a part of Windows OS
and .NET framework.
Most of these permissions are granted by IIS to all ASP.NET applications automatically making the
application pool identity account a member of the IIS_IUSRS security group.

Happy fixing.

Sitecore 7: Troubleshooting: LDAP/AD: non-existing provider referenced by the “providername”

Problem:
I have installed the official LDAP / AD sitecore package. Now you need to make some changes in the web.config to make it running.
Well this error appears in my case with a non proper LDAP/AD configuration in the Web.config file.

Solution:


In my case the provider tag “ad” was missing in the role Manager section.
   1: <switchingProviders>

   2:      <membership>

   3:        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>

   4:        <!-- LDAP1 -->

   5:        <provider providerName="ad" storeFullNames="false" wildcard="*" domains="ad" />

   6:      </membership>

   7:      <roleManager>

   8:        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>

   9:        <!-- LDAP1 -->

  10:        <provider providerName="ad" storeFullNames="false" wildcard="*" domains="ad" />

  11:      </roleManager>

  12:      <profile>

  13:        <provider providerName="ad" storeFullNames="false" wildcard="*" domains="ad" />

  14:        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>

  15:      </profile>

  16:    </switchingProviders>



Also add tis here after the closing membership tag.


   1: <roleManager defaultProvider="sitecore" enabled="true">

   2:       <providers>

   3:         <clear/>

   4:         <add name="sitecore" type="Sitecore.Security.SitecoreRoleProvider, Sitecore.Kernel" realProviderName="switcher" raiseEvents="true"/>

   5:         <add name="sql" type="System.Web.Security.SqlRoleProvider" connectionStringName="core" applicationName="sitecore"/>        

   6:         <!-- LDAP -->

   7:         <add name="switcher" type="Sitecore.Security.SwitchingRoleProvider, Sitecore.Kernel" applicationName="sitecore" mappings="switchingProviders/roleManager" />

   8:  

   9:         <add name="ad"

  10:             type="LightLDAP.SitecoreADRoleProvider"

  11:             connectionStringName="ldapConn"

  12:             applicationName="sitecore"

  13:             username="<username>"

  14:             password="<password>"

  15:             attributeMapUsername="sAMAccountName" />

  16:         <!-- LDAP -->

  17:         

  18:       </providers>

  19:     </roleManager>

Dienstag, 1. Oktober 2013

Sitecore Training: Official Questions from the Certification for Sitecore 6 in London

Here are 3 official questions. I will not provide answers. It a training for you. ;-)

1. How is it possible to include a Sublayout on a Layout?
  Statically bind the Sublayout control directly on the Layout.
  Both of the other answers are correct.
  Dynamically bind the Sublayout control with a Placeholder on the Layout.



2. Sitecore supports which model for developing in Visual Studio 2010 in the .NET 4.0 Framework?
  ASP.NET Web Application
  ASP.NET Web Site (Razor)
  ASP.NET Web Site

3. The Service Description data template contains a Sales Territories field of type Droptree. What is the best way of displaying the Title field of the items selected in the Sales Territories field?
   1: DroptreeField droptreeField = currentItem.Fields["Sales Territory"];

   2: em salesTerritoryItem = droptreeField.InnerField.Item;

   3: Text = salesTerritoryItem["Title"]; 

   4:  

   5:  

   6: ValueLookupField valueLookupField = currentItem.Fields["Sales Territory"];

   7: em salesTerritoryItem = valueLookupField.InnerField.Item;

   8: Text = salesTerritoryItem["Title"]; 

   9:  

  10:  

  11: ReferenceField referenceField = currentItem.Fields["Sales Territory"];

  12: Text = referenceField.TargetItem["Title"];