Insufficient permissions in configuration for importing IIS application pool

0 votes

I'm failing to export application pools from server to another newly created server.

These are the steps I'm Following

Step 1: Export on server1

D:>%windir%\system32\inetsrv\appcmd list apppool /config /xml > d:\apppools.xml

Step2: Deleting duplicate apppools from xml file

Removed tags for defaultAppPool, .NetVxx appPools.

Step3: Importing on Server2

  • copied the apppools.xml file on server2
  • %windir%\system32\inetsrv\appcmd add apppool /in < D:\ServerFeature\apppools.xml

And this shows up

D:\ServerFeature>%windir%\system32\inetsrv\appcmd add apppool /in < D:\ServerFea ture\apppools.xml ERROR ( message:Configuration error Filename: redirection.config Line Number: 0 Description: Cannot read configuration file due to insufficient permissions . )

What am I doing wrong??

Jun 11, 2018 in Other DevOps Questions by ffdfd
• 5,550 points
3,668 views

2 answers to this question.

0 votes

Seems like a read-write permission issue. Check and enable the read write permissions for this file:

%SystemRoot%\System32\inetsrv\config\redirection.config
answered Jun 11, 2018 by DareDev
• 6,890 points
0 votes
Try running the cmd window as administrator. I had the same problem
answered Oct 7, 2021 by Tony D.

Related Questions In Other DevOps Questions

0 votes
1 answer

IS app pool import fails with error message.configuration error…insufficient permissions

There is a config file at %SystemRoot%\System32\inetsrv\config\redirection.config Removed the ...READ MORE

answered Jun 19, 2018 in Other DevOps Questions by shubham
• 7,340 points
2,190 views
0 votes
1 answer

How to use Powershell DSC for application installation?

Occasionally folks want to be able to ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,680 points
944 views
0 votes
1 answer

Multiple applications in one IIS website with MS Release Management

Do the following: Add a Manage IIS task ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,680 points
1,780 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,079 views
+2 votes
1 answer
0 votes
1 answer

TFS support for in-build custom web sockets

TFS has no native support for this. ...READ MORE

answered Jul 19, 2018 in Other DevOps Questions by DareDev
• 6,890 points
654 views
0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,890 points
2,877 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP