Wednesday, March 28, 2012

Web config question

Hello all!

I'm using form Authintication on my web app. It works fine fo my app fine,
but when I go to the second app, it doesn'y work. The second app is in a
virtual directory. Now if I give permision in the web config like

<location path="app2/logon.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location
It works. But now if I go to mydomain/app2/default, I get kicked back to
mydomain/welcome. How can I logon on my first page, and havie it carry
through in the web config.

Thanks!

RudyHello
In this case your code should be like this:
<location path="app2 ">
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="Forms">
<loginUrl="app2/logon.aspx"
timeout="30" />
</authentication>
</system.web>
</location
Regards
Saeid Kdaimati

"Rudy" wrote:

> Hello all!
> I'm using form Authintication on my web app. It works fine fo my app fine,
> but when I go to the second app, it doesn'y work. The second app is in a
> virtual directory. Now if I give permision in the web config like
> <location path="app2/logon.aspx">
> <system.web>
> <authorization>
> <allow users="?" />
> </authorization>
> </system.web>
> </location>
> It works. But now if I go to mydomain/app2/default, I get kicked back to
> mydomain/welcome. How can I logon on my first page, and havie it carry
> through in the web config.
> Thanks!
> Rudy
Rudy hope saieid solution solved your problem

"Rudy" <Rudy@.discussions.microsoft.com> wrote in message
news:F45D84A4-CF15-498F-8398-210788B73F04@.microsoft.com...
> Hello all!
> I'm using form Authintication on my web app. It works fine fo my app fine,
> but when I go to the second app, it doesn'y work. The second app is in a
> virtual directory. Now if I give permision in the web config like
> <location path="app2/logon.aspx">
> <system.web>
> <authorization>
> <allow users="?" />
> </authorization>
> </system.web>
> </location>
> It works. But now if I go to mydomain/app2/default, I get kicked back to
> mydomain/welcome. How can I logon on my first page, and havie it carry
> through in the web config.
> Thanks!
> Rudy

0 comments:

Post a Comment