Wrox Programmer Forums
|
BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Special Edition by Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muhammad, Srinivasa Sivakumar; ISBN: 9780470041789
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 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 March 2nd, 2006, 05:44 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listing 4-14 Question

If I run the code in example 4-14: Using the callback feature to populate a random value to a web page (exactly as downloaded) in Visual Web Developer 2005 Express Edition, everything works fine.

If, however, I run the code with IIS (XP Professional) -- same files, same directory location -- I get the error:

   Line 70
   Char 1
   Error object expected
   Code: 0

If I try in Firefox, I get:

   WebForm _InitCallback is not defined (line 68)

I suspect it has something to do with the WebResources.axd?

If I point IE to:

http://localhost:2317/RandomNumber/W...44679945312500

things work and javascript is displayed (I assume port 2317 is the build-in Web developer server),

if I point IE to:

http://localhost/RandomNumber/WebRes...44679945312500

I get a page cannot be found by IIS.

Any help/suggestions on what needs to be done to get it working in IIS would be greatly appreciated.

Thanks
 
Old March 6th, 2006, 02:31 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem found!

After a long weekend of debugging I found the problem:

When ASP.Net 2.0 was installed (via Windows Update), it did not put an entry for the .axd file type in IIS under directory, configuration, mappings.

Actually I had discovered this days ago and put in the entry by duplicating the entry for .aspx -- that didn't work so I went off on another long debugging tangent with the web.config file, which eventually led me back to the IIS entry for .axd -- the critical problem was the "Check that file exists" box must not be checked (obviously -- once I think about it).

Anyway once the entry:

.axd

c:\windows\microsoft.net\framework\v2.0.50727\aspn et_isapi.dll

limit to: GET, HEAD, POST, TRACE

Script Engine

was added to the IIS configuration, everything started to work.

Microsoft owes me another lost weekend!







Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 8-10 and Listing 8-16. Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 6th, 2008 01:11 PM
Listing 11-6 Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 November 6th, 2006 03:15 PM
Listing 8-11 nike76 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 November 2nd, 2006 02:59 PM
Listing members quiksilverhg Excel VBA 1 October 6th, 2005 05:09 AM
No Errata Listing tialoc JSP Basics 6 August 6th, 2003 08:46 AM





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