Last post Jul 18, 2018 12:19 AM by wibowowiwit
Jul 17, 2018 03:39 AM|wibowowiwit|LINK
my website can run well but it showing error after i share my website folder :
please tell me why ?
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\F:\Dev\eGojek\web.config
Jul 17, 2018 04:42 AM|vahid bakkhi|LINK
this error means your folder needs a permission
There is no problem with your web.config. Your web site runs under a process. In iis, you can define the identity of that process. The
identity that, your web site's application pool runs as (Network Services, Local System, Etc. ...), should have permission to access and read the web.config file.
This updated answer is same as above, but a little longer and simpler and improved.
First of all: you don't have to change any thing in your config file.
It's OK. The problem is with windows file permissions.
This problem occurs because your application can not
access and read web.config file.
Make the file accessible to IIS_IUSRS group. Just right click web.config and click
properties, under security tab, add IIS_IUSRS.
So what is this IIS_IUSRS thing?
Your web site is like an exe file. Just like any exe file, it should be
started by a user and it runs according to permissions assigned to that user.
When your site is started in IIS, Application Pool of your web site is associated with
a user (Network Services, Local System, Etc. ...) (and can be changed in IIS)
So when you say IIS_IUSRS, it means any user (Network Services, Local System, Etc. ...) that your site is running as.
And as @Seph mentioned in a comment below:
If your computer is on a domain, remember that IIS_IUSRS group is a
local group. Also, make sure that when you're trying to find this user check the location it should be set to local computer and not a corporate domain.
Jul 18, 2018 12:19 AM|wibowowiwit|LINK
Thank You Vahid Bakkhi,
Make the file accessible to IIS_IUSRS group. Just right click web.config and click properties, under security tab, add IIS_IUSRS.
it works when i grant iis_user outside folder web.config