In the MSCRM 3.0 SDK there is sample code for callouts (Server Programming Guide\Business Logic Extensions (Callouts)\Callout Samples\Source Code Samples). In the code sample, the install directory path of the MS CRM web application is retrieved from the registry to get access to a configuration file. But there seems to be a little problem with this code sample. If you use it as it is, you probably get a SecurityException stating that "Requested registry access is not allowed". To avoid this you should change
RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\MSCRM", true);
to
RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\MSCRM", false);
The difference is that in the second version, the key is retrieved as read-only.
Thanks to my colleague Maik for bringing this up!