Re: Login Control is behaving strange when site on prod server.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You need to create a <location> tag in a web.config
which points to /All and specifically allows anonymous access.

<configuration>
<location path="/All/Guestpage.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>

You can place the location tag either in the root directory or in the /All directory.

See :
http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=186

....for more detail.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Martin Arvidsson, Visual Systems AB" <martin.arvidsson@xxxxxxxx> wrote in message
news:%230gxcdYmIHA.4664@xxxxxxxxxxxxxxxxxxxxxxx
Additional information!

I see to my horror that pages that are accessible for anonymous users could not be
found either?

I have a folder called /All

and when clicking a link on my default.aspx page it wont get there either?!?

The href of the a tag is pointing like this "/All/Guestpage.aspx"

What could be wrong?


"Martin Arvidsson, Visual Systems AB" <martin.arvidsson@xxxxxxxx> skrev i meddelandet
news:%235EpQRYmIHA.1912@xxxxxxxxxxxxxxxxxxxxxxx
Hi!

I published my web application today on a 2003 server with IIS 6 and Net Frmwk 2

I have a root containing

Default.aspx
Login.aspx

Then a folder called /Pages/Order
under that folder i have severald aspx pages.

In the /Pages i have a web.config telling that no anonymous users is allowed and there for
the login.aspx is displayed if not logged in.

The user tries to access the mysite.com/Pages/Order/NewOrder.aspx and will be redirected to Login.aspx

After the user submits the userid and password, it wont redirect to the page he/she was trying to access.
The server tells me that the page doesn't exist.

I have checked, rights, on the IIS server, filesystem etc. But i cant understand why it doesn't work
If i run it localy it works like a charm.

Is there a setting on the IIS that needs to be enabled?

Regards
Martin





.



Relevant Pages

  • Re: IIS6 </Message> tag appends to end when buffer flushed
    ... this does not look like an issue with IIS. ... site within the trace utility, and I believe the are on nix based servers. ... > Local Component on Server. ... >> tag that gets appended to the end of this response. ...
    (microsoft.public.inetserver.iis)
  • Re: Validation Summary
    ... the default Web properties to use Visual Studio Development Server to run the ... IIS server configuration, which seems to be the case since it doesn't work ... url embeded in the <script> tag. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS6 </Message> tag appends to end when buffer flushed
    ... Well, there's no feature in IIS to add the tag, so you should ... start looking at your proxy code. ... Local Component on Server. ...
    (microsoft.public.inetserver.iis)
  • Re: Login Control is behaving strange when site on prod server.
    ... I see to my horror that pages that are accessible for anonymous users could ... I published my web application today on a 2003 server with IIS 6 and Net ... Then a folder called /Pages/Order ...
    (microsoft.public.dotnet.framework.aspnet)
  • Access Mapped Drive in IIS
    ... We are trying to share a folder between two IIS 6 servers which have ... anonymous users. ... server B. The share is created by a NET SHARE command specified in HKLM ... On Server B we are running IIS in anonymous mode with the user "domain ...
    (microsoft.public.inetserver.iis)