all groups > dotnet security > august 2005 >
You're in the

dotnet security

group:

Enabling Forms Authentication Stops Button Click Events



Enabling Forms Authentication Stops Button Click Events Waqas Pitafi
8/21/2005 11:06:02 AM
dotnet security: 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.

Re: Enabling Forms Authentication Stops Button Click Events Nicole Calinoiu
8/22/2005 12:00:00 AM
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?



[quoted text, click to view]

Re: Enabling Forms Authentication Stops Button Click Events Dominick Baier [DevelopMentor]
8/22/2005 10:38:39 PM
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.

[quoted text, click to view]

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
[quoted text, click to view]
I know it's form authentication related, but how this happens?

[quoted text, click to view]

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

[quoted text, click to view]


AddThis Social Bookmark Button