Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 11th, 2011, 04:31 PM
Authorized User
Points: 108, Level: 2
Points: 108, Level: 2 Points: 108, Level: 2 Points: 108, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: North Salem, NY, USA.
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>
  #2 (permalink)  
Old October 13th, 2011, 01:45 AM
Wrox Author
Points: 39, Level: 1
Points: 39, Level: 1 Points: 39, Level: 1 Points: 39, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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)
  #3 (permalink)  
Old October 14th, 2011, 02:40 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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)
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 08:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.