Security exception issue in Vista / .Net 1.1 and .Net Configuratio

  • Thread starter Thread starter TimThornton
  • Start date Start date
T

TimThornton

Hi,
We have a .Net 1.1 application which runs fine on older versions of Windows
but causes a SecurityException under Vista when the application tries to read
the modem properties from the registry, as can be seen from the stack trace
from the exception handler:
************** Exception Text **************
System.Security.SecurityException: Requested registry access is not allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name)
at
MCIL.Core.Windows.Devices.Modem.ModemCollection.DetectModemNamesWin32NT()
at MCIL.Core.Windows.Devices.Modem.ModemCollection.DetectModems()
at MCIL.Core.Windows.Devices.Modem.ModemCollection..ctor()

As a quick fix for the user I'm trying to sort this out using the .Net
Configuration 1.1 tool, but with no success. Here is what I have done:
Gone to My Computer/Runtime Security Policy/User/Code Groups/All_Code
Added a subgroup called Smartcom
Set Membership Condition to URL and set the URL to file://C:/Program
Files/SmartCom/* (where both the EXE and the DLLs of the applicvation are
stored)
Tried Permission Trust levels of Full Trust and of Everything
but this makes no difference.
Any suggestions of what to try next?
Regards
 
I've no experience coding for Vista but my first thought on see that
was User Account Control.
 
Back
Top