![](/img/trans.png)
[英]Loading System.ServiceModel configuration section using ConfigurationManager
[英]The configuration section 'system.ServiceModel' cannot be read, missing section declaration
我正在遵循http://docs.nuget.org/create/hosting-your-own-nuget-feeds中的文檔來設置Nuget服務器。 我已經按照所有步驟操作,但是運行VS時出現上述錯誤。 由於錯誤,我缺少了一個部分,但是我缺少了哪個部分以及如何添加該部分。 我已經搜索了堆棧和谷歌,一直找不到答案。 這是web.config的代碼
?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5.2"/>
<httpRuntime targetFramework="4.5.2"/>
</system.web>
<appSettings>
<add key ="packagePath" value="E:\HostedNugetServer"/>
</appSettings>
<system.ServiceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
</system.ServiceModel>
</configuration>
這可能只是您的帖子中的錯字,但您的系統服務模型聲明應在serviceModel上使用小寫的“ s”。
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.