Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 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 August 25th, 2005, 10:59 PM
Authorized User
 
Join Date: Jun 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 11: Global.asax

I've been storing the files for the exercises on my Win2k3 IIS/ASP.NET server. The Global.asax doesn't seem to work there, but when I run it in WebMatrix it works just fine.

Is the Global.asax a file that only works on a WebMatrix server? If so, is there a way I can tweak it or substitute it so that I can get the same functionality on my other server?
 
Old July 4th, 2006, 11:00 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have just had the same problem as bonehead, and come out of the other side. In case anyone else hits this issue:

The Global.asax file will work on IIS, but it must be placed in the root directory, which for this application is C:\BegASPNET. If you place the file in C:\BegASPNET\WroxUnited, as shown in figure 11-13 of Chapter 11, then it won't work.

C:\BegASPNET is the physical directory which has been defined as a virtual directory with the name BegASPNET11 using the Virtual Directory Creation Wizard in IIS (Appendix E). This is where the application is considered to run, for purposes of locating the asax file.

The Application storage has to be cleared out by ending the aspnet_wp.exe Process (the one running under a user name of ASPNET) using Task Manager. Ending the Application for the Chat page has no effect on the storage. Obviously, the instruction on page 415 to shut down the Web Matrix Server is not relevant if you are using IIS.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
Global.asax error sivaganesh_naidu ASP.NET 2.0 Professional 2 August 24th, 2006 10:53 AM
what is global.asax? gaurav_jain2403 General .NET 1 February 3rd, 2006 02:40 PM
global.asax ashokparchuri ADO.NET 1 February 25th, 2005 08:40 AM





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