2013-04-05 307 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

提取方法单独的类。并访问该类的常用方法。所以这两种服务都可以共享您想要的方法。