unable to save applicationHost.config file
Asked Answered
F

4

20

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?

Fsh answered 1/7, 2012 at 6:41 Comment(0)
N
50

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

Naidanaiditch answered 11/11, 2012 at 20:25 Comment(1)
using notepad++ with admin privilege, it was giving me the impression that it was saving my changes. eekSagitta
L
2
  1. Open Notepad++ as admin
  2. Open %SystemRoot%\Sysnative\inetsrv\config\applicationHost.config
  3. Stop IIS
  4. Edit and save changes
Libau answered 25/12, 2014 at 20:0 Comment(0)
N
1

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.

Natalienatalina answered 1/7, 2012 at 6:50 Comment(7)
I have full control on it. but I cant save it yet. Ofcourse there is no tick on Special Permissions checkbox. it is disabled totally.Fsh
I also had this issue yesterday. Although it must do but try this -> After updating permissions (Logged in User), check the permissions again and see if they are updated. If not browse to IIS manager (I used IIS 7), go to Virtual Directory and click Content View (bottom middle)and select the applicationHost.config and right click to "Edit Permissions" and update the same from there. Hopefully this will do.Natalienatalina
I cant find applicationHost.config from where you said. only my website directory is there.Fsh
I just found that it is not required, my original answer did it for me and i updated a file easily, i can't say why it is not working in your case. One thing, make sure you have assigned permissions to the right user. Thanks.Natalienatalina
Ok read this here forums.iis.net/t/1175866.aspx which contains a link here learn.iis.net/page.aspx/264/shared-configuration/#07 This is something similar, try itNatalienatalina
thank you dear DnshPly9, i hope it help to solve it, it takes 2 days of my week :(Fsh
In Software, Sometimes things doesnt really work easy, you will be happy once you get it working and u will get it working. Enjoy :)Natalienatalina
F
1

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.

Filmy answered 24/1, 2013 at 9:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.