Instead of giving access to all IIS users like IIS_IUSRS you can also give access only to the Application Pool Identity using the site. So when you say IIS_IUSRS, it means any user ( Network Services, Local System, Etc.) that your site is running as.Īnd as mentioned in comment below: If your computer is on a domain, remember that IIS_IUSRS group is a local group.Īlso 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. 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) Just like any exe file, it should be started by a user and it runs according to permissions assigned to that user. Just right click web.config and click properties, under security tab, add IIS_IUSRS. Make the file accessible to IIS_IUSRS group. This problems occurs because your application can not access and read web.config file. The problem is with windows file permissions. This updated answer is same as above, but a little longer and simpler and improved.įirst of all: you don't have to change anything in your config file. 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. In iis you can define the identity of that process. There is no problem with your web.config. Here is its current contents: Ĭonfig Error: Cannot read configuration file due to insufficient permissionsĬonfig File: \?\C:\Users*****\Documents\Visual Studio2010\WebSites\PointsForTime\web.config What do I add to my web.config file though? I've never had to edit it before. Change IIS authentication method to BasicAuthentication.Add IIS_IUSRS with Read permission on files in the folder. ![]() I have found a solution that many swear by. I've recently encountered an error trying to host my asp.net site with IIS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |