|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GetEnvironmentVariable in Windows ServiceI've written code in VB.Net that calls GetEnvironmentVariable. When I
execuate the code as part of a Windows Form, it reads the environment variable with no problem. I put the code in a Windows Service, however, and it can't seem to read the same environment variable. I used Microsoft .Net Framework to give the application every possible permission, but it doesn't seem to help. Ideas? <fdma***@yahoo.com> schrieb
> I've written code in VB.Net that calls GetEnvironmentVariable. When Is it a user specific environment variable, or a system variable?> I execuate the code as part of a Windows Form, it reads the > environment variable with no problem. > > I put the code in a Windows Service, however, and it can't seem to > read the same environment variable. > > I used Microsoft .Net Framework to give the application every > possible permission, but it doesn't seem to help. > > Ideas? Control panel -> System: Folder "extended" -> Button "Environment variables" The service is usually running under a different account. Armin It is a system variable. It was originally a user variable, so I
switched to system variable, but with no better results.
XML to ODBC
DataView Multiple Change String builder (Parsing vertically presented records) Programming for Touch Screens Sub Main is not waiting!!!?? Adding data to database including resource files Sending web email XmlDocument object to string - plase help with unusual character! need help with regular expression |
|||||||||||||||||||||||