| 
					
						 One section of my application has some functionality that reads unique identifiers from a CSV file and information from a dialog to generate a journal note serverside using .NET remoting
 
 This functionality is working fine for small numbers but when I increase the number of items to process I get a ThreadAbortException.  I have put in some logging at it doesn't fail at the same point each time.  The kicker is that when I attach to the ASP worker process it works fine for large volumes, which is making it a little hard to debug to find where it is throwing this exception unattached.
 
 Server log below:
 
 
 System.Threading.ThreadAbortException: Thread was being aborted.
    at System.DirectoryServices.Interop.UnsafeNativeMethods.IntADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
    at System.DirectoryServices.Interop.UnsafeNativeMethods.ADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_NativeObject()
    at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
    at ExternalCommonLibrary.AuthorisationManager.GetUserByGUID(String usersGUID) in C:\RentSmartSoftware\SmartCheck\ExternalCommonLibrary\AuthorisationManager.cs:line 300
    at SmartCheckBusinessObject.Journal.SetupUser(String guid) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 131
    at SmartCheckBusinessObject.Journal.set_CreatedByUserGuid(String value) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 83
    at NHibernate.Persister.GetSetHelper_SmartCheckBusinessObject_Journal.SetPropertyValues(Object obj, Object[] values)
    at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Persister\AbstractEntityPersister.cs:line 182
    at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 2757
    at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 373
    at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 355
    at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 168
    at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object[] ids, IType[] types) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1258
    at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1224
    at NHibernate.Loader.CollectionLoader.Initialize(Object id, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\CollectionLoader.cs:line 75
    at NHibernate.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Collection\AbstractCollectionPersister.cs:line 286
 2007-07-06 08:42:40,272 [4012] WARN  NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.Threading.ThreadAbortException: Thread was being aborted.
    at System.DirectoryServices.Interop.UnsafeNativeMethods.IntADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
    at System.DirectoryServices.Interop.UnsafeNativeMethods.ADsOpenObject(String path, String userName, String password, Int32 flags, Guid& iid, Object& ppObject)
    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_NativeObject()
    at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
    at ExternalCommonLibrary.AuthorisationManager.GetUserByGUID(String usersGUID) in C:\RentSmartSoftware\SmartCheck\ExternalCommonLibrary\AuthorisationManager.cs:line 300
    at SmartCheckBusinessObject.Journal.SetupUser(String guid) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 131
    at SmartCheckBusinessObject.Journal.set_CreatedByUserGuid(String value) in C:\RentSmartSoftware\SmartCheck\SmartCheckBusinessObject\Journal.cs:line 83
    at NHibernate.Persister.GetSetHelper_SmartCheckBusinessObject_Journal.SetPropertyValues(Object obj, Object[] values)
    at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Persister\AbstractEntityPersister.cs:line 182
    at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 2757
    at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 373
    at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 355
    at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 168
    at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object[] ids, IType[] types) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1258
    at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\Loader.cs:line 1224
    at NHibernate.Loader.CollectionLoader.Initialize(Object id, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Loader\CollectionLoader.cs:line 75
    at NHibernate.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) in C:\RentSmartSoftware\nhibernate\src\NHibernate\Collection\AbstractCollectionPersister.cs:line 286 
					
  
						
					 |