Saturday, March 31, 2012

Web Config ?

Hi there,

I'm using VWD 2005 express, win xp pro sp2
I created a website with login.aspx page (not from the template)
Integrated with Access database, Also I modify the web.config file
everything work fine I put response.redirect to the log in with user session
like I said everything work fine
Now I also have Microsoft Visio htm file on my website with hyper link to
the default.aspx page
Every time when I click from visio file to the main page the login.aspx poup
It's not happend from the others *-.aspx pages
How do I setup a filter in web.config that will exclude these pages
(Visio.htm)

Thanks,

Oded DrorHey Oded,

You need to create a separate <location> section where you can allow
anonymous users:

<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<location path="Visio.htm">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</system.web
Ken
Microsoft MVP [ASP.NET]

"Oded Dror" <odeddror@.cox.net> wrote in message
news:e87p7EbKGHA.1236@.TK2MSFTNGP10.phx.gbl...
> Hi there,
> I'm using VWD 2005 express, win xp pro sp2
> I created a website with login.aspx page (not from the template)
> Integrated with Access database, Also I modify the web.config file
> everything work fine I put response.redirect to the log in with user
> session
> like I said everything work fine
> Now I also have Microsoft Visio htm file on my website with hyper link to
> the default.aspx page
> Every time when I click from visio file to the main page the login.aspx
> poup
> It's not happend from the others *-.aspx pages
> How do I setup a filter in web.config that will exclude these pages
> (Visio.htm)
> Thanks,
> Oded Dror

0 comments:

Post a Comment