Home All Groups Group Topic Archive Search About

Enabling Forms Authentication Stops Button Click Events

Author
21 Aug 2005 6:06 PM
Waqas Pitafi
Hi,

3rd day is already gone without any solution.

My problem is, I have a Windows Server 2003 sp1 machine as my development
platform having NTFS filesystem. Other notable components installed are
ODP.NET (latest version), WSE 2.0 sp3, offcourse VS.NET 2003 so .NET 1.1.

When I enable Forms Authentication (restrict anonymous access) through web
config using <authentication> section my login.aspx page's button stop
working. After debugging I discovered, it's because of the Forms
Authentication. I enable anonymous access every thing works great.

I am out of ideas to find the solution, any help will be greatly appreciated.

I have installed everything (including OS) from scratch only to get the same
result. Moreover another developer's machine with exactly similar software
configuration runs the same code (with Forms Authentication enabled and
restricted anonymous access) without any problem.

Thanks in advance.

Author
22 Aug 2005 5:18 PM
Nicole Calinoiu
What exactly do you mean by the "login.aspx page's button stop working"?  Is
an exception being thrown or does some other undesired behaviour occur?  If
there's an exception, could you please provide the full exception details
returned from its ToString method?  If there's some other problem, could you
please describe it in a bit more detail?



Show quoteHide quote
"Waqas Pitafi" <WaqasPit***@discussions.microsoft.com> wrote in message
news:04335812-3C5D-4C69-8596-D5F1677B58F4@microsoft.com...
> Hi,
>
> 3rd day is already gone without any solution.
>
> My problem is, I have a Windows Server 2003 sp1 machine as my development
> platform having NTFS filesystem. Other notable components installed are
> ODP.NET (latest version), WSE 2.0 sp3, offcourse VS.NET 2003 so .NET 1.1.
>
> When I enable Forms Authentication (restrict anonymous access) through web
> config using <authentication> section my login.aspx page's button stop
> working. After debugging I discovered, it's because of the Forms
> Authentication. I enable anonymous access every thing works great.
>
> I am out of ideas to find the solution, any help will be greatly
> appreciated.
>
> I have installed everything (including OS) from scratch only to get the
> same
> result. Moreover another developer's machine with exactly similar software
> configuration runs the same code (with Forms Authentication enabled and
> restricted anonymous access) without any problem.
>
> Thanks in advance.
Author
23 Aug 2005 5:38 AM
Dominick Baier [DevelopMentor]
Hello Waqas,

could this be related to the problem here:





Yes, you are right, Dominick. After I copy the /aspnet_client directory to
my own wwwroot directory, problem solved.

Thanks again, you are so wonderful.

"Dominick Baier [DevelopMentor]" wrote:

> Hello Sword,

aah,

this usually happens if you dont have the /aspnet_client directory in the
root of your website. this can easily happen if you move wwwroot around...

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
>> I debugged the codes, it seems ValidatorOnSubmit() function doesn't pass.
I know it's form authentication related, but how this happens?

"Sword" wrote:

>>> Hi, Guys,

Thanks to provide me such useful ideas. I used Fiddler to trace the HTTP
contents, but still can't find where the problem is. And all the javascript
settings are fine on both server and client sides.



---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> Hi,
>
> 3rd day is already gone without any solution.
>
> My problem is, I have a Windows Server 2003 sp1 machine as my
> development platform having NTFS filesystem. Other notable components
> installed are ODP.NET (latest version), WSE 2.0 sp3, offcourse VS.NET
> 2003 so .NET 1.1.
>
> When I enable Forms Authentication (restrict anonymous access) through
> web config using <authentication> section my login.aspx page's button
> stop working. After debugging I discovered, it's because of the Forms
> Authentication. I enable anonymous access every thing works great.
>
> I am out of ideas to find the solution, any help will be greatly
> appreciated.
>
> I have installed everything (including OS) from scratch only to get
> the same result. Moreover another developer's machine with exactly
> similar software configuration runs the same code (with Forms
> Authentication enabled and restricted anonymous access) without any
> problem.
>
> Thanks in advance.
>