I could not save applicationHost.config file, it says "save failed and it is open in another programs" while I stop IIS service and closed visual studio, any idea?
If you're on a 64-bit architecture and trying to edit with a 32-bit editor (e.g. Notepad++) apparently you can't save the file. Try editing your file with the regular notepad that is shipped with Windows. To be absolutely sure, also run Notepad as an Administrator
- Open Notepad++ as admin
- Open %SystemRoot%\Sysnative\inetsrv\config\applicationHost.config
- Stop IIS
- Edit and save changes
You do not have sufficient priviledge to modify the file.
Right click on file and click Properties.
Under the Security tab -> check to see if the user account you are logged in with has Modify permission on the file.
If not then Edit the permission and check the modify and Apply these settings.
Now try updating it.
Are you trying to edit the one in C:\Program Files\IIS Express\AppServer? There's a mirror copy in your Documents folder, under IISExpress\config which I believe is the one you're meant to edit; changes are copied across for you.
© 2022 - 2024 — McMap. All rights reserved.