Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A potentially dangerous Request.Path
Message
From
01/09/2011 11:15:16
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01522446
Message ID:
01522477
Views:
30
>Sorry, I should have looked more closely at your code.
>You can't use it in that way. As per the link RequestValidationType Property is simply defined as an attribute of HttpRuntimeSection:
>http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.requestvalidationtype.aspx
>You need a class such as this:
Public Class MyRequestValidator
>	Inherits System.Web.Util.RequestValidator
>	Protected Overrides Function IsValidRequestString(context As HttpContext, value As String, requestValidationSource__1 As System.Web.Util.RequestValidationSource, collectionKey As String, ByRef validationFailureIndex As Integer) As Boolean
>		validationFailureIndex = 0
>
>		'Spurious rejection test
>		If requestValidationSource__1 = RequestValidationSource.RawUrl AndAlso value.Contains("Default") Then
>			Return False
>		End If
>
>
>		Return MyBase.IsValidRequestString(context, value, requestValidationSource__1, collectionKey, validationFailureIndex)
>	End Function
>End Class
and then reference that in web.config.....

Thanks, so basically, the class was good but a reference was still needed in Web.Config.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform