Can I allow Anonymous access to some pages in RIA Services website?


hi,

i have silverlight 4 solution using wcf ria services v1.0 sp1.  development done , in process of moving production environment.

now, production environment load balanced.  1 of requirements load balancer there resource in each website can "pinged" make sure site alive.  created new "ping.aspx" page , put in website hosts silverlight application , ria services.  good.

however, site uses windows authentication , allow access application if user in roles.  controlled web.config here:

<system.web>    <rolemanager enabled="true" defaultprovider="aspnetwindowstokenroleprovider"/>    <profile enabled="false" />    <authentication mode="windows" />    <authorization>      <allow roles="isdevelopment, agent, superuser"/>      <deny users="*" />    </authorization>  </system.web>

so first time tried hit ping.aspx page got login challenge , prompted windows credentials.  ah.  not problem, need <location> ping.aspx page allow access resource.  ie:

<location path="ping.aspx">    <system.web>      <authorization>        <allow users="*" />      </authorization>    </system.web>  </location>

however, no difference.  still challenged credentials when hit ping.aspx page.

then remembered had windows authentication enabled site.  maybe have enable anonymous authentication site...so went iis , did that.

now i've done can hit ping.aspx page without providing credentials.

but none of services work.  when looked @ exception logs see this:

system.servicemodel.serviceactivationexception: service '/services/quotes-domainservices-web-accountmanagersdomainservice.svc' cannot activated due exception during compilation. exception message is: iis specified authentication schemes 'integratedwindowsauthentication, anonymous', binding supports specification of 1 authentication scheme. valid authentication schemes digest, negotiate, ntlm, basic, or anonymous. change iis settings single authentication scheme used.. ---> system.invalidoperationexception: iis specified authentication schemes 'integratedwindowsauthentication, anonymous', binding supports specification of 1 authentication scheme. valid authentication schemes digest, negotiate, ntlm, basic, or anonymous. change iis settings single authentication scheme used.

so looks can enable 1 type of authentication mechanism on site???

am missing something!?!?!?

apologies if isn't ria services specific problem!

thanks,

paul

 


 

hi,

here similar topic you.

http://stackoverflow.com/questions/2730137/mixing-anonymous-authentication-with-windows-authentication-in-iis-7

anyway, issue seems not real question in silverlight, can also try more in iis forum.

http://forums.iis.net/



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........