D
Darren Fitzgibbon
We have an application written in C# and compiled about 2 years ago with
Visual Studio 2005. This application is supports one of our legacy VB6
applications and needs to read the legacy application's INI file from the
Windows directory. Under a normal standalone install this is usually the
C\Windows folder, however under Terminal Services/Citrix the INI file is
mapped to a Windows folder within their profile. The C# application uses
GetPrivateProfileString and GetWindowsDirectory from the kernel32 library, in
the original build this worked, but we have had cause to recompile the
application without any changes to the INI file support classes, since
recompliing the application only picks up the system's Windows folder not the
user profile Windows folder.
In side by side tests on the same terminal services machine, the original
build still behaves correctly, the legacy VB6 app behaves correctly, and new
builds of the C# app fails to get the folder from the user profile. I have
rebuilt the C# app with both VS2005 and VS2008 with the same results.
Does anyone know why the old application works but the same code now fails.
Regards Darren
Visual Studio 2005. This application is supports one of our legacy VB6
applications and needs to read the legacy application's INI file from the
Windows directory. Under a normal standalone install this is usually the
C\Windows folder, however under Terminal Services/Citrix the INI file is
mapped to a Windows folder within their profile. The C# application uses
GetPrivateProfileString and GetWindowsDirectory from the kernel32 library, in
the original build this worked, but we have had cause to recompile the
application without any changes to the INI file support classes, since
recompliing the application only picks up the system's Windows folder not the
user profile Windows folder.
In side by side tests on the same terminal services machine, the original
build still behaves correctly, the legacy VB6 app behaves correctly, and new
builds of the C# app fails to get the folder from the user profile. I have
rebuilt the C# app with both VS2005 and VS2008 with the same results.
Does anyone know why the old application works but the same code now fails.
Regards Darren