A
ajg1211
Guest
Hello,
I'm trying to run the code for a website on an IIS Express server using Visual Studio.
The website requires authentication in order to view any pages on the website, so the user is immediately prompted for username and password upon starting the site. Upon correct login, the site fetches information from an SQL server and populates the page the user tried to load.
For some reason, when testing, Visual Studio seems to mess this authentication up.
I will try to login using correct credentials, which I have saved on the browser and which work for sure, and then after a few days I will be rejected from the website every time I try to login. When I uninstall then reinstall Visual Studio, it works again but only for a few days.
The website uses Basic Authentication. I cannot post the stack trace for security reasons.
The exact error I get is:
The target principal name is incorrect. Cannot generate SSPI context.
I have tried:
Here's a summary of the issue I explained above:
Does anyone have any ideas as to why this is the case?
Continue reading...
I'm trying to run the code for a website on an IIS Express server using Visual Studio.
The website requires authentication in order to view any pages on the website, so the user is immediately prompted for username and password upon starting the site. Upon correct login, the site fetches information from an SQL server and populates the page the user tried to load.
For some reason, when testing, Visual Studio seems to mess this authentication up.
I will try to login using correct credentials, which I have saved on the browser and which work for sure, and then after a few days I will be rejected from the website every time I try to login. When I uninstall then reinstall Visual Studio, it works again but only for a few days.
The website uses Basic Authentication. I cannot post the stack trace for security reasons.
The exact error I get is:
The target principal name is incorrect. Cannot generate SSPI context.
I have tried:
- using different browsers
- deleting all login credentials from Control Panel
- Extensively trouble-shooting the database and authentication services themselves (I'm confident the issue has to do with Visual Studio)
- searching pretty extensively on the internet (it seems this problem rarely has to do with Visual Studio, so I've not found much of the information helpful, since I'm feel somewhat confident in my case Visual Studio plays a part in the issue).
Here's a summary of the issue I explained above:
- Website rejects correct login credentials after working for a few days
- The same credentials are accepted again when Visual Studio is uninstalled and then reinstalled, then they stop working again after a few days.
- Error message: The target principal name is incorrect. Cannot generate SSPI context.
Does anyone have any ideas as to why this is the case?
Continue reading...