c# - Problem accessing .NET web service from Windows app -
i have ajax web application. asp pages accessing various web services part of application using standard microsoft .net ajax extension apis.
now, have call of web services windows app.
it works when add web reference project on local development machine.
but when try access web service production, redirected login page.
i using windows xp , iis5.1 in development , windows 7/iis 7 in production.
this line web.config:
<authentication mode="forms"> <forms name=".localcookies" loginurl="login.aspx" protection="all" timeout="60" path="/"/> </authentication>
i've tried set mode "none" getting windows authentication screen.
any idea how change configurations?
if can away no security on web services (e.g. internal server), change site's security settings allow anonymous access web service.
<!-- put beneath closing </system.web> tag --> <location path="yourwebservice.asmx" > <system.web> <authorization> <allow users="?" /> </authorization> </system.web> </location>
Comments
Post a Comment