Thread was being Aborted..

  • Does anyone know how to fix this? 
     
     
     

    Server Error in '/' Application.

    Thread was being aborted.

    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.Threading.ThreadAbortException: Thread was being aborted.

    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:

    [ThreadAbortException: Thread was being aborted.]
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
       System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
       CommunityServer.Components.SingletonProviderHelper.LoadInstance(String ProviderKey, Type defaultType) +141
       CommunityServer.Components.UrlReWriteProvider..cctor() +26
    
    [TypeInitializationException: The type initializer for 'CommunityServer.Components.UrlReWriteProvider' threw an exception.]
       CommunityServer.Components.UrlReWriteProvider.Instance() +0
       CommunityServer.CSHttpModule.ReWriteUrl(HttpContext context) +23
       CommunityServer.Components.CSContext.Create(HttpContext context, UrlReWriterDelegate rewriter) +50
       CommunityServer.CSHttpModule.Application_BeginRequest(Object source, EventArgs e) +249
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    
  • Could you please give us a little details on how/when this is happening.

    Also, which version of CS are you using? Finally, are you using virtualization (eg, are you running more than one CS site with a single install).

    -Scott

  • I'm running CS 2.0 on ASP.net 2.0.
    I have no idea how this happened. But after deleted two other folders on my FTP (non-cs-related files) and refreshed couple times, it's now back up and running.
     
    Thanks
    Jakk
  • This Error has happened to me some times also.

    I do not know the origin, suddenly when I open the application in my webb-browser it will not run, instead I got this error-message. I suspect that someone has tried to send a forbidden message, I have some discussions where anonnymous can post directly.

    I have learned how to deal with this: I remove (or rename) the web.config file, start the application, then I put back the web.config file, and the application is running without problems again.

    I don“t know why this works, but it does every time!

    I would like to know the origin of this error so I can prevent it from happening in the future.

  • It happened again...
     
    I'll try your trick.
  • This has been happening to me as well. Does anyone know what is causing it?

    I am running asp1.1

     

    EDIT: I am using your trick as well and it works after I do it twice...

  • Thank you so much for the fix!!!!!! Does anybody yet have an idea as to what is causing this?

    the hiking dude PortlandHikers.com
  • this happens to me all the time.  I just modify the web.config (or refresh the app pool) to fix this.
  • Scott Watermasysk:

    Could you please give us a little details on how/when this is happening.

    Also, which version of CS are you using? Finally, are you using virtualization (eg, are you running more than one CS site with a single install).

    -Scott

    Hi Scott,

    it happend also to me, after the Server has been shutdown by the hoster. I'm using CS 2.0 (ASP.net 1.1), single install.The workaround with removing the communityserver.config, restart, and copyiing the file back to the root worked also in my case.

    Michael

    skandinavien-treffpunkt: German Forum about Scandinavia - using CS 2.1:
  • I'm experiencing the same problem ...
  • This Error has happened to me some times also. I'm used CS 2.0 and ASP.NET 1.1
    http://mykia.ru
  • I've the same problem.

     I'm running CS 2.0 on ASP.NET 2.0.

    Any ideas?

    Thanks,

    Bye

  • Blizzy,

    I am running CS 2.1 under .NET 2.0 and got the Thread was being Aborted" error. I changed the web.config as you suggested and the error went away.

    Thanks.

    Tod Birdsall, MCSD for .NET blog: http://tod1d.net
  • Hello!

    I saw ton of posts here about this error. Of course, I got it too.

    First time I installed CS2.1SP1  in my development computer (XPSP2/ASP.NET 2.0) all works fine. I made here another site for debugging purposes, and this is fine again.

    But when I'd try to install CS2.1SP1 on to public server, I got the Message (Yes, you know what it is)

    I tried to hange web.config, restart app/iis, but nothing can help me. Then I'd try to give more file-access permissions to worker process, and it is'nt works.

    An now...... solution! When i'd put my worker process account into the "Administrators" user group then my error gone., and site starts working.

    The Question is : what a hell is going with user rights ? I think CS needs some priviledges that has administrator, but i don't know witch of them.

    Any suggestions?

     

    here an browser's error  maessage:

    Critical Error: SiteUrls.Config

    The file containing the SiteUrl Data could not be loaded.

    Please contact your CommunityServer administrator. A technical explanation of why this error is caused is below.


     

    Community Server expects to find a valid XML file containing all of the links for a community. By default, this file is located at the root of the with the name SiteUrls.config. 

    A common error is to included unescaped XML characters, such as "&" when defining a querystring.

    If available, the location of the error will be listed below:

    Exception has been thrown by the target of an invocation.

    Unable to generate a temporary class (result=1). error CS2001: Source file 'J:\WINDOWS\TEMP\esnuj6ly.0.cs' could not be found error CS2008: No inputs specified

    here stack trace:

     

    Exception information:

    Exception type: ThreadAbortException

    Exception message: Thread was being aborted.

     

    Request information:

    Request URL: http://localhost:8008/Themes/default/style/default.aspx

    Request path: /Themes/default/style/default.aspx

    User host address: 127.0.0.1

    User:

    Is authenticated: False

    Authentication Type:

    Thread account name: MSD\ASPNET_WP_MSD_DL

     

    Thread information:

    Thread ID: 5

    Thread account name: MSD\ASPNET_WP_MSD_DL

    Is impersonating: False

    Stack trace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)

    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)

    at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)

    at System.Activator.CreateInstance(Type type, Boolean nonPublic)

    at CommunityServer.Components.SingletonProviderHelper.LoadInstance(String ProviderKey, Type defaultType)

    at CommunityServer.Components.UrlReWriteProvider..cctor()

     

    Mischael A. Gerasimov MetaSystem Russia www.openrazum.ru
  • Ok, I figured out it.

    Simply your worker process hav'nt a right to write Wink a file to Windows\Temp when it tries to compile code.

    I set permissions to "modify" my temp folder, and CS starts sucessfully.

     

    Mischael A. Gerasimov MetaSystem Russia www.openrazum.ru