I have a two month old, single server SharePoint 2013 site collection with several sub sites. Everything is working fine except the Newsfeed shows deleted items from community site discussion posts.
Steps for me to reproduce:
Create a new Community Site
(example.com/discussions/SitePages/Community%20Home.aspx)
Post a new discussion. That post immediately shows up in the Newsfeed
(example.com/my/default.aspx)
Go back to the post and delete it. The post is still in my Newsfeed and the following error is given when it is clicked:
Server Error in '/' Application.
Cannot complete this action.
Please try again.0x80004005
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.Runtime.InteropServices.COMException: Cannot complete this action.
Please try again.0x80004005
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:
[COMException (0x80004005): Cannot complete this action.
Please try again.0x80004005]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +0
Microsoft.SharePoint.Library.SPRequest.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +209
[SPException: Cannot complete this action.
Please try again.]
Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +146
Microsoft.SharePoint.Library.SPRequest.GetFolderContentTypeId(String bstrUrl, String bstrFolderUrl, Object& pvarContentTypeId) +519
Microsoft.SharePoint.SPList.GetContentTypeIdByUrl(String url) +346
Microsoft.SharePoint.SPViewContext.get_FolderContentTypeId() +288
Microsoft.SharePoint.SPViewContext.get_NeedToRedirect() +530
Microsoft.SharePoint.SPViewContext.RedirectIfNecessary() +153
Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls() +567
Microsoft.SharePoint.WebPartPages.XsltListViewWebPart.CreateChildControls() +2986
Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.CreateChildControls() +129
System.Web.UI.Control.EnsureChildControls() +166
System.Web.UI.Control.PreRenderRecursiveInternal() +73
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Control.PreRenderRecursiveInternal() +240
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4090
Even after waiting several hours, deleted posts are still in the Newsfeed. There are no failed timer jobs in Central Admin and it happens for all users.
Event Log and ULS show similar messages and I can't find any clues why it's happening.
We don't have the problem when we post "Site Feeds". Those immediately disappear from the Newsfeed after deletion.
I have (2) questions:
Why are deleted posts showing up in the Newsfeed,
And why isn't SharePoint showing a typical "page not found" when they are clicked?
Related
After trying to create another website in windows server 2016. The Existing FileHold WebClient Application throws an errors. One more thing is I can no longer locate the initial web.config file. This is the error I'm seeing.
The request failed with HTTP status 404: 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.Net.WebException: The request failed with HTTP status 404: 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:
[WebException: The request failed with HTTP status 404: Not Found.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +240472
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +267
FileHold.WebClient.SessionManagerService.SessionManager.GetLogonAndPasswordSecuritySettings() in c:\Builds\5\FH\FileHold16.2.2\src\FileHold\WebClient\Web References\SessionManagerService\Reference.cs:747
FileHold.WebClient.LoginForm.Page_Load(Object sender, EventArgs e) in c:\Builds\5\FH\FileHold16.2.2\src\FileHold\WebClient\LoginForm.aspx.cs:100
System.Web.UI.Control.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785
enter image description here
I am having a strange error with publishing my website to Azure. I published it to the service using VS 2010 but then have run into this error in connecting my database to the website. The login page works, as do most of the pages on the site, even those that rely on the very same database. The page with the issue comes up with the following text:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
MAO.Controllers.ReviewController.Index() +603
lambda_method(Closure , ControllerBase , Object[] ) +62
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +214
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +55
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
System.Web.Mvc.Controller.ExecuteCore() +106
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +48
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
The error occurs within the following section of code:
public ActionResult ShortDateResponse(int reviewId, int questionId, string response) {
if (string.IsNullOrEmpty(response)) {
var answer = repository.GetAnswerByQuestionId(reviewId, questionId);
if (answer != null) {
repository.DeleteAnswerById(answer.Id);
}
} else {
try {
DateTime date = DateTime.ParseExact(response, "MM/yyyy", CultureInfo.InvariantCulture);
repository.ShortDateResponse(reviewId, questionId, date);
} catch (Exception fe) {
throw new ArgumentException("Date format should be MM/yyyy", fe);
}
}
return Json(new {
success = true,
error = "none"
});
}
on this line:
DateTime date = DateTime.ParseExact(response, "MM/yyyy", CultureInfo.InvariantCulture);
As such, it seems to me the code is not responsible.
I have tried uploading the database to Azure multiple different ways, and according to the various Microsoft tutorials, and have reviewed others who have presented very similar questions on SO and other places. At this point I am not sure how to move forward, so I'm asking.
Initially, I used SQL Management Studio 2008R's "Extract Data-Tier Application" and "Import Data-Tier Application" to load the schema for the database, then "Export Data" and "Import Data" to load up the data onto the server. I ensured that the commandtimeout variable was sat to 0 for all tables so nothing would get lost along the way, and sure enough, everything showed up on the Azure database.
When this presented the aforementioned error, I attempted to use the "Generate scripts" to upload the schema, in case there had been some error with my previous process. I then used Export/Import Data to put the data on the website. I received the same error.
This website does work properly on internal servers, an has been deployed successfully elsewhere, but I'd like to migrate to Azure if possible. Also, I have checked the uploaded website linked to local SQL servers and it has worked properly, so the issue lies in the upload of the SQL database to Azure servers.
I am aware that many people with this error have been able to solve it by editing their connection strings within web.config. I have looked into this, and have manually edited my connection string via Filezilla to the format put forth on various websites, to no avail.
I would really appreciate any insights you have, and let me know if you need more details. Thank you!
One thought is that it might be the firewall rule on the SQL Azure instance. In the Windows Azure Management Portal, go to the "Configure" page for that SQL Azure server. Is it set to "Yes" for allow windows azure services?
Can you also post the code for the controller action MAO.Controllers.ReviewController.Index() so we can see where the null reference exception occurs?
I have implemented the SharePoint:DateTimeControl in a very simple webpart
<SharePoint:DateTimeControl ID="dtStartdate" runat="server" DateOnly="true" />
The problem is when I click on the control it renders an exception
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.SharePoint.Utilities.SPUtility.GetThemedImageUrl(String originalUrl, String themeKey) +199
Microsoft.SharePoint.WebControls.DatePicker..ctor() +1460
Microsoft.SharePoint.WebControls.SPDatePickerControl.InitDatePicker() +44
Microsoft.SharePoint.WebControls.SPDatePickerControl.set_MinJDay(Int32 value) +25
Microsoft.SharePoint.ApplicationPages.DatePickerFrame.Page_Load(Object sender, EventArgs e) +1708
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.LoadRecursive() +94
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2935
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
Any advice or help to resolve this is highly appreciated, thanks!
I know it's been a while since you asked this but having just solved something very similar I thought I'd share my (simple) solution.
Make sure you have a site collection created at the root of the web app.
I was working on a web part in http: //webapp/sites/mysitecollection and had the above error. Looking at http: //webapp gave me a 404 so I created a root site collection and now the datepicker in my sitecollection works fine.
In my email today I got the following:
The My Site of is scheduled for deletion. As their manager you are now the temporary owner of their site. This temporary ownership gives you access to the site to copy any business-related information you might need. To access the site use this URL: http://mysites.mycompany.com/personal/
I click on the link and I can see that there site is there. I do not want there site to be deleted at all what can I do.
When I search for the user using the PeopleSearchBoxEx web part the user comes up but when I click on there name I get the error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
User 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: Microsoft.SharePoint.SPException: User 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:
[SPException: User not found.]
Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.OnInit(EventArgs e) +4415
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
Any idea how I can stop this person from being "delete" and get there profile to work again?
I experience the same error.
I changed the primary site collection admin to myself on this mysite and that worked. This message is coming from the primary site collection admin being the user that has been deleted.
Go to central admin > application management > site collection administrators and choose your mysite application and then your user site collection for this site.
It looks like the user has already been deleted (possibly due to sync with AD) but not yet removed from the search index. You'll need to look into what caused the user to be removed.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Our networks guys installed this patch over the weekend to our single server sharepoint front end: KB956716
http://www.microsoft.com/downloads/details.aspx?familyid=a7fda284-273c-42ab-8188-433beaacca86&displaylang=en
http://support.microsoft.com/kb/956716
After which our search service stopped working.
When attempting to do a search on any of our apps we get this error: System.IndexOutOfRangeException: DisplayInAdminUI (stack info below)
I logged into the shared services admin page and when I click on search settings it just crashes too.
I have included the event viewer error below as well...
Any ideas?
Thanks,
Christopher
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 12/30/2008
Time: 1:03:35 PM
User: N/A
Computer: VKSPS02
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/30/2008 1:03:35 PM
Event time (UTC): 12/30/2008 7:03:35 PM
Event ID: 90ade1cc6d5949a3ae2ea97afa5d75e6
Event sequence: 19275
Event occurrence: 67
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1927250994/Root-1-128751076993856152
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\vktoday80\
Machine name: VKSPS02
Process information:
Process ID: 8136
Process name: w3wp.exe
Account name: VIRCHOWKRAUSE\SharePointSSPApp
Exception information:
Exception type: IndexOutOfRangeException
Exception message: DisplayInAdminUI
Request information:
Request URL: http://sitename.domain.net/searchcenter/Pages/peopleresults.aspx?k=lori
Request path: /searchcenter/Pages/peopleresults.aspx
User host address: 172.30.202.56
User: VIRCHOWKRAUSE\JF11767
Is authenticated: True
Authentication Type: NTLM
Thread account name: DOMAINNAME\SharePointSSPApp
Thread information:
Thread ID: 6
Thread account name: DOMAINNAME\SharePointSSPApp
Is impersonating: False
Stack trace: at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.Refresh()
at Microsoft.Office.Server.Search.Query.ConsumerScopeCache.EnsureFresh()
at Microsoft.Office.Server.Search.Query.ScopeCache.TryGetScope(Guid siteGuid, Int32 id, ScopeInformation& scope)
at Microsoft.Office.Server.Search.Query.ScopeCache.TryGetSharedScope(Int32 id, ScopeInformation& scope)
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnHiddenObject()
at Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.SetPropertiesOnHiddenObject()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnPreRender(EventArgs e)
at Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Server Error in '/' Application.
DisplayInAdminUI
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.IndexOutOfRangeException: DisplayInAdminUI
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:
[IndexOutOfRangeException: DisplayInAdminUI]
System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +1433771
System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +102
System.Data.SqlClient.SqlDataReader.get_Item(String name) +12
Microsoft.Office.Server.Search.Query.ConsumerScopeCache.Refresh() +1241
Microsoft.Office.Server.Search.Query.ConsumerScopeCache.EnsureFresh() +58
Microsoft.Office.Server.Search.Query.ScopeCache.TryGetScope(Guid siteGuid, Int32 id, ScopeInformation& scope) +75
Microsoft.Office.Server.Search.Query.ScopeCache.TryGetSharedScope(Int32 id, ScopeInformation& scope) +68
Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnHiddenObject() +2503
Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.SetPropertiesOnHiddenObject() +41
Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnPreRender(EventArgs e) +1977
Microsoft.Office.Server.Search.WebControls.PeopleCoreResultsWebPart.OnPreRender(EventArgs e) +11
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
I've had a similar experience with a corrupt search index (caused by the indexing server randomly rebooting) and unfortunately the only way to fix it was to Stop the Search Services and Start them again. This is done through Central Admin-Operations-Topology and Services-Services on Servers.
Not that we were getting this error - the IndexOutOfRangeException error you are getting relates to something going out of the bounds of a list or something when displaying the UI rather than something to do with the search index. However, the behaviour you describe is the same as we were getting - searches returning errors and not being able to access the Search configuration area in the Shared Services Provider.
Note that this is not like stopping and starting a Windows service - stopping the search service uninstalls it from the indexing server and starting it re-installs it so you will lose your search index and will have to do a full crawl to get it back. So be very sure that you are out of other options and are willing to lose your search index before going down this path.
Well I broke down and opened a support ticket w/ M$. They did resolve the issue quite quickly. We use lan desk to push our patches to our servers. Our networks guys didn't run the sharepoint product config wizard after the patch was installed. I guess this needs to be done on any update to the binaries which most of the patches do update..
So we ran the config wizard, it failed. Then tries to run it using command line:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>PSCO
NFIG -CMD UPGRADE -INPLACE B2B -FORCE -WAIT
That failed too... but just on the last step of restarting the service (found that info in the log). So we started the services manually, reset iis. and it WORKED!
I guess our network guys need to learn to run the Sharepoint Configuration Wixard or Psconfig at the command prompt.