4
Vote

Thread Abort Exception while using ServiceLoactor.GetCurrent Method

description

We are using Logging Framework in our application. We have received Thread Abort Exception while using ServiceLoactor.GetCurrent Method. We have received this error on the subsite (Team Site) of a Team Site. After recycle the application pool, if we browse this sub-site with site owner/visitor account (any account except site collection admin), it will throw "ThreadAbort Exception".
 
When a user tries to access one of the subsite , Thread abort exception appears . Please find the attachment for the same.
This issue happens for any subsite (Team Site) of a Team Site which has following characteristics:
 
(a) Doesn’t have Publishing Infrastructure ON
(b) Have a inheritance break from Parent site
(c) After IIS application pool recycle , Site is accessed with any account
    - Which has any kind of rights on subsite  
    -  Is not a Site Collection Admin for the concerned Site Collection 
    -  Doesn't have any kind of rights on Parent Site 
 
Kindly Please look at the issue and provide the solution for this. It is very critical since it breaks entire web application, not only that particular site.

file attachments

comments

abhishekkumar41 wrote Jul 22, 2011 at 7:00 AM

Any Update on the same.

wrote Jul 22, 2011 at 7:01 AM

wrote Aug 3, 2012 at 1:25 PM

wolfputz wrote Aug 3, 2012 at 1:26 PM

I am also getting this error. We are using this to log to ULS only. I guess its still an issue.

System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at Microsoft.SharePoint.Utilities.SPUtilityInternal.SendResponse(HttpContext context, Int32 code, String strBody)
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)
at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
at Microsoft.SharePoint.Library.SPRequest.GetWebMetainfo(String bstrUrl)
at Microsoft.SharePoint.SPWeb.get_AllProperties()
at Microsoft.Practices.SharePoint.Common.Configuration.SPWebPropertyBag.get_Item(String key)
at Microsoft.Practices.SharePoint.Common.Configuration.ConfigManager.GetProperty(Type settingType, String key, IPropertyBag propertyBag)
at Microsoft.Practices.SharePoint.Common.Configuration.ConfigManager.GetFromPropertyBag[TValue](String key, IPropertyBag propertyBag)
at Microsoft.Practices.SharePoint.Common.ServiceLocation.ServiceLocatorConfig.GetConfigData()
at Microsoft.Practices.SharePoint.Common.ServiceLocation.ServiceLocatorConfig.GetTypeMappings()
at Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.CreateServiceLocatorInstance(SPSite site)
at Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.DoGetCurrent(SPSite site)
at Wegmans.EnterpriseLibrary.SharePoint.Logging.SPLogger..ctor()
at Wegmans.EnterpriseLibrary.SharePoint.ILM.Identity..cctor()

wolfputz wrote Aug 3, 2012 at 1:51 PM

I forgot to add that this has happened 2 times now in our Production intranet. I have yet to find any Correlating information on our outages other then its been at the begining of the months (July and August) and then runs fine after IISRESET on our web front ends.

wrote Feb 21, 2013 at 11:32 PM

wrote Oct 17, 2013 at 4:21 PM

wrote Apr 5, 2016 at 8:36 AM