home / software / tips and tricks / When I updated the Nuget Packages on a project and deployed to IIS, I am getting an error Says "Failed to load resource: the server responded with a status of 403 (Forbidden)".

When I updated the Nuget Packages on a project and deployed to IIS, I am getting an error Says "Failed to load resource: the server responded with a status of 403 (Forbidden)".

Updated:  02/13/2016 07:02 AM
Author:  Shiju Mathews

Status:    Resolved.


After the deployment I noticed that all CSS are missing and the console says "Failed to load resource: the server responded with a status of 403 (Forbidden)" for the file /content/css?v=emtdknwufop9lcoyfeugf9mvq6thsj4vx33lh1wjdi81. In a long story short, I did the following changes and fixed the issue.

Changed the dode 'BundleConfig.cs' from

to


Also on '_Layout.cshtml', changed the code from

to


and the issue is fixed.
Tags: When I updated the Nuget Packages on a project and deployed to IIS I am getting an error Says "Failed to load resource: the server responded with a status of 403 (Forbidden)".
Updated on: April 2024