Re: [ADVANCED-DOTNET] Forms authentication redirects to non-existant URL

2003-01-30 Thread hammett
> Per those last two, our authorization section includes this rather > schizophrenic declaration: > > > > > What's wrong with this declaration? It's perfectly fine to me. Deny anonymous but once they get autheticated allow access. Regards hammett Almost MCAD :-) You can read messages fr

Re: [ADVANCED-DOTNET] Forms authentication redirects to non-existant URL

2003-01-30 Thread Michael Giagnocavo
-Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Sent: Thursday, January 30, 2003 1:45 PM To: [EMAIL PROTECTED] Subject: Re: Forms authentication redirects to non-existant URL Thanks Mike, these are the ones we've tried:

Re: [ADVANCED-DOTNET] Forms authentication redirects to non-exist ant URL

2003-01-30 Thread Booth, Bill
What does FormsAuthentication.GetRedirectUrl(sUser, True).ToString return? We had a situation similar to this and had to re-direct on our own. Something like this; If FormsAuthentication.GetRedirectUrl(sUser, True).ToString.EndsWith("//default.aspx") Then Response.Redirect("///default.asp

Re: [ADVANCED-DOTNET] Forms authentication redirects to non-existant URL

2003-01-30 Thread Chris
Thanks Mike, these are the ones we've tried: loginUrl="LoginForm.aspx" Initial login OK, but after session end redirect goes to invalid: ///loginForm.aspx NOTE: this is the one we'd most like to use to minimize installation hassles. loginUrl="..\\LoginForm.aspx" Initial login OK, but after

Re: [ADVANCED-DOTNET] Forms authentication redirects to non-existant URL

2003-01-30 Thread Michael Giagnocavo
Maybe you should specify a relatively more absolute path for the loginUrl? (/unsec/sec/login.aspx)? -mike -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Sent: Thursday, January 30, 2003 10:05 AM To: [EMAIL PROTECTED] S

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Marsh, Drew
Booth, Bill [mailto:[EMAIL PROTECTED]] wrote: > Hmmm, It looks like the NativeError property would give you > what you want but I don't see it in SQLClient. I can just > find it as a property of OleDb or ADO 2.7 errors. > > "The NativeError property on a Error object is used to > retrieve the data

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Booth, Bill
Hmmm, It looks like the NativeError property would give you what you want but I don't see it in SQLClient. I can just find it as a property of OleDb or ADO 2.7 errors. "The NativeError property on a Error object is used to retrieve the database-specific error information for a particular Error obj

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Gary Leighton
I'll give it a try. Thanks. -Original Message- From: Booth, Bill [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 16:19 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands Have you tried the InfoMessage event? -Original Message--

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Gary Leighton
It doesn't look good. The InfoMessage event only fires for warnings and information messages. The error I'm testing throws an exception but no InfoMessage. -Original Message- From: Booth, Bill [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 16:19 To: [EMAIL PROTECTED] Subject: Re: [ADVANC

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Booth, Bill
Have you tried the InfoMessage event? -Original Message- From: Gary Leighton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 9:25 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands The error I'm currently looking at (ti

[ADVANCED-DOTNET] Forms authentication redirects to non-existant URL

2003-01-30 Thread Chris
We have a directory structure like this: wwwroot\\ Users click a link on a simple HTML page in the directory to request HomePage.aspx in the directory, which contains a forms-authenticated ASP.NET application. The system redirects them to wwwroot\\\LoginForm.aspx They log in, and HomePag

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Gary Leighton
The error I'm currently looking at (timeout due to table lock) gives 0 as the SqlError.State. So it doesn't look like the answer, at least not for this type of error. -Original Message- From: Edward Ferron [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 14:27 To: [EMAIL PROTECTED] Subjec

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Edward Ferron
I think you are looking for the SqlError.State property. Is that not the Sql server error code? HTH Ed -Original Message- From: Gary Leighton To: [EMAIL PROTECTED] Sent: 1/30/03 6:19 AM Subject: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlCommands Does anyone know how

Re: [ADVANCED-DOTNET] One more try: Debugger Question

2003-01-30 Thread K C
Okay, > "Visual Studio definetly DOES NOT DO IT" Thank You Regards.. KC You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Gary Leighton
Err yeah, that would seem to be a good candidate. However, in the particular case I'm testing (a timeout due to a locked table), the SqlError.Number is -2. The MSDN says that the Number should correspond to an entry in master.dbo.sysmessages but this table only contains positive integers. I supp

Re: [ADVANCED-DOTNET] One more try: Debugger Question

2003-01-30 Thread Ben Kloosterman
Well you are asking a Managed list so it should not really be asked here. I will break down my answer. > Respectfully, I didn't say anything about managed, umanaged, assemblies, > ect... Nothing on an application level. I just want to load a hard disk > (boot sector)sector into memory, examine it

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlCommands

2003-01-30 Thread Bailey, Mark
Ummm... You mean .Number? ... Catch ex As SqlException debug.WriteLine(ex.Number) > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]] On Behalf Of > Gary Leighton > Sent: Thursday, January 30, 2003 7:20 AM > To: [EMAIL PROTE

Re: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlC ommands

2003-01-30 Thread Adam Straughan
SqlError.Number worked for me, I think. -Original Message- From: Gary Leighton [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 12:20 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Extracting SqlServer error codes using SqlCommands Does anyone know how to extract the SqlServer error co

Re: [ADVANCED-DOTNET] One more try: Debugger Question

2003-01-30 Thread K C
Respectfully, I didn't say anything about managed, umanaged, assemblies, ect... Nothing on an application level. I just want to load a hard disk (boot sector)sector into memory, examine it, dissassemble it, write it back to the boot sector, that sort of thing, etc.. and do it using the VS.Net IDE/d

[ADVANCED-DOTNET] Extracting SqlServer error codes using SqlCommands

2003-01-30 Thread Gary Leighton
Does anyone know how to extract the SqlServer error code when an SqlException occurs? If I excute a stored procedure via the SqlCommand class and an exception occurs (say a table is locked), how do I get the SqlServer 2000 error code? It seems that the SqlException contains one or more SqlError ob