Web Config ?

O

Oded Dror

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
 
K

Ken Cox - Microsoft MVP

Hey 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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top