Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 March 29th, 2006, 05:10 AM
Authorized User
 
Join Date: Dec 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eelisMX
Default Error: Could not find a part of the path

Hi

I get a web service error that says: "Could not find a part of the path" followed by an absolute path that is definitely exist on the local machine (not a mapped drive and not a network path). The error is randomly generated from the Directory.GetDirectories method.

Some comments I found suggested it might be caused by folder permission as the web service is running under the built-in NetworkService account. All the folders that raised the error has the NetworkService account with the required permissions and as I stated before, the error is randomly generated - very few times actually comparing to the times the method is used.

My server is running on Win2003 server and IIS 6.
Web service: VB.Net and .Net 1.1

Thanks for any assistance!

eelis
 
Old June 5th, 2006, 03:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

If the error is randomly generated, then that means that sometimes it is not generated: ergo, it is not a permissions problem.

But I think it is either a collision issue, or a failure of the resource to be found in the designated available time period.

Since it occurs rarely, I would create an error handler that picks up this error, and—as a matter of course—re-issues the request for the resource like 6 or 8 times. (Be sure to set a limit on the number of times that the re-request can be made or you will spawn a monster.)
 
Old July 4th, 2006, 02:22 AM
Authorized User
 
Join Date: Dec 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eelisMX
Default

Thanks Brian.

I will look into your error handling suggestion.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Table path using 4 part naming convention snufse SQL Server 2000 1 February 1st, 2008 07:45 PM
Could not find a part of the path babarrana ASP.NET 2.0 Professional 3 August 21st, 2007 09:05 AM
Error while setting class path sujithmathew Linux 1 August 3rd, 2007 01:02 PM
Web Part - Showing error angshujit ASP.NET 2.0 Basics 2 June 21st, 2007 03:28 AM
iis cannot find images in relative path vhrao ASP.NET 1.x and 2.0 Application Design 4 November 30th, 2004 11:00 AM





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