Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Redirecting Issues after Deployment #11579


User avatar
0
alramz created

Hi,

While testing in development, our website runs just fine. However, when deployed onto IIS, we constantly get redirected back to the login page (/Account/Login?ReturnUrl=%2FApp). We've checked numerous possible sources of error, including config files, authorizations, and routing, but are not able to find the cause of the issue.


8 Answer(s)
  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi @alramz

    Is it possible to share the live app URL and steps to reproduce this case ? If you want to keep it private, you can send an email to [email protected].

  • User Avatar
    0
    alramz created

    Hi @alramz

    Is it possible to share the live app URL and steps to reproduce this case ? If you want to keep it private, you can send an email to [email protected].

    Hello, Thanks for replying. The app has not been deployed to the internet, but rather to an IP address that is only available on our local network.

    Here are the steps we followed: We have published the Web.MVC project through Visual Studio with the following settings: Then, we followed the following steps which reproduced the redirection issue.

    1. Connect remotely to the server.
    2. Paste the generated "publish" into the server files
    3. Open IIS
    4. Create new subsite and choose the location of where the "publish" folder is stored

    After following the previous steps, we were able to access the website that have been made using ASP.NET Zero. However, we cannot get past the login page when logging in with the default admin account. Running the solution locally through Visual Studio works completely fine though. We checked with several incorrect credentials, and it produces an incorrect username/password error. This shows that authentication works fine, however, the page keeps redirecting to the login page when we enter the correct credentials.

  • User Avatar
    0
    alramz created

    Hi @alramz

    Is it possible to share the live app URL and steps to reproduce this case ? If you want to keep it private, you can send an email to [email protected].

    Gentle reminder of the previous request. Thanks

  • User Avatar
    1
    m.aliozkaya created
    Support Team

    Hi @alramz,

    Could you check your cookies? Maybe it's related to cookies

  • User Avatar
    0
    alramz created

    Hi @alramz,

    Could you check your cookies? Maybe it's related to cookies

    Hello, Yes, we have tried clearing cookies and cache before running the solution but that did not fix it.

  • User Avatar
    1
    ismcagdas created
    Support Team

    Is it possible to share the Log file of the deployed app (you can find it under App_Data folder) with [email protected] ?

  • User Avatar
    0
    alramz created

    We have just sent it. Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @alramz

    We have replied to your email. We cna continue via email for this case.