Ah, it works now. Many thanks to Paul Chu who found the solution.
My environment:
My laptop has Windows Vista running IIS 7.0.
I downloaded and extracted the zip file for the DNN 5.0.1 install package.
I setup a virtual directory for the DNN installation and converted it to an application.
I then granted all rights to the NETWORK SERVICE user on that website's root folder.
Then I opened the website as a website project in Visual Studio 2008.
The problem:
When I ran the web site from within Visual Studio 2008, IE reported simply that the page could not be displayed.
Next I took Visual Studio out of the equation and ran the web site directly from a browser pointing to "http://localhost/website", but I recevied 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.
Error |
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". |
The solution:
To rule out security, I turned off the UAC:
- Launch MSCONFIG by from the Run menu.
- Click on the Tools tab. Scroll down till you find "Disable UAC" . Click on that line.
- Press the Launch button.
- A CMD window will open. When the command is done, you can close the window.
- Close MSCONFIG. You need to reboot the computer for changes to apply.
Turns out that back when I had installed IIS7 I had missed a step, and it wasn't configured to allow any sites to run ASP.NET. To correct this,
I went into Start > Control Panel > Programs and Features > Turn Windows features on or off (bottom of left-hand menu). On the ensuing popup, I expanded Internet Information Services > World Wide Web Services > Application Development Features, and checked everything underneath (probably only had to do ASP.NET, but I thought I'd cover all bases).
At that point, I could then run the application from both Visual Studio 2008 and directly from a browser.
Hope this helps someone else.
Jason