Error to load my page


Dear support,

I’m trying to load my page ( and I see this error: “You do not have permission to view this directory or page” that is displayed in the browser. Could you help me, please?


This appears to be resolved. Could you post your solution?


No, it’s not resolved, but I really don’t know what I need to do. I just upload all my files into your wwwroot folder, but it didn’t work. It’s a core 2. (

If you check that is, you’ll see that it works and I also upload all my files into your wwwroot folder.

I’m not sure if I need to follow a different process if the site is core 2.

Both sites work fine when they are locally.


Best Regards,



Did you follow the instructions located here:

That doc says you must edit you .csproj file and add the RuntimeIdentifiers tag above the TargetFramework.

Let me know if you’ve read those instructions and followed them.


Here is a shot from my csproj file for an ASP.NET Core 2.0 app I have up and running on gear host. Hope it helps!


Thanks for your help. I just updated like yours, but it still does not work. I’m not sure if I send all files to wwwroot or some files to site folder and the wwwroot (from my local) to wwwroot (remote). Could you help me, please?


All of your cs and html pages need to live under the wwwroot folder. And then they also need to be in the correct subfolders depending on what type of app you are deploying.

I’ve read on a different thread that you need to compile an ASP.NET Core app as a self-contained application: ASP Core application trying to read directory


Hey Abraham,

You were right! I tried and it worked fine now. Further more I learned how to deploy through Visual Studio and it made my work easier.

Thank you!