Exception Description:
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.servicemodel. (C:\WINDOWS\Microsoft.NET\Framework\v2. 0.50727 134)
Or
Solution:
1. Open File C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config
2. Find the node configsections
3, add under Node <configSections>
<sectiongroupname= "System.ServiceModel"type= "System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, version=3.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "> < Sectionname= "Behaviors"type= "System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Bindings"type= "System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Client"type= "System.ServiceModel.Configuration.ClientSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Comcontracts"type= "System.ServiceModel.Configuration.ComContractsSection, System.ServiceModel, version=3.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Commonbehaviors"type= "System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, version=3.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "allowdefinition= "MachineOnly"allowexedefinition= "MachineOnly"/> < Sectionname= "Diagnostics"type= "System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Extensions"type= "System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Machinesettings"type= "System.ServiceModel.Configuration.MachineSettingsSection, Smdiagnostics, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "allowdefinition= "MachineOnly"allowexedefinition= "MachineOnly"/> < Sectionname= "serviceHostingEnvironment"type= "System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Services"type= "System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> </sectiongroup> <sectiongroupname= "System.serviceModel.activation"type= "System.ServiceModel.Activation.Configuration.ServiceModelActivationSectionGroup, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "> < Sectionname= "Diagnostics"type= "System.ServiceModel.Activation.Configuration.DiagnosticSection, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Net.pipe"type= "System.ServiceModel.Activation.Configuration.NetPipeSection, System.ServiceModel, version=3.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "/> < Sectionname= "Net.TCP"type= "System.ServiceModel.Activation.Configuration.NetTcpSection, System.ServiceModel, version=3.0.0.0, culture= Neutral, publickeytoken=b77a5c561934e089 "/> </sectiongroup>
[Go]sql server is not open, unrecognized configuration section System.ServiceModel solution