2013-04-05 2 views
0

다른 웹 서비스에서 웹 서비스를 호출 할 수 있습니까? 내가 아래 에로을 웹 참조를 추가하고 점점 시도다른 .asmx 웹 서비스에서 .asmx 웹 서비스를 호출

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) 

PLS는

+0

두 서비스가 같은 위치에 있습니까? 또는 사이트에? –

+0

@ChamikaSandamal 두 서버 모두 같은 컴퓨터에서 호스팅되며 동일한 사이트 내에 동일한 IIS – CSharped

+0

이 있습니까? –

답변

0

클래스를 분리하는 방법을 추출 도움이됩니다. 해당 클래스의 공통 메소드에 액세스 할 수 있습니다. 그래서 두 서비스 모두 원하는 방법을 공유 할 수 있습니다.

관련 문제