I found the solution!
1) I went to another server with a new web application on it.
2) I wanted to confirm that the URL option was there on that server, and that something was amiss with the server I was working on
3) When I opened the Error Mapping Properties for the 403.x error, only the Default and File options were present on this other server.. hmmm
4) So I figured, this can't be, as I couldn't find anything...
User Profile
Collapse
-
Here's a screen shot of what I'm talking about!
The drop down has Default, File, but no URL.....Leave a comment:
-
Error Mapping Properties -- URL option missing
Hi all,
I'm working on setting custom errors on my website.
I go to my website in the IIS MMC, to the "Custom Errors" tab in it's properties window.
From there I select One of the Error codes, any of them, it doesn't matter -- click edit properties.
Under "Message Type:" -- the drop down list only contains [Default or File], I expect to see URL but it is not there?... -
Great List,
I've seen this items before in different versions. The list itself is a good answer to Freelance's question. Once you realize you are only doing the work of 38% of a person, then it's easier to understand that you can do the work that you used to do, along with that of the laid off coworker.
TomLeave a comment:
-
So,
Last night I added this code
.
.Code:protected void Login1_LoginError(object sender, EventArgs e) { Login1.FailureText = "That UserName/Password combination could not be found!"; }
That seemed to make it work. I power down the dev box, (Which is also running SQLEXPRESS which holds the membership database.
But this morning, I start up the...Leave a comment:
-
Strange Login Behavior
I use Forms authentication with a SQL Server database.
The portion of the Web.config Looks like this
.
...Code:<authentication mode="Forms" > <forms timeout="43200" loginUrl="~/SimpleLogin.aspx" cookieless="UseCookies" requireSSL="false" protection="All"Last edited by Frinavale; Feb 24 '09, 03:02 PM. Reason: Added [code] tags: Please place any code between [code] [/code] tags -
The SqlParameterCol lection does not seem to be raising the errors.
I tried what you suggested. I made the string input much longer than the length of the specified parameter, and the parameter was happy to get the value.
Then I set a breakpoint so I could examine the parameter. The parameter Size property shows the Int32 value as expected. Yet when you look at the Value property or SqlValue property they are both...Leave a comment:
-
Hey Frinny,
It seems to be the case, that the parameters collection is not doing any validations. From my link at the beginning of this thread I was lead to believe that validation would occur.
here is a snippet:
Use type-safe SQL parameters for data access. You can use these parameters with stored procedures or dynamically constructed SQL command strings. Parameter collections such as SqlParameterCol lection provide...Leave a comment:
-
Hmm..
What if I restate the question.
errorPage="~/Errors/ItNeverGoesHere .aspx"
What setting in the config file should I make, and where can I raise an error, where would I clear the error to expect to see the page
"ItNeverGoesHer e.aspx"Leave a comment:
-
Thanks all.
I've tried several configurations of error handling in the config file. It behaves as you would expect and will route error handling to the appropriate page. However, I would expect the errorPage attribute to overide the config setting, but it doesn't.Leave a comment:
-
Hi Kenobewan,
I don't understand what you mean by "overridden ", I would expect the Parameter collection to throw an error according to the Link in my original post.
If you mean, am I catching the error and then canceling it, no I am not. It doesn't seem to be raised in the first place.Leave a comment:
-
DeepBlue,
Thank you for the reply and link to the article.
Yes, I have validation, but my question is not about how to use validation to limit SQL Injection, but why doesn't the Parameters collection raise an error.Leave a comment:
-
errorPage attribute
Hi All,
When I throw an error the server...Code:<%@ Page Language="C#" MasterPageFile="~/MasterPages/MyMaster.master" errorPage="~/Errors/Error.aspx" Title="This will have an Error" AutoEventWireup="true" CodeFile="NewError.aspx.cs" Inherits="NewError" %> -
SQL Injection: Parameters Collection
Microsoft recommends using the parameters collection at this link to help prevent SQL Injection.
I am using the following code snipet
Basically,...Code:cmd.CommandText = "SELECT plazaName from Plaza WHERE zip=@ZipCode"; cmd.Parameters.Clear(); cmd.Parameters.Add("@ZipCode", SqlDbType.VarChar, 4); cmd.Parameters["@ZipCode"].Value = "45840"; -
I've moved on, with a workaround.
I'm curious about which is the correct Event, not other workarounds.
ThanksLeave a comment:
-
Thanks for the efforts,
Sure, I can "Make it work", with a hack here or there.
But it seems that I should be able to cancel the selecting request on the ObjectDataSourc e before it raises an error.
I couldn't find the event to do this in.Leave a comment:
-
looking for the right event
Thanks Frinavale,
Let me add some more details.
There is no "code" in the code behind page. I have the ObjectDataSourc e acting as the dataobject for an asp:GridView. All of the "Accessing" is taking place behind the seens.
So my question is actually:
Which event is the correct place to check for the validity of the QueryString...Leave a comment:
-
misformed QueryString Error / ObjectDataSource
Hi All,
I'm using an URL?ID=F28C680E-BC0B-485D-8CFE-8BC29656BF71 as a method parameter for an objDataSource.
That is a GUID from the query string.
So in testing I wanted to see what would happen if a person browsed to the page without an ID field in the QueryString,
And of course a error is thrown, "Can't covert 0000000-0000-0000-0000-000000 to a GUID"
Which is... -
Thank you for the replay, Frinavale.
Like many "nebulous" bugs, this one isn't easy to reproduce as consistant as I would like.
1. I am talking about debugging c# code. So I am referring to the Visual Studio Debugger
2. If All of my IE8 windows are closed, when I compile and execute my website from VS 2005 sp .050727-7600, it will hit the break point, and pause, or print out as would be expected....Leave a comment:
-
Thanks for the reply.
So I tried to reproduce, what I had listed, the spawned window. Yet NOW when I click in VS to stop debugging, all of my Spawned windows close down.
If I have the issue, I will try the Pause and then continue on Debugging, and see if that works for me.
Mainly I wanted to get a post up here, so some guidance would show up when other people did a search. Because, all i found was the...Leave a comment:
No activity results to display
Show More
Leave a comment: