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 February 4th, 2004, 11:32 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invalid path for MapPath

Problem with ThePhileVB running on Win2k.At first time I think the same problem with topic ID=640. Then I try to follow that forum but problem still persist.

Error Message
Invalid path for MapPath 'C:/wrox/ThePhileVB/Config/Polls.Config'. A virtual path is expected.

Error Stack:
System.ArgumentException: Invalid path for MapPath 'C:/wrox/ThePhileVB/Config/Polls.Config'. A virtual path is expected.
   at System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.G etSettings() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configur ation\ModuleConfig.vb:line 31
   at Wrox.WebModules.Polls.Business.Question.GetCurrent Id() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Business \Question.vb:line 224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataB ind() in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_ Load(Object sender, EventArgs e) in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 62
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain()

I try to modify FileStream constructors in the ModuleConfig.vb in all config file (follow FAQ that sent with download source code.) and rebuild solution but can't solve problem.
Dim fs As New FileStream(fileName, FileMode.Open, FileAccess.Read)
 
Old February 4th, 2004, 11:49 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

farther information about my PC
I use WIN2K Por, SQL Server Pro, .Net Framework version 1.0
drive E:---> Win2K , SQL, IIS
drive C:---> C:\wrox\ThePhileVB(I must install the same drive with WIN2K, IIS, SQL or not?)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
using app.path in database path and filename kd8con VB Databases Basics 2 October 25th, 2006 11:45 AM
Invalid report file path cathiec Crystal Reports 0 June 30th, 2005 10:10 AM
Invalid database Path MrDannyP VB Databases Basics 1 January 7th, 2004 10:15 AM





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