0
good afternoon. I’m venturing into an Asp server, only I’m lost in its configuration. Like php dev, I put an index.php in an Asp server hoping it would work, but it didn’t. Looking more on, I realized that I should set up web.config, so looking on the net, I set it up as follows.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="default2.asp" />
<add value="default.asp" />
<add value="index.asp" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
But I get the following error.
I obtained this error, both in the root and in a subfolder. If I delete web-config, it does not call any file. Can you give me a hand with this setup?
(I am exporting a server, it worked perfectly on the old server, but the webconfig there, was not in the folder I have access to)
You could paste the error instead of the image?
– Tuxpilgrim
of course, error that in the image is in "blue" 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".
– Guilherme Morgado
Description of the error in more information This error occurs when there is a problem Reading the Configuration file for the Web server or Web application. In some cases, the Event logs may contain more information about what caused this error.
– Guilherme Morgado
Are you sure that PHP works on ASP server without also installing a PHP interpreter?
– Sam