Hi all,
I am having troubles with web.config issues.
here is my web.config
In "/students/schu7392/project/aitp/" is where that web.config is, along with login.aspx. But I get this error when I try to access login.aspx.
I thought I could have a web.config file in the same directory as other files. Is this not the case? This is a server for school so I don't know what is happening higher up, but shouldn't this web.config file work for what is in its directory?
Any help would be appreciated. This is done with notepad, so no vs.net stuff would really apply to me.
Mike
I am having troubles with web.config issues.
here is my web.config
Code:
<?xml version="1.0" ?>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH" path="/students/schu7392/project/aitp/" loginurl="login.aspx" protection="All" timeout="30">
<credentials passwordformat="Clear">
<user name="Mike" password="otter1" />
<user name="Jeannette" password="chappi1" />
</credentials>
</forms>
</authentication>
<authorization>
<allow users="Mike, Jeannette" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
In "/students/schu7392/project/aitp/" is where that web.config is, along with login.aspx. But I get this error when I try to access login.aspx.
Code:
Parser Error Message: 'Authentication' section cannot be defined for directories below the application root.
Line 6: <configuration>
Line 7: <system.web>
Line 8: <authentication mode="Forms">
Line 9: <forms name=".ASPXAUTH" path="/students/schu7392/project/aitp/" loginurl="login.aspx" protection="All" timeout="30">
Line 10: <credentials passwordformat="Clear">
I thought I could have a web.config file in the same directory as other files. Is this not the case? This is a server for school so I don't know what is happening higher up, but shouldn't this web.config file work for what is in its directory?
Any help would be appreciated. This is done with notepad, so no vs.net stuff would really apply to me.
Mike