Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Web Service Call From Login.aspx (Unauthorized)

$
0
0

I have a login page using forms authentication that is working great.  I am trying to add a new account database call.  I have a jQuery modal that collects and validates the new account information and I just want to call a web service using the ajax call.  Every time I reference the web method it gives me a 401 Unauthorized error.  I know it has to do with the forms authentication.  Any ideas?  Here is my web config:

<?xml version="1.0" encoding="utf-8"?><configuration><appSettings><add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /></appSettings><location path="DataAccessLayer.asmx"><system.web><authorization><allow users ="*" /></authorization></system.web></location><system.web><compilation debug="true" targetFramework="4.5" /><httpRuntime targetFramework="4.5" /><authentication mode="Forms"><forms name=".LoginForm" loginUrl="Login.aspx" protection="All" path="/" timeout="30" /></authentication><authorization><deny users="?" /><allow users="*" /></authorization><pages><controls><add tagPrefix="ajax" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls></pages></system.web><system.web.extensions><scripting><webServices><jsonSerialization maxJsonLength="2147483644"/></webServices></scripting></system.web.extensions></configuration>


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>