我將我的C#web應用程序上傳到GoDaddy,並在訪問我網站的某些區域時出現Web.config錯誤。如何修復web.config中的重複輸入錯誤
我沒有得到在我的本地環境中運行相同的web.config和代碼的錯誤。
描述:
錯誤該請求提供服務所需的配置文件的處理過程中出現。請查看下面的具體錯誤細節並適當修改您的配置文件。
解析器錯誤消息:條目'xxxxx'已被添加。
在我的配置文件中。這是我認爲會導致錯誤的部分。
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="paypal" type="PayPal.Manager.SDKConfigHandler, PayPalCoreSDK" requirePermission="false" />
</configSections>
<paypal>
<settings>
<add name="endpoint" value="https://api.sandbox.paypal.com"/>
<add name="connectionTimeout" value="360000"/>
<add name="requestRetries" value="1"/>
<add name="ClientID" value="id"/>
<add name="ClientSecret" value="secret"/>
</settings>
</paypal>
<configuration>
的錯誤信息提示,我在我的web.config重複值......每一個出現錯誤刪除了建議重複條目,然後重試時間。
但是,錯誤不斷髮生。
我已經看到後續建議在另一篇文章的解決方案,但我不知道把它們放在哪裏。
<remove name="xxx" />
<clear />
您能否請幫助。
讓您的客戶端ID和客戶端密鑰關閉!如果你發佈它們,它們不再是祕密!刪除它並在沒有它們的情況下重新提交。 – DLeh 2014-11-14 15:03:33
你真的認爲它是真實的嗎? – user1526912 2014-11-14 15:12:47
只是在尋找你。如果它是真實的,現在它保存在stackoverflow的歷史中。 – DLeh 2014-11-14 15:29:34