Thursday, March 30, 2017

How to fix SharePoint 2013 Exception System.ServiceModel.FaultException

Exception Details: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

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:

[FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.]

   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response) +1161205

   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +73

   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36

   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo) +26405809

   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, String membershipProviderName, String roleProviderName, String username, String password) +26406316

   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.GetSecurityToken(Login formsSignInControl) +188

   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.AuthenticateEventHandler(Object sender, AuthenticateEventArgs formAuthenticateEvent) +123

   System.Web.UI.WebControls.Login.AttemptLogin() +152

   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124

   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

Solution:

Step to follows:

Open IIS (Internet Information Server) 

Navigate to Application Pools

Click on SecurityTokenServiceApplicationPool

Action panel Click on Recycle..

   In short to fix just need to restart the app pool for security Token Services on the server which is affected

 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist


How to move a SharePoint 2013 subsite within Site Collection How to get current SharePoint farm Passphrase

Tuesday, March 28, 2017

How to move a SharePoint 2013 subsite within Site Collection

Method 1: By using SharePoint Site User Interface

Steps are as follows

Login the SharePoint Site; click 'Site Actions' -> 'Site Settings'.

Click on "Content and structure" Under Site Administration link
Select Site to Move >> Click on Actions >> Choose Move

Select the Target Site to Move your site,

 Click OK to start move operation
Note: This feature only available if Publishing feature enabled.


Method 2: By using Power Shell

1. Open SharePoint 2013 Management Shell.

2. Run the following Shell

$web=Get-SpWeb "Source site url"

$web.AllowUnsafeUpdates=$true

#Set the Target URL

$web.ServerRelativeUrl="Destination site url"

$web.AllowUnsafeUpdates=$false

$web.update 


 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist


How to hide SharePoint 2013 ribbon on list display form How to fix SharePoint 2013 Exception System.ServiceModel.FaultException

How to hide SharePoint 2013 ribbon on list display form

 Step by step Remove SharePoint 2013 ribbon on list display form

Follow the steps

1.      Open SharePoint Designer and click on Open Site.


SharePoint Designer


2.      Enter site URL and click open to open your site.


Open Site


3.      SharePoint Designer 2013 opens the site and display site Name, List and Libraries.

SharePoint Site


4.      Click on  List and Libraries.


List and Libraries


5.      Click on the list.

6.      Click display .aspx on Form right side panels 

7.      Add following code to your aspx form

<style type="text/css">

#s4-ribbonrow {

display: none;

}

         </style>


Thank you very much

          Fahadullah Karimi

         SharePoint Specialist


List of PowerShell Commands in SharePoint 2013 Part 8 How to move a SharePoint 2013 subsite within Site Collection