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.
Tuhin PaulPosted Jan 15, 2025, 6:30 PM
web.config file
virtual path in the web.config file matches the application name on Somee.com
NakhatraPosted Jan 15, 2025, 4:21 PM
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
Emmmanuel FIADUFEPosted Jan 15, 2025, 8:42 AM
Hello team,
I did everything possible but nothing is working ,
Can someone connect with me so that we fix the problem
Emmmanuel FIADUFEPosted Dec 27, 2024, 7:14 PM
Thank team for your swift response, I will check and revert please
Jignesh KumarPosted Dec 27, 2024, 5:00 AM
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 MathewsPosted Dec 27, 2024, 3:08 AM
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: This allows access to all users. Adjust it according to your application's requirements.5. Routing Issues
RouteConfig.csfile:6. Application Pool Configuration
7. Contact Some Support
After making these adjustments, re-publish your application and test again.