Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 April 22nd, 2004, 04:34 PM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is XP Home Edition OK for the Samples?

Do the samples with the C# Edition need IIS to run? I don't want to have to buy XP Professional just to get them up and running. Will they run with an Apache Server?
 
Old April 23rd, 2004, 03:48 AM
Authorized User
 
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No way, Jose. ASP.Net only runs on IIS, and XP Home does not have it. There is an open source port project for .net called Mono, which might mean that you could get some of it to work on Apache but you'll have top research that yourself.

brian
 
Old April 26th, 2004, 01:14 PM
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

XP Pro with IIS is certainly better and is what I'm using but I think you might try the free Cassini with XP Home. It's downloadable. Look at http://www.asp.net/projects/cassini/download. If you do this and it's appropriate software, and it works, please leet the forum know. Thanks


-Ted
 
Old April 29th, 2004, 03:00 AM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. I've got cassini working but get the following problem(s)
when I try to use the samples. I can't net share any directories in
my XP home installation. I can share directories so this might not be
a problem.
BUT I get the following error when I point a browser to my Web site:
--------------------------------------------------------------------
Configuration ErrorServer Error in '/' Application.


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: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error can
be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 45: "Passport" and "None"
Line 46: -->
Line 47: <authentication mode="Forms">
Line 48: <forms name="ThePhile" path="/" loginUrl="/ThePhile/Modules/Users/Login.aspx"
Line 49: protection="All" timeout="30">

Source File: c:\wrox\thephile\web.config Line: 47

---------------------------------------------------------
Sorry for giving the whole error message.
Johno
 
Old May 1st, 2004, 11:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You've got a couple things to look for. I don't have XP Home, but I wondor if you can set a virtual dir to be an application dir on XP home - I don't think you can. Try right clicking on the folder and selecting "Sharing and Security", then "Web Sharing" - do you have these options?

I know Cassini works with XP home but I haven't used it myself. You have to have a way to tell it what the root dir is, and that it is an application.

I don't know this for sure, but I'm guessing the term "application" in this context means that you want the FrontPage Server Extensions installed in that folder? Can someone else confirm or deny this? The Front Page extentions are used by Visual Studio to edit files in that virtual directory.

Web Matrix and Borland's C# Builder both support Cassini and they do NOT need the FrontPage Extentions. But I think Visual Studio 2003 does need it, and this alone may not let it work on XP Home. The new version of VS 2005 (coming out in beta real soon) does not have this limitation, and it will work fine with it's own integrated version of Cassini, and it will work on XP Home. It can use FTP or HTTP instead of the FrontPage Extentions.

I'm guessing that Cassini may not even understand the concept of a virtual directory? It might assume that your application dir is always going to be the root for the web site. The error you posted hints at this. If this is the case, you'll find that ThePhile is not set up to run out of the root dir in a web site. It assumes you will run it from a virtual dir called "ThePhile":
http://localhost/thephile/Default.aspx

It is NOT set up to work this way:
http://localhost/Default.aspx

I could be off base on some of these ideas, but I wanted to give my 2 cents. I hope other people can add more info.

Eric
 
Old May 2nd, 2004, 02:08 PM
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I haven't used Cassini or XP Home. I suggested Cassini earlier because it came up in a users group meeting I went to a while back. I'm using VS .Net 2003 and XP Pro with IIS.

I don't think VS 2003 .Net needs (but it can use) frontpage server extensions. Here's a quote from the O'Reilly book "Mastering VS .Net."

"One of the choices you need to make when working with a web project is whether to use File Sharing or FrontPage Server Extensions to access your project files on the web server. By default, VS .Net will use File Sharing."

There's a Cassini thread in the forum under www.asp.net. There's some discussion about virtual directories and workarounds. Best is the pinned post on Cassini limitations. Also most ineresting is how Cassini got its name...

Johno, if you get this working could you share with the forum how you did it?



-Ted
 
Old May 11th, 2004, 12:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We have heard of some problems running higher end stuff on XP Home because there are a lot of bugs with XP Home. You can try to download all of the latest Home updates and see if that helps.

XUMUSKIEFAN
Wrox Moderator
 
Old May 11th, 2004, 03:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can try WebMatrix which has a built-in "Web Server".

http://www.asp.net/webmatrix/default...dex=4&tabId=46

"Development Web Server. Develop and test your ASP.NET applications, without requiring IIS. Web Matrix includes a lightweight personal web server that serves most web content, including ASP.NET pages and XML Web Services, for local requests."

 
Old May 12th, 2004, 12:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for posting the link stu9820. Let us know if it works or not.

XUMUSKIEFAN
Wrox Moderator





Similar Threads
Thread Thread Starter Forum Replies Last Post
XP Home Edition tweaks for VWD Express mfoskey BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 December 19th, 2007 12:59 PM
XP Home Edition permissions sevans ASP.NET 2.0 Basics 2 February 25th, 2007 09:38 PM
IIS in windows xp Home edition wromee Internet Information Services 6 July 26th, 2006 07:41 PM
can I use Windows XP HOME Edition with ASP.NET? IZRAILEVICH1 BOOK: Beginning ASP.NET 1.0 2 September 23rd, 2005 03:15 PM
what should i do to run ASP on XP home edition??? urstruly90 ASP.NET 1.0 and 1.1 Basics 4 July 19th, 2005 07:36 AM





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