Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 06, 2013 04:57 PM by johnjohn123123
Jan 03, 2013 09:04 AM|LINK
I am working on an asp.net mvc web application, but i need to change the authentication type from form to windows, so is there a way to do so, and if i am publishing the application using IIS will my change work for IIS?
Jan 03, 2013 09:28 AM|LINK
check your web.config
<forms loginUrl="~/Account/LogOn" timeout="2880" />
Jan 03, 2013 11:02 AM|LINK
i have enabled the windows authentication
and i disable Anonymous authentication
on the IIS manager, but when i run my mvc application i got the following error:-
error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory
or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
Jan 03, 2013 11:13 AM|LINK
Perhaps this is your solution-
Jan 03, 2013 11:51 AM|LINK
i have already made all these setting in the resolution sections , but the error is still ocuuring
Jan 03, 2013 12:09 PM|LINK
Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server
Jan 03, 2013 12:38 PM|LINK
i should have the premission ,,, but how can i check this?
Jan 03, 2013 12:47 PM|LINK
with windows explorer
Jan 04, 2013 12:03 AM|LINK
Jan 04, 2013 02:20 AM|LINK
You need to install add Windows Authentication to the IIS role through server manager if you didn't do it previously.
In order to check whether or not you have permission to view the directory based on the credentials yous supplied -
Also, try looking at this: http://forums.asp.net/t/1260071.aspx/1 (it is a similar situation)
With Kind Regards,