Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 05:53 PM
Registered User
 
Join Date: Dec 2003
Location: Columbia, MD, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Nothins2Sure
Default FileManager Module - Problem w/ Editor?

I'm currently using the VB.net Edition of this book, and I have gotten the FileManager module working. :D

My problem is with the editor. I can click on the edit file icon, and all the files seem to open fine in the editor, but while in the editor, if I try and hit the Save or Back to File Manager buttons, I get this error... :(


Error
---------------------------------------------------------------------
An unexpected error has occurred on this page.The system administrators have been notified.

The error occurred in:
//localhost/Wrox/ThePhile/WebModules/FileManager/EditFile.aspx?File=/Wrox/ThePhile/Default.aspx

Error Message:
A potentially dangerous Request.Form value was detected from the client (FileContent="...scx" %>

Error Stack:System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (FileContent="...scx" %>
---------------------------------------------------------------------


Any ideas


 
Old December 19th, 2003, 04:14 AM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem once and added this <pages validateRequest> to the web.config file:

<pages validateRequest="false" />
</system.web>

After this change, all pages appear to work on 1.1

 
Old April 25th, 2004, 10:03 PM
Registered User
 
Join Date: Apr 2004
Location: Long Island City, New York, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the exact same error when I first ran it after downloading framework 1.1 (after building with 1.0 libraries).

Anyone know if that fix leaves a security problem, or does the fix just address a backwards compatibility issue with the framework?

Any comments would be appreciated.

Thanks.
 
Old April 26th, 2004, 12:51 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, it leaves a potential security hole ;)
That is, people can submit stuff to your server that they shouldn't. You could set the validateRequest to false, and then make sure you perform the validation yourself, replacing or rejecting unacceptable values.
Check out this page at www.asp.net for more info: http://www.asp.net/faq/RequestValidation.aspx

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


 
Old September 20th, 2004, 09:27 PM
Registered User
 
Join Date: Sep 2004
Location: Atlanta, , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar. That link helped me answer a related question. I already had the code to encode the HTML, but was still getting a compilation error because I didn't place the validateRequst correctly. ;0

Shea Ellison
Strategic Internet Consulting
Creating Measurable Value Through Your Internet Presence
Office Direct Line: 770-454-1190
Voicemail/Fax: 888-227-4979
www.strategic-internet.com
 
Old September 20th, 2004, 09:39 PM
Registered User
 
Join Date: Sep 2004
Location: Atlanta, , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found my answer in a link at the bottom of the next posting related to this search term "validateRequest". btw, I'm using the "Dynamic Websites w/ASP.NET Web Matrix book.

I also realized I had that giant sig file! Sorry people. I trimmed it down as you can see. ;)

Shea
www.strategic-internet.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Module Creation Problem SandersM Access VBA 2 June 19th, 2007 12:18 PM
Problem with Configuration Module Amateur BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 November 29th, 2006 12:26 PM
Module News Problem thanhh83 BOOK: ASP.NET Website Programming Problem-Design-Solution 9 May 16th, 2006 09:41 PM
problem with forum module anass BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 8th, 2005 01:47 AM
FileManager Application bpgadhia BOOK: ASP.NET Website Programming Problem-Design-Solution 3 February 3rd, 2004 04:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.