.NET calls .dll which can't find .ini ?

  • Thread starter Thread starter Bob Morrow
  • Start date Start date
B

Bob Morrow

Frustrating problem. I have a .dll [created in VB6] that is called by all
the .NET programs that we are developing.

The dll reads an .ini file to determine if it should fill a data dictionary
from the development or production SQL Server. If no .ini is found it
defaults to production.

I recently started using a new PC with Win XP. The process works except for
finding the .ini file. I always get the production environment as if the
..ini does not exist. Other developers have upgraded to Win XP and do not
have this problem.

Are there any suggestions? I have reregistered the dll; moved the .ini file
to the C:\ root and to the startup directory of the program I'm developing;
and attempted to step thru the code. I am unable to determine why the dll
does not find the ini file.

Bob
 
There is no indication of a problem. The dll is designed to proceed to
Production if the .ini is not found as we do not place it on the client
machine. It's just on the developer so we can test to a developer or
production database.

The only anomaly is the dll doesn't find the .ini file even though it's hard
coded in the program.
Thank you for the response.

Kapil Maheshwari said:
Is there any IO-related exception thrown ?

Kapil Maheshwari

Bob Morrow said:
Frustrating problem. I have a .dll [created in VB6] that is called by all
the .NET programs that we are developing.

The dll reads an .ini file to determine if it should fill a data dictionary
from the development or production SQL Server. If no .ini is found it
defaults to production.

I recently started using a new PC with Win XP. The process works except for
finding the .ini file. I always get the production environment as if the
.ini does not exist. Other developers have upgraded to Win XP and do not
have this problem.

Are there any suggestions? I have reregistered the dll; moved the .ini file
to the C:\ root and to the startup directory of the program I'm developing;
and attempted to step thru the code. I am unable to determine why the dll
does not find the ini file.

Bob
 
Back
Top