Creating New-spsite returns error
"New-SPSite : There was no endpoint listening at
http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
Reinstall sharepoint 2013 does not solve the problem. Same error all the time. The log files said:
10/07/2013 22:45:27.58 PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Claims Authentication fsq7 High SPSecurityContext: Request for security token failed with exception: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at
http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable
to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it [::1]:32843 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress
socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, Con... 84766e3a-b28f-40eb-9b61-574e9e232ca5
10/07/2013 22:45:27.58* PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Claims Authentication fsq7 High ...nectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream(TransportContext&
context) at System.Net.HttpWebRequest.GetRequestStream() at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() --- End of inner exception stack trace ---
Server stack trace: at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.SendRequest(Message
message, TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) ... 84766e3a-b28f-40eb-9b61-574e9e232ca5
10/07/2013 22:45:27.58* PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Claims Authentication fsq7 High ...at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, Reques... 84766e3a-b28f-40eb-9b61-574e9e232ca5
10/07/2013 22:45:27.58* PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Claims Authentication fsq7 High ...tSecurityTokenResponse& rstr) at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri
context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo, SPRequestSecurityTokenProperties properties) 84766e3a-b28f-40eb-9b61-574e9e232ca5
10/07/2013 22:45:27.58 PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Claims Authentication 8306 Critical An exception occurred when trying to issue security token: There was no endpoint listening at
http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.. 84766e3a-b28f-40eb-9b61-574e9e232ca5
10/07/2013 22:45:27.58 PowerShell.exe (0x0E60) 0x0788 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationCaller:http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue). Execution Time=2009.99498539619 84766e3a-b28f-40eb-9b61-574e9e232ca5
Anyone have solved in sps2013? Thank you. I follow the answers for sharepoint 2010. Nothing help.