Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 3
This is the forum to discuss the Wrox book Professional ASP.NET MVC 3 by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen; ISBN: 978-1-1180-7658-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 3 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 October 11th, 2011, 03:31 PM
Authorized User
 
Join Date: Nov 2007
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default AntiXSS 4.0 v 4.1

The book says to download AntiXSS 4.1, but only 4.0 is available on the cited website. May I assume that, having downloaded 4.0, not changing the Html.Encode calls to a proprietary encoder class explains why I get an error message, and that it doesn't work? I am sure that I downloaded the .msi, installed, copied to a "Dependencies" folder in the tutorial project, and added the reference (which appears in reference).

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'AntiXSSLibrary.dll' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 11: </appSettings>Line 12: <system.web>Line 13: <httpRuntime encoderType="AntiXSSEncoder, AntiXSSLibrary.dll"/>Line 14: <compilation debug="true" targetFramework="4.0">Line 15: <assemblies>
 
Old October 13th, 2011, 12:45 AM
Wrox Author
 
Join Date: Jan 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

So this is my fault, as I'm the owner of AntiXSS. When Jon was writing that chapter we had planned to release 4.1 before the book. Unfortunately we've not managed that as yet (for various reasons)

The source for 4.1 (beta) is available, so you can download it from wpl.codeplex.com and compile it up yourself, and then use that binary as Jon as described.
The Following User Says Thank You to blowdart For This Useful Post:
JackHerr (October 13th, 2011)
 
Old October 14th, 2011, 01:40 PM
Registered User
 
Join Date: Oct 2011
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

or if you just don't want to download the beta you could always just download the nuget package and create your own encoder.
Which I did using the post here: http://haacked.com/archive/2010/04/0...r-asp-net.aspx
The Following User Says Thank You to AdmiringWorm For This Useful Post:
JackHerr (October 14th, 2011)









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