locked
my website return error after i share my website folder RRS feed

  • Question

  • User-535616387 posted

    Hi Guys, 

    my website can run well but it showing error after i share my website folder  :

    please tell me why ?

    Error Summary
    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 
    Notification Unknown 
    Handler Not yet determined 
    Error Code 0x80070005 
    Config Error Cannot read configuration file due to insufficient permissions  
    Config File \\?\F:\Dev\eGojek\web.config 
    

    Thank You
    Wibowo Wiwid

    Tuesday, July 17, 2018 3:39 AM

Answers

  • User-369506445 posted

    hi

    this error means your folder needs a permission

    There is no problem with your web.config. Your web site runs under a process. In <g data-gr-id="159" id="159" class="gr_ gr_159 gr-alert gr_spell ContextualSpelling ins-del multiReplace">iis</g>, 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 <g class="gr_ gr_31 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="31" data-gr-id="31">any thing</g> 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 <g class="gr_ gr_37 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="37" data-gr-id="37">web.config</g> file.

    Make the file accessible to <g class="gr_ gr_40 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="40" data-gr-id="40">IIS_IUSRS</g> group. Just right click web.config and click properties, under <g class="gr_ gr_39 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="39" data-gr-id="39">security</g> tab, add IIS_IUSRS.

    So what is this IIS_IUSRS thing?

    Your <g class="gr_ gr_34 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del gr-progress" id="34" data-gr-id="34">web site</g> is like an <g class="gr_ gr_35 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="35" data-gr-id="35">exe</g> file. Just like any <g class="gr_ gr_36 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="36" data-gr-id="36">exe</g> 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 <g class="gr_ gr_32 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="32" data-gr-id="32">web site</g> 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 <g class="gr_ gr_48 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="48" data-gr-id="48">local</g> computer and not a corporate domain.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 17, 2018 4:42 AM

All replies

  • User-369506445 posted

    hi

    this error means your folder needs a permission

    There is no problem with your web.config. Your web site runs under a process. In <g data-gr-id="159" id="159" class="gr_ gr_159 gr-alert gr_spell ContextualSpelling ins-del multiReplace">iis</g>, 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 <g class="gr_ gr_31 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="31" data-gr-id="31">any thing</g> 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 <g class="gr_ gr_37 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="37" data-gr-id="37">web.config</g> file.

    Make the file accessible to <g class="gr_ gr_40 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="40" data-gr-id="40">IIS_IUSRS</g> group. Just right click web.config and click properties, under <g class="gr_ gr_39 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="39" data-gr-id="39">security</g> tab, add IIS_IUSRS.

    So what is this IIS_IUSRS thing?

    Your <g class="gr_ gr_34 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del gr-progress" id="34" data-gr-id="34">web site</g> is like an <g class="gr_ gr_35 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="35" data-gr-id="35">exe</g> file. Just like any <g class="gr_ gr_36 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="36" data-gr-id="36">exe</g> 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 <g class="gr_ gr_32 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="32" data-gr-id="32">web site</g> 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 <g class="gr_ gr_48 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="48" data-gr-id="48">local</g> computer and not a corporate domain.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 17, 2018 4:42 AM
  • User-535616387 posted

    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 "Dev" folder

    F:\Dev\eGojek\web.config 
    

    Best Regards,
    Wibowo Wiwit

    Wednesday, July 18, 2018 12:19 AM