How can i change the location of the config file of a site in IIS?

2

When I start IIS on a site, I get a "HTTP Error 500.19"

Error Code     0x80070005
Config Error   Cannot read configuration file due to insufficient permissions
Config File    \\?\c:\somepath\web.config

I think the site config file is messed up. It has '\?' in the beginning of the path of the config file. When I go to IIS manager, I don't see a way to fix that.

Can you please tell me how can I fix it?

Thank you.

iis
asked on Server Fault Apr 16, 2016 by n179911

3 Answers

1

You don't. \\?\c:\ is how you pass a path to Windows when you think the fully qualified file name may be longer that 260 characters. The file path functions in Windows are limited to 260 characters for file names that start c: but the limit is 32767 characters for Unicode file names that start \\?\c:\

First thing to do is to check the file at c:\somepath\web.config to make sure that the IIS account has access to it.

answered on Server Fault Apr 16, 2016 by CharlesW
0

Try the below link. You will get solution

https://support.microsoft.com/en-in/kb/942055

answered on Server Fault Apr 17, 2016 by Booth
0

I can't add to the chat from CharlesW unfortunately because I don't want to take away the credit. By IIS account, you have to ensure the application pool account has at least read/read execute to read the web.config file, not IUSR.

answered on Server Fault Apr 17, 2016 by milope

User contributions licensed under CC BY-SA 3.0