2013-04-05 213 views
0

我們可以從另一個Web服務調用Web服務。從另一個.asmx Web服務調用.asmx Web服務

我已經嘗試添加Web引用,並獲得以下埃羅

System.Configuration.ConfigurationErrorsException was caught 
    Message=The current configuration system does not support user-scoped settings. 
    Source=System 
    BareMessage=The current configuration system does not support user-scoped settings. 
    Line=0 
    StackTrace: 
     at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties) 
     at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) 
     at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) 
     at System.Configuration.SettingsBase.get_Item(String propertyName) 
     at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName) 
     at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName) 

請幫助

+0

這兩個服務都在同一位置嗎?或網站? – 2013-04-05 11:03:32

+0

@ChamikaSandamal這兩個系列將被託管在同一臺機器中,並且在同一個站點內同一個IIS – CSharped 2013-04-05 11:04:11

+0

? – 2013-04-05 11:05:30

回答

0

提取方法單獨的類。並訪問該類的常用方法。所以這兩種服務都可以共享您想要的方法。