Sunday, 13 July 2014

Error Type: SPSecurityContext: Request for security token failed with exception: System.ServiceModel.ServiceActivationException: The requested service, 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc' could not be activated.

Hi Today when i try to deploy my small app on SharePoint 2013 environment, i got the following error,

Cannot connect to the SharePoint site: http://ukreddy:3430/. Make sure that this is avalid URL and the SharePoint site is running on the local compurter. If you move this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.



I know that the site is running and up. Am sure something stopping the deployment. So, i checked the log files and i found the bellow exception
"SPSecurityContext: Request for security token failed with exception: System.ServiceModel.ServiceActivationException: The requested service, 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc' could not be activated."



and when i browse to the URL "http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc
" Then i got the following error in my browser


"Memory gates checking failed because the free memory is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element."



Then i came to know that there is an issue with the memory, then i checked task manager and observed that Memory reached more than 95%.



then i killed some tasks and again i browse the URL

Now i can see the page without error.



Then i deployed the solution successfully.

No comments:

Post a Comment