asp.net - NotFound net::ERR_TOO_MANY_REDIRECTS on Chrome, SEC7127: Redirect was blocked for CORS request on IE -


i have been trying host website locally on iis , when do, entire content not load up.

basically have 3 projects in vs 2013 solution:

website - main website

adminpanel - web cms

webservice - the underlying web service(s) .asmx

so website , adminpanel above refer web service.

website hosted on xxx.com.au adminpanel on adminpanel.xxx.com.au\admin webservice on adminpanel.xxx.com.au\webservice 

the above set works absolutely fine on production server, , brought in bring in-house , not have support or handover predecessors

i have tried couple of things in past 5-6 days in vain, hope or point out in right direction..

i have set \drivers\etc\hosts file loopback address points xxx.com.au , adminpanel.xxx.com.au

within web.config website project if point web service on live server - site loads fine, if point local one, doesn't.

so tried hosting service in different directory on live server, adminpanel.xxx.com.au\webs , pointed - still failed.

the code/compiled version of project on live server same have me, on trying these steps.

these of issues on console (the page loads without menus , other contents) - being read/fetched after making calls web service returns menu items, events , other information populated on database:

chrome: http://www.abc.com.au/notfound net::err_too_many_redirects

firefox/firebug: nothing..!

ie 11: sec7127: redirect blocked cors request

so followed couple of links/tutorials , helpers on internet, , added couple of headers web.config files

<httpprotocol> <customheaders> <add name="access-control-allow-origin" value="*"/> <add name="access-control-allow-methods" value="post, put, delete, get, options, head"/> <add name="access-control-allow-headers" value="content-type"/> </customheaders> </httpprotocol> 

and variations above http://encosia.com/using-cors-to-access-asp-net-services-across-domains/ , other links

  • also checked http redirect settings etc.

  • even if copy contents of adminpanel.xxx.com.au\webservice adminpanel.xxx.com.au\webs, , changing references gives same errors

so not sure need set or doing wrong? have tried out numbers pointers available out there relating these - none of has worked till now.

nevermind, solved myself.. 1 of connection strings entity framework , datasource, had hook sql server's port 1433!!!

the architecture on 1 else, had use older version of iis point out right error messages

thanks


Comments