hallo,
I have a very simple application: three aspx pages. One is the login, one is a page everyone can see and the third one is a restricted page.
In my local server everything works fine if I don't add the web.config file. When I add the web.config I get an error of wrong configuration: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
If I upload the files to the real server this error shouldn't occur anymore, but I still get an error (not shown because of security reason), even if I set the customerror to "off" in the web.config.
I really don't know what is going on:
This is the code of the web.config:
Can you see something wrong? thanks
I have a very simple application: three aspx pages. One is the login, one is a page everyone can see and the third one is a restricted page.
In my local server everything works fine if I don't add the web.config file. When I add the web.config I get an error of wrong configuration: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
If I upload the files to the real server this error shouldn't occur anymore, but I still get an error (not shown because of security reason), even if I set the customerror to "off" in the web.config.
I really don't know what is going on:
This is the code of the web.config:
Code:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
Can you see something wrong? thanks