Last post Sep 14, 2017 06:00 AM by Ridzi
Sep 13, 2017 08:56 AM|Ridzi|LINK
I have created an application in MVC. when I run the application it starts with a login screen and runs properly URL
the URL is:
but when I publish and deploy my application on localhost, the error occurs "server error in '/' application"
and URL is:
Please help if anyone have any idea.
Sep 14, 2017 04:48 AM|HostingASPNet|LINK
To run one application from different URLs you should use relative paths. You should check your paths and makes them relative.
Sep 14, 2017 05:44 AM|Jean Sun|LINK
Please check if you have enabled some kind of authentication on your IIS. It seems that you have enabled the form authentication and set the login url to ~/login.aspx on your local IIS.
Since you have already enabled the authentication on your MVC application, I think you can only enable the anonymous authentication on local IIS and disable other authentication.
About the IIS authentication :
Sep 14, 2017 06:00 AM|Ridzi|LINK
Thank for your response.
have already enabled the authentication on your MVC application
yes, you are right I used
<form protection="Encryption" enableCrossAppRedirects="true"></form>
in web.config. I just comment it out and it works fine on localhost.