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 25th, 2006, 11:15 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default setup error

I am trying to run thephileVB file that i have download sample code from this site. But an error occur when I run it at localhost. I did change my server to database server name.


Error

--------------------------------------------------------------------------------
An unexpected error has occurred on this page.The system administrators have been notified.

The error occurred in:
http://localhost/thephileVB/Default.aspx

Error Message:
Access to the path 'C:\wrox\ThePhileVB\Config\Polls.Config' is denied.

Error Stack:
System.UnauthorizedAccessException: Access to the path 'C:\wrox\ThePhileVB\Config\Polls.Config' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.G etSettings() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configur ation\ModuleConfig.vb:line 35
   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 252
   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 54
   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(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Thanks for you patient with me.

Lovelyhelp
 
Old February 25th, 2006, 11:27 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

According to other member that having the same error as me, Wiley have asked to change the filestream to You need to modify the FileStream constructors in the ModuleConfig.vb or ModuleConfig.cs files as described below.

Users with VB.NET version of Code


    Dim fs As New FileStream(fileName, FileMode.Open, FileAccess.Read)

and i have done accordingly but i still having the same error.

Thanks for you patient with me.

Lovelyhelp
 
Old February 27th, 2006, 08:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have an NTFS permission error. Your ASPNET user account needs access to the folder indicated in your error message.





Similar Threads
Thread Thread Starter Forum Replies Last Post
XP IIS setup Browse Error harrison4411 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 8 March 15th, 2006 05:43 AM
setup error in deployment wizard prabathsrp Beginning VB 6 7 March 13th, 2006 09:17 AM
Web Setup Project - Error carlos_2908 ASP.NET 1.0 and 1.1 Professional 2 February 1st, 2006 12:42 AM
setup error caojun SQL Language 0 April 14th, 2005 02:01 AM
Setup Initialization Error RobinR MySQL 1 April 6th, 2004 02:49 PM





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