D
Doug
Hi
I am using vs2005 on xp pro machines and i have a variable that is declared
as:
public string user = SystemInformation.UserName.ToString();
On one of my computers this works well and allows the variable 'user' to be
set the the user login name., this then allows another method to use the
variable to map to a dataset.
However on my notebook computer, i get the following error:
Request for the permission of type
'System.Security.Permissions.EnvironmentPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I have googled the error but only find references to webpages.
When i compile the app on the other machine and run it on the notebook it
works - but I need to debug on the notebook while I am travelling.
Any help to resolve this would be appreciated.
Doug
I am using vs2005 on xp pro machines and i have a variable that is declared
as:
public string user = SystemInformation.UserName.ToString();
On one of my computers this works well and allows the variable 'user' to be
set the the user login name., this then allows another method to use the
variable to map to a dataset.
However on my notebook computer, i get the following error:
Request for the permission of type
'System.Security.Permissions.EnvironmentPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I have googled the error but only find references to webpages.
When i compile the app on the other machine and run it on the notebook it
works - but I need to debug on the notebook while I am travelling.
Any help to resolve this would be appreciated.
Doug