Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #1 (permalink)  
Old March 2nd, 2006, 05:44 PM
Registered User
 
Join Date: Mar 2006
Location: Vancouver, WA, USA.
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
  #2 (permalink)  
Old March 6th, 2006, 02:31 PM
Registered User
 
Join Date: Mar 2006
Location: Vancouver, WA, USA.
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!


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


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



All times are GMT -4. The time now is 07:25 PM.


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