Visual Studio Development Server (2010) and NTLM authorization

I am using Visual Studio Development Server (Visual Basic 2010) and it works fine. Now I have enabled NTLM authorization because I want to test the site using a different user account. Now when I try to access the website, I always get the following error page:

Server error in application "/".

HTTP Error 403 - Forbidden.


Version Information: ASP.NET Development Server 10.0.0.0

I use a test account, which is a regular user in our domain. I already set the permissions in my project folder to Full Control for this user, but this does not help. Any further ideas? Thanks!

+6
source share
2 answers

Another option that does not require running VS as an administrator or setting up local IIS is to ensure that Visual Studio 2010 is in Service Pack 1, should go to IIS Express, available here:

http://www.microsoft.com/download/en/details.aspx?id=1038

This is a version of IIS that runs in user mode, which can handle things like authentication, requests for remote hosts, etc. In short, you have a full request, as in full IIS. After installation, when you right-click on a web project, a new menu item "Use IIS Express" will appear. This will allow you to configure the project to use IIS express and configure the bindings for it.

More information about ScottGu here: http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx

+2
source

I think this is happening because the studio development server is very low. I mean, it doesn’t have all the features like regular iis. so I made a workaround: (of course, you should have an iis server, which you will agree to. I am using iis 7 on win 7)

  • in programs and functions - the ability to turn on or off the Internet service windows β†’ World Wide Web services β†’ security -> filtering requests
  • in iis create a new site than in the authentication settings, activate Windows authentication and disable anonymous authentication
  • run the studio as an administrator in the project properties -> web selection use the local iis server selection server that you created above, click create virtual directory
  • (optional) in the add web configuration, this is in the system.web section
0
source

Source: https://habr.com/ru/post/894613/


All Articles