Click here to Skip to main content
15,890,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have publish a MVC web application in Server along with Windows authentication, but when view site URL from local Machine, it asked for credential.
Can any one suggest steps to deploy on IIS.

Thanks in advance.

What I have tried:

I have made in
& web config

<authentication mode="Windows"/>

  <authorization>
    <deny users="?"/>
  </authorization>

& appsetting
<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>
Posted
Updated 21-May-18 22:11pm
Comments
F-ES Sitecore 22-May-18 4:16am    
There are various requirements to using Windows Authentication so google them to make sure you meet them. Your machine has to be on the same domain as the server, it has to be an intranet (no "." in the server host name) and so on.
Richard Deeming 22-May-18 11:15am    
"when view site URL from local Machine, it asked for credential"

Are you using "localhost", or the full machine name? If it's the latter, you might be hitting the "loopback" problem:
You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version[^]

1 solution

hi

try to Select the project name in Solution Explorer and then in the Property Explorer, click to enable Windows Authentication and disable anonymous authentication

it worked for me.
 
Share this answer
 
Comments
Mukesh Ghosh 22-May-18 4:27am    
I have done that . Currently getting error like
Some or all identity references could not be translated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900