2017-06-23 40 views
0

我想創建一個WCF服務應用程序使用Visual Studio 2010中創建項目後我有2個配置文件: 1. Web.Debug.config 2. Web.Release.config是Web.config文件WCF服務應用程序項目不正確的?

這是代碼文件。

<?xml version="1.0"?> 

    <!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> 

    <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> 


    </configuration> 

當我嘗試添加任何元素或屬性時,它會給出以下警告。

Could not find schema information for the attribute 'address'. 
Could not find schema information for the attribute 'address'. 
Could not find schema information for the attribute 'binding'. 
Could not find schema information for the attribute 'binding'. 
Could not find schema information for the attribute 'contract'. 
Could not find schema information for the attribute 'contract'. 
Could not find schema information for the attribute 'name'. 
Could not find schema information for the element 'endpoint'. 
Could not find schema information for the element 'endpoint'. 
Could not find schema information for the element 'service'. 
Could not find schema information for the element 'services'. 

我在做什麼錯? 有什麼要添加或編輯。我正在嘗試創建一個非常簡單的WCF服務應用程序。

回答

0

如果是正在使用WCF主​​機,那麼你錯過了整個system.serviceModel配置文件。你可能會通過創建一個新的WCF服務或至少使用Tools|Wcf Configuration Editor再生的文件的更好。我認爲你搬來搬去一些東西,你的文件已被放錯了地方。

+0

謝謝!我很愚蠢。他們是3個配置文件。第三個我沒有檢查有serviceModel。不管怎麼說,還是要謝謝你 ! – Desperado

相關問題