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)
-
1
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].
-
0
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.
- Connect remotely to the server.
- Paste the generated "publish" into the server files
- Open IIS
- 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.
-
0
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
-
1
-
0
-
1
Is it possible to share the Log file of the deployed app (you can find it under App_Data folder) with [email protected] ?
-
0
We have just sent it. Thanks
-
0
Hi @alramz
We have replied to your email. We cna continue via email for this case.