Adding reference to new class library causes error 403 Forbidden

Start Over 0 Reputation points
2023-12-09T02:41:54.5633333+00:00

I created a new C# class library project (which using GrapQL Client to make some GraphQL API calls), then added reference into my existing C# Web project in the same solution. Everything works fine locally from Visual Studio. But after using DevOps to deploy it to test server, we cannot get our landing page, got Server error: 403 - Forbidden: Access is denied. It looks like site is not served at all.

Any suggestions greatly appreciated!

Windows for business | Windows Server | Devices and deployment | Configure application groups
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2023-12-11T14:13:28.2433333+00:00

    Is that a 403.2 error? If you uploaded a new dll to the site, check the security permissions and verify that they match the permissions on other files.

    Implement IIS's failed request tracing and capture the 403 failure.

    https://www.bing.com/search?q=iis+failed+request+tracing

    When you double click on the .xml file it will open in Edge. In the settings menu, select "Reload in Internet Explorer mode" to view the data.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.