PC Review


Reply
Thread Tools Rate Thread

Could not find a part of the path Error (System.IO.__Error.WinIOEr

 
 
=?Utf-8?B?QWxleA==?=
Guest
Posts: n/a
 
      12th Oct 2005
Hello,

in my company, we have a diagnostic tool for hardware. Depending on the
hardware projcet, a different project configuration is needed. The
configuration file is written in XML and contains information for the
visualization and storage of the retrieved data.

From mid july till now, i have made 4 different configuration sets and
everything was fine. Today, i got the order to make a new configuration set.
When the xml file was ready, i edited the needed *.resx files and compiled
them to a *.dll.

I opened the diagnostic tool and loaded the project. When the project
structure validating process tries to read from the Language Ressource file,
the following error messages pops up:

"No file access possible. Could not find a part of the path "Path to the
local project\Ressources\Language.dll"

From the event Viewer:

1) Exception Information
*********************************************
Exception Type: System.IO.DirectoryNotFoundException
Message: Could not find a part of the path "C:\Program
Files\DiagnosticTool\Workspace\Projects\Projectnumber\Resources\Language.dll".
TargetSite: Void WinIOError(Int32, System.String)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at DiagStudio.clsDiagWorkspace.SetCurProject(String ProjPath)

Before the project structure is checked, the project is copied from a
network share to a local folder
(C:\Program Files\DiagnosticTool\Workspace\Projects\Projectnumber)
All files are copied into this directory.

I also monitored the hole process with sysinternals filemon. The copy
procedure is successfull. When the program tries to open the Language.dll for
reading the ressource string, the open procedure result is indicated as 'Path
not found'. Although i know the file is there.

All completed projects are working. Even if i recompile the language
ressources.

I checked the os permissions on the old and new projects which are the same.
Has someone encountered the same or a comparable problem and could help me?

Thanks.

Alex



 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleA==?=
Guest
Posts: n/a
 
      12th Oct 2005


"Alex" wrote:

> Hello,
>
> in my company, we have a diagnostic tool for hardware. Depending on the
> hardware projcet, a different project configuration is needed. The
> configuration file is written in XML and contains information for the
> visualization and storage of the retrieved data.
>
> From mid july till now, i have made 4 different configuration sets and
> everything was fine. Today, i got the order to make a new configuration set.
> When the xml file was ready, i edited the needed *.resx files and compiled
> them to a *.dll.
>
> I opened the diagnostic tool and loaded the project. When the project
> structure validating process tries to read from the Language Ressource file,
> the following error messages pops up:
>
> "No file access possible. Could not find a part of the path "Path to the
> local project\Ressources\Language.dll"
>
> From the event Viewer:
>
> 1) Exception Information
> *********************************************
> Exception Type: System.IO.DirectoryNotFoundException
> Message: Could not find a part of the path "C:\Program
> Files\DiagnosticTool\Workspace\Projects\Projectnumber\Resources\Language.dll".
> TargetSite: Void WinIOError(Int32, System.String)
> HelpLink: NULL
> Source: mscorlib
>
> StackTrace Information
> *********************************************
> at System.IO.__Error.WinIOError(Int32 errorCode, String str)
> at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
> Boolean bFromProxy)
> at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
> access, FileShare share, Int32 bufferSize)
> at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
> detectEncodingFromByteOrderMarks, Int32 bufferSize)
> at System.IO.StreamReader..ctor(String path)
> at DiagStudio.clsDiagWorkspace.SetCurProject(String ProjPath)
>
> Before the project structure is checked, the project is copied from a
> network share to a local folder
> (C:\Program Files\DiagnosticTool\Workspace\Projects\Projectnumber)
> All files are copied into this directory.
>
> I also monitored the hole process with sysinternals filemon. The copy
> procedure is successfull. When the program tries to open the Language.dll for
> reading the ressource string, the open procedure result is indicated as 'Path
> not found'. Although i know the file is there.
>
> All completed projects are working. Even if i recompile the language
> ressources.
>
> I checked the os permissions on the old and new projects which are the same.
> Has someone encountered the same or a comparable problem and could help me?
>
> Thanks.
>
> Alex
>
>
>

 
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
asp.net error: could not find a part of the path ipramod@gmail.com Microsoft ASP .NET 1 13th Nov 2007 09:26 AM
'Could not find a part of the path' error!! =?Utf-8?B?SmVuQw==?= Microsoft VB .NET 0 21st Sep 2006 03:46 PM
Cannot find a part of the path Error Ben Microsoft C# .NET 9 13th Sep 2006 11:16 PM
error: Could not find a part of the path =?Utf-8?B?cm91cWl1?= Microsoft ASP .NET 2 27th Sep 2005 02:10 PM
System.IO.DirectoryNotFoundException: Could not find a part of the path Matthias Ludwig Microsoft Dot NET 1 19th Nov 2003 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 AM.