PC Review


Reply
Thread Tools Rate Thread

StreamWriter creation error

 
 
Matt
Guest
Posts: n/a
 
      17th Jul 2008
Hi There,
Our application creates a file using StreamWriter. The application
creates the file in a unique path and deletes the folder after the
file is transferred to a designated location (a network drive or a
another folder). The problem that we are facing is that some times
(usually after more than 12000 to 18000 such file/folder operations
i.e., create folder, create file, transfer, delete) the StreamWriter
creation fails with "Could not find a part of the path" error. Here's
my flight log for the error. As becomes obvious from the log, the File
creation failed with the path error even after the directory was
created successfully. So my doubt is, does the .Net framework (or
Windows) cache folder creation? I read something akin to this here
http://blogs.msdn.com/bclteam/archiv...02/434689.aspx

2008/07/16 17:20:35:665 Directory Created: E:\Sessions
\20080716-052035665_Macro
2008/07/16 17:20:35:665 Directory Created: E:\Sessions
\20080716-052035665_Macro\Temp
2008/07/16 17:25:34:900 Could not find a part of the path E:\Sessions
\20080716-052035665_Macro\Temp\20080716-052035665.txt

Thanks in advance for all your responses,
Musthafa


 
Reply With Quote
 
 
 
 
tim
Guest
Posts: n/a
 
      26th Jul 2008
Are you using multithread in your application?

"Matt" <(E-Mail Removed)> wrote in message
news:5b84eee4-0988-41ce-94fd-(E-Mail Removed)...
> Hi There,
> Our application creates a file using StreamWriter. The application
> creates the file in a unique path and deletes the folder after the
> file is transferred to a designated location (a network drive or a
> another folder). The problem that we are facing is that some times
> (usually after more than 12000 to 18000 such file/folder operations
> i.e., create folder, create file, transfer, delete) the StreamWriter
> creation fails with "Could not find a part of the path" error. Here's
> my flight log for the error. As becomes obvious from the log, the File
> creation failed with the path error even after the directory was
> created successfully. So my doubt is, does the .Net framework (or
> Windows) cache folder creation? I read something akin to this here
> http://blogs.msdn.com/bclteam/archiv...02/434689.aspx
>
> 2008/07/16 17:20:35:665 Directory Created: E:\Sessions
> \20080716-052035665_Macro
> 2008/07/16 17:20:35:665 Directory Created: E:\Sessions
> \20080716-052035665_Macro\Temp
> 2008/07/16 17:25:34:900 Could not find a part of the path E:\Sessions
> \20080716-052035665_Macro\Temp\20080716-052035665.txt
>
> Thanks in advance for all your responses,
> Musthafa
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference in Filestream + StreamWriter and just StreamWriter =?Utf-8?B?aXdkdTE1?= Microsoft VB .NET 1 2nd Aug 2006 02:40 PM
ASP.NET StreamWriter error GTi Microsoft C# .NET 6 10th Dec 2005 09:48 PM
ASP.NET C# WriteToFile StreamWriter error: 'StreamWriter' could not be found rex64 Microsoft C# .NET 4 15th Jun 2005 04:46 PM
capture using(StreamWriter wr = new StreamWriter()) exceptional kids_pro Microsoft C# .NET 6 3rd Sep 2004 08:53 PM
Form creation exception error; swapping delaying object creation? Fiona McBride Microsoft Dot NET 0 20th Apr 2004 10:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 PM.