Form Based Authentication and open project problem

S

sduncansca

Hi

I have an ASP.NET v1.4 application that uses form based authorization. My
authorization section of the web.config looks like

<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
Whenever I tried to open the project using VS 2003 it generates a ASP.NET
Version Mismatch error, which (at least to me) appears to be misleading,
because it appears to be an issue with my auth section. If I comment out
that deny directive the project opens fine. This is what the log files looks
like with it turned on

04:09:24 127.0.0.1 - GET /RROProjects/vs-37787108829737350_tmp.htm 200
04:09:24 127.0.0.1 - GET /_vti_inf.html 200
04:09:24 127.0.0.1 - POST /RROProjects/_vti_bin/shtml.dll 200
04:09:24 127.0.0.1 - POST /RROProjects/_vti_bin/_vti_aut/author.dll 200
04:09:24 127.0.0.1 SDUNCAN\Steve Duncan POST
/RROProjects/_vti_bin/_vti_aut/author.dll 200
04:09:27 127.0.0.1 - GET /RROProjects/get_aspx_ver.aspx 302
04:09:30 127.0.0.1 - GET /RROProjects/login.aspx 302



This is what it looks like turned off

04:10:40 127.0.0.1 - GET /RROProjects/vs39393872029737351_tmp.htm 200
04:10:40 127.0.0.1 - GET /_vti_inf.html 200
04:10:40 127.0.0.1 - POST /RROProjects/_vti_bin/shtml.dll 200
04:10:40 127.0.0.1 - POST /RROProjects/_vti_bin/_vti_aut/author.dll 200
04:10:40 127.0.0.1 SDUNCAN\Steve Duncan POST
/RROProjects/_vti_bin/_vti_aut/author.dll 200
04:10:43 127.0.0.1 - GET /RROProjects/get_aspx_ver.aspx 200



seems like I need a directive of <allow users="me when I am using VS
locally">

Would appreciate any help.
 
J

JIMCO Software

sduncansca said:
Hi

I have an ASP.NET v1.4 application that uses form based
authorization. My authorization section of the web.config looks like

<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
Whenever I tried to open the project using VS 2003 it generates a
ASP.NET Version Mismatch error, which (at least to me) appears to be
misleading, because it appears to be an issue with my auth section.

You just need to set up a <location> element for get_aspx_ver.aspx. Set the
path attribute to "get_aspx_ver.aspx" and put an authorization element in
there that allows everyone.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top