• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 994
  • Last Modified:

iis authentication and configuration issue

1) installed iis 7.5 on a new server.
2) moved the root directory to new location, gave the new root direct read&execute permissions for IUSR. Tested it and I could view static pages okay.
3) installed activeperl, ran ap-iis-config add all, in iis manager, I see the new handlers for .pl files. It add a web.config file in the new root directory.
4) Now I can't run perl scripts or view static files. I get the error:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module      IIS Web Core
Notification      Unknown
Handler      Not yet determined
Error Code      0x80070005
Config Error      Cannot read configuration file due to insufficient permissions
Config File      \\?\C:\Users\Administrator\Documents\mysite\web-site\web.config

How to fix it? This is mostly a static website with a couple of perl scripts. It is not a .net website/app.
0
freshgrill
Asked:
freshgrill
1 Solution
 
fjkaykr11Commented:
I am not sure about your specific web app. But in the past when I had a similar error using a web application on IIS 7. I had to also ensure to configure other settings as well (this was for internal testing only, not for going live):
1. Handler Mappings:  Enabled
2. Authorization Rules: Allow specific user on your web app
3. Authentication:  Anonymous Authenication: Enabled
Also I know you gave authorization to the WWWRoot folder for IUSR, but in my case I also had to enable this for the Virtual Directory of the Web Application.  I know IIS 7 can be a challenge. Sorry I couldn't give more specific steps.
0
 
freshgrillAuthor Commented:
Thanks, all that was done  but it still wasn't working. Finally, I just deleted the web.config file and now both static files and perl scripts are working.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now