Hello Team,
I'm trying to publish my MVC Project on Somee.com and after publishing, this is the erorr that I got.
Server Error 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 27, 2024, 12:00 AM EST
Hello Emmanuel,
The 403 Forbidden: Access is denied error indicates that the necessary permissions are not in place, resulting in this error. Below are some common reasons for the 403 error and steps to resolve it if you're using IIS:
If the issue persists, go to the published server, verify the index.cshtml file, and try using the Browse option from the server to test access.
Jaish MathewsRank #225 · 11K reputationPosted Dec 26, 2024, 10:08 PM EST
It is challenging to pinpoint the exact root cause at this stage. However, I recommend the following steps to investigate further:
The
403 - Forbiddenerror typically indicates an issue with permissions or the configuration of your deployed ASP.NET MVC project. Here's how you can troubleshoot and resolve this:1. Verify Your Deployment Files
bindirectory andweb.config, to the server.Default.aspxor the configured route in yourweb.config) exists on the server.2. Check IIS Configuration on Somee.com
Home/Index(if your default route is configured asHomecontroller andIndexaction).403error.3. Set Correct Permissions
4. Verify the
web.configFileweb.configfile is correctly configured and deployed. A misconfiguredweb.configcould cause access denial.settings:5. Routing Issues
RouteConfig.csfile:routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } );6. Application Pool Configuration
7. Contact Some Support
After making these adjustments, re-publish your application and test again.
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Dec 27, 2024, 2:14 PM EST
Thank team for your swift response, I will check and revert please
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Jan 15, 2025, 3:42 AM EST
Hello team,
I did everything possible but nothing is working ,
Can someone connect with me so that we fix the problem
Nakhatra9 reputationPosted Jan 15, 2025, 11:21 AM EST
First which server useing if windows then what is the iis version used .MVC suport later IIS 6.0 . second folder should conver to web app . annonumousauthentication enabled and allow user full control ,follow the bellow link
https://stackoverflow.com/questions/59040110/how-to-set-up-iis-10-for-mvc-5
Tuhin PaulRank #7 · 71.9K reputationPosted Jan 15, 2025, 1:30 PM EST
web.config file
virtual path in the web.config file matches the application name on Somee.com