lis*_*iss 5 c# asp.net wcf web-services visual-studio-2012
我正在尝试添加服务参考,然后我收到此错误.
"参数'sectionGroupName'无效参数名称:sectionGrouName"
请帮忙.谢谢.
我也有过这个。我的程序崩溃并显示以下消息:
PS C:\Program Files\Inicorp\Server> .\server.exe
System.ArgumentException: The parameter 'sectionGroupName' is invalid.
Parameter name: sectionGroupName
at System.Configuration.MgmtConfigurationRecord.GetSectionGroup(String configKey)
at System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup(Configuration config)
at (our code)
at (our code)
at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
at (our code)
Run Code Online (Sandbox Code Playgroud)
是的,这可能是一个编程错误,就像“使用 ConfigurationManager 加载 System.ServiceModel 配置部分”中一样,但我们假设它不是。你能做什么?
找到您的 server.exe.config 文件(如果不存在则创建它)并修改或创建该部分并添加以下行:
<startup>
<supportedRuntime version="v4.0" />
</startup>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1942 次 |
| 最近记录: |