iis authentication and configuration issue

Posted on 2012-08-24
Last Modified: 2012-08-25
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.
Question by:freshgrill
    LVL 3

    Accepted Solution

    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.

    Author Closing Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now