473,385 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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\Projectnum ber\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\Projectnum ber)
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

Oct 12 '05 #1
1 4460


"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\Projectnum ber\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\Projectnum ber)
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

Oct 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then...
1
by: Theerachet Pratoommanee | last post by:
This is error message I've got. Any suggestion would be appreciated. Server Error in '/WebDirectory' Application. ----------------------------------------------------------------------------...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
9
by: Clinton Frankland | last post by:
Hi, On a Windows 2000 Server when attempting to use System.IO.Directory.CreateDirectory(string.concat(Server.MapPath(""), "\verify")) I receive a System.IO.DirectoryNotFoundException error:...
14
by: Gianfranco | last post by:
Hi everybody, First of all, sorry for my english if it isn't perfect ;-p I have an error in an asp.net application. I have win2003 server, with iis 6. I'm developping with visual studio...
1
by: Alex | last post by:
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...
2
by: job | last post by:
In a sharepoint setup using smartpart to load our user controls using enterprise blocks (data) we are getting some strange errors (logged to the event log). We dont get the error all the time. When...
1
by: jalupinu | last post by:
My OS is Winxp SP2 and the software I am having trouble with is Maximizer 9.5 Enterprise. It has a Web Portal feature that i am trying to use and followed the instructions to set it up however I keep...
2
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.