SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Unhandled exception terminated SharpDevelop - at app startup

Last post 11-25-2008 9:38 PM by adevaratu. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-18-2008 8:42 PM

    Unhandled exception terminated SharpDevelop - at app startup

    Hello!

    I have installed .NET Framework  3.5 SP1

    Previously i have installed .NET 1.1 and 2.0

    If I install and run #develop  SharpDevelop_2.2.1.2648 - it run perfectly smooth.

    At setup and run  versions SharpDevelop_3.0.0.3437, SharpDevelop_3.0.0.3642, SharpDevelop_4.0.0.3642 on my home machine I get this message.

    On my work place i have installed identical config XP, XP SP3, .NET 3.5 SP1, #develop 3.0 and all together works just fine.

    So, please can u tell me why this config is not working my home computer.

     

    The error msg have error strings like this:

     ${res:ICSharpCode.SharpDevelop.ExceptionBox.Title} stand for Message Box Title, and so on for every string that it suppose to display on that window.

     

    Other info I can  provide:

    # of Exceps Thrown 21

    Throw to Chatch Depth / sec 0

    CLR Interop

    # of CCWs 1

    # of Stubs 180

    # of marshalling 4807

    # of import /export per sec  0

    CLR JIT

    # of Methods Jitted 137

    Total # of Bytes Jitted 13.244

     CLR Loading

    Current Classes Loaded  97

    Current Assemblies 13

    Bytes in Loader Heap 389.120

     CLR LocksAndThreads

    # current logical threads 2

    # current physical / recognized Threads 1

     


    Error code:

     SharpDevelop Version : 4.0.0.3642
    .NET Version         : 2.0.50727.3053
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 3
    Current culture      : Romanian (Romania) (ro-RO)
    Working Set Memory   : 21292kb
    GC Heap Memory       : 649kb

    Unhandled exception terminated SharpDevelop
    Exception thrown:
    System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 146)
       at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
       at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
       at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
       at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
       --- End of inner exception stack trace ---
       at System.Configuration.ConfigurationManager.PrepareConfigSystem()
       at System.Configuration.ConfigurationManager.GetSection(String sectionName)
       at System.Configuration.ConfigurationManager.get_AppSettings()
       at log4net.Util.SystemInfo.GetAppSetting(String key)

    ---- Recent log messages:
    Failed to append recent log messages.
    System.InvalidOperationException: Sequence contains no elements
       at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
       at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
       at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

    ---- Post-error application state information:

     

    So i post and line 146 mentioned on this error message:

     

     <system.serviceModel>
        <extensions>
          <behaviorExtensions>
            <add name="persistenceProvider" type="System.ServiceModel.Configuration.PersistenceProviderElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="workflowRuntime" type="System.ServiceModel.Configuration.WorkflowRuntimeElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </behaviorExtensions>
          <bindingElementExtensions>
            <add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="context" type="System.ServiceModel.Configuration.ContextBindingElementExtensionElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </bindingElementExtensions>
          <bindingExtensions>
            <add name="wsHttpContextBinding" type="System.ServiceModel.Configuration.WSHttpContextBindingCollectionElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="netTcpContextBinding" type="System.ServiceModel.Configuration.NetTcpContextBindingCollectionElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="basicHttpContextBinding" type="System.ServiceModel.Configuration.BasicHttpContextBindingCollectionElement, System.WorkflowServices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </bindingExtensions>
        </extensions>
        <client>
          <metadata>
            <policyImporters>
              <extension type="System.ServiceModel.Channels.ContextBindingElementImporter, system.workflowservices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
            </policyImporters>
            <wsdlImporters>
              <extension type="System.ServiceModel.Channels.ContextBindingElementImporter, system.workflowservices, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
            </wsdlImporters>
          </metadata>
        </client>
      </system.serviceModel>

  • 11-18-2008 9:21 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

    Googling the error returned this post. Did you try to run:

    ServiceModelReg.exe /i

  • 11-18-2008 9:51 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

    Thanks but:

     Windows cannot find "ServiceModelReg.exe"

  • 11-18-2008 9:53 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

     I will search for  this tool and hope to work...

    Thanks you.

  • 11-18-2008 9:57 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

     So i find this tool and response is not good;

     

    C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>Service
    ModelReg.exe /i
    Microsoft(R) Windows Communication Foundation Installation Utility
    [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
    Copyright (c) Microsoft Corporation.  All rights reserved.


    Error: Configuration system failed to initialize

    C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>

  • 11-18-2008 10:22 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

     It is posible to have on my home machine some win services stopped/manual  and automatic/started on work machine? (and for this reason work on my work place?)

  • 11-25-2008 9:38 PM In reply to

    Re: Unhandled exception terminated SharpDevelop - at app startup

     SO. I have  this resolved by myself: I just deleted <system.serviceModel> from machine.config and all new versions above 2.0 started perfectly :)

    Thanks for answers.

Page 1 of 1 (7 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.