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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Alex said:
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
 
Back
Top