• Cannot read configuration file due to insufficient permissions


    Cannot read configuration file due to insufficient permissions

    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 web.config file.

    Update:

    This updated answer is same as above, but a little longer and simpler and improved.

    First of all: you don't have to change anything in your config file. It's OK. The problem is with windows file permissions.

    This problems 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 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.

    For others, it's worth pointing out that the default usually is IIS_IUSRS and to 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.

    各种加权限都没用,最后给整个solution的文件夹加上everyone的权限就可以

  • 相关阅读:
    自定义组件 -- android联系人
    ListView嵌套出现的问题
    编译Speex生成so库文件(android-speex)
    MacOs终端忽略大小写
    Eclipse报错:Setting property 'source' to 'org.eclipse.jst.jee.server:test1' did no
    Eclipse 反编译插件安装jad
    spring默认启动位置以及contextConfigLocation设置源码解析
    git使用2
    Git常用命令
    spring MVC配置详解
  • 原文地址:https://www.cnblogs.com/chucklu/p/13213797.html
Copyright © 2020-2023  润新知