0

My Code : <authentication mode="Forms"> <forms loginUrl="~/CRMLogin/LogOn" timeout="2880"/> </authentication>

I want this : http://localhost:13664/CRMLogin/LogOn?ReturnUrl=%2fCRM%2fAddNewCRM

But I am getting this: http://localhost:12340/Account/Login?ReturnUrl=%2fCRM%2fAddNewCRM

I have written in code loginUrl="~/CRMLogin/LogOn" but also why I am getting this Account/Login. I don't know. I tried same in another project but it works fine there. Please help me.

2 Answers 2

2

Try adding the following key in your <appSettings>:

<appSettings>
    <add key="loginUrl" value="~/CRMLogin/LogOn" />
    ...
</appSettings>
Sign up to request clarification or add additional context in comments.

Comments

0

Try following this solution, it should prevent the auto redirect to the account controller

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.