Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Windows 10: Access to localhost was denied (.NET, MSSQL Server)

Writer Matthew Martinez

I know this has been asked a thousand times already but I nothing worked for me so posting for one more time. Hope to get something that works for me!

I have a .NET 4.0 API (with MSSQL Server database) developed and running on Windows 10 (localhost). Even a week ago, everything was working absolutely fine but suddenly I am getting the following error:

Access to localhost was denied
You don't have authorisation to view this page.
HTTP ERROR 403

I tried every possible solution that I could find. A couple of days ago after adding a new login (APPPOOL\Tourism API) solved the issue. But from yesterday the above error is all over the place! Nothing helps starting from restarting, SQL Server login, IIS reset, Adding the APP Pool to permission and giving full control to it!

The last 3 records from exec sp_readerrorlog

2022-03-07 11:43:28.170 spid65 Starting up database 'indiatourism'.
2022-03-07 11:43:29.820 spid65 Parallel redo is started for database 'indiatourism' with worker pool size [2].
2022-03-07 11:43:30.060 spid65 Parallel redo is shutdown for database 'indiatourism' with worker pool size [2].

I was unable to find any real solution to the above.

Nevertheless, I continued running API endpoints (e.g. or ) after the time recorded in the last record above. Every time I ended up on the 403 error. No log is however added since 11:43:30.060, which means the request is being terminated even before reaching the point where MSSQL could be accessed!

Dev environment: OS: Windows 10 Visual Studio: 2022 Community Edition Version: SQL Server Management Studio 18.9.2

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy