Hi There;

We upgraded our CRM from 1.2 to version 3.0 today,we now get the below error
when attempting to connect to CRM.
The server is a Windows 2003 SP1 with SQL2000 SP4.

Your comments would be appreciated. :)

Server Error in '/' Application.
--------------------------------------------------------------------------------

Access is denied
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: Access is denied

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[Win32Exception (0x80004005): Access is denied]
Microsoft.Crm.RegControl.LoadLibrariesInternal(Boolean isInClientContext)
+774
Microsoft.Crm.RegControl.LoadLibraries() +31
Microsoft.Crm.MainApplication.Application_OnStart() +6




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300

RE: Server Error in '/' Application. by ArneJanning

ArneJanning
Mon Jan 16 10:11:02 CST 2006

Dear Richard,

"Richard Hoare" wrote:
> [Win32Exception (0x80004005): Access is denied]
> Microsoft.Crm.RegControl.LoadLibrariesInternal(Boolean isInClientContext)

I haven't seen that error before, but Microsoft.Crm.RegControl is part of
the CRM-configuration-system, abstracts and provides helper functions for
accessing the Windows registry. So at a first look I would assume that the
account in the CRM-Application Pool is lacking rights to read from the
registry.

I don't have a CRM-server and Reflector at my hands at the moment (I'm
sitting in an Internet Cafe without my notebook) but as far as I remember
RegControl.LoadLibrariesInternal loads a couple of native dlls into the
w3wp.exe-process. The names of the Dlls are in the registry, AFAIR separated
by comma in some registry-key.

So perhaps the CRM-AppPool doesn't have access to these dlls, which may
cause your problem as well.

HTH

Cheers

Arne Janning

RE: Server Error in '/' Application. by RichardHoare

RichardHoare
Mon Jan 16 12:00:03 CST 2006

Arne

I will look into this, thank you for your assistance.

Regards

Richard

"Arne Janning" wrote:

> Dear Richard,
>
> "Richard Hoare" wrote:
> > [Win32Exception (0x80004005): Access is denied]
> > Microsoft.Crm.RegControl.LoadLibrariesInternal(Boolean isInClientContext)
>
> I haven't seen that error before, but Microsoft.Crm.RegControl is part of
> the CRM-configuration-system, abstracts and provides helper functions for
> accessing the Windows registry. So at a first look I would assume that the
> account in the CRM-Application Pool is lacking rights to read from the
> registry.
>
> I don't have a CRM-server and Reflector at my hands at the moment (I'm
> sitting in an Internet Cafe without my notebook) but as far as I remember
> RegControl.LoadLibrariesInternal loads a couple of native dlls into the
> w3wp.exe-process. The names of the Dlls are in the registry, AFAIR separated
> by comma in some registry-key.
>
> So perhaps the CRM-AppPool doesn't have access to these dlls, which may
> cause your problem as well.
>
> HTH
>
> Cheers
>
> Arne Janning

RE: Server Error in '/' Application. by RichardHoare

RichardHoare
Mon Jan 16 13:41:03 CST 2006

Arne

Thanks for your assistance, applying local system account to the CRMAppPool
has fixed the problem.

Kind Regards

Richard

"Arne Janning" wrote:

> Dear Richard,
>
> "Richard Hoare" wrote:
> > [Win32Exception (0x80004005): Access is denied]
> > Microsoft.Crm.RegControl.LoadLibrariesInternal(Boolean isInClientContext)
>
> I haven't seen that error before, but Microsoft.Crm.RegControl is part of
> the CRM-configuration-system, abstracts and provides helper functions for
> accessing the Windows registry. So at a first look I would assume that the
> account in the CRM-Application Pool is lacking rights to read from the
> registry.
>
> I don't have a CRM-server and Reflector at my hands at the moment (I'm
> sitting in an Internet Cafe without my notebook) but as far as I remember
> RegControl.LoadLibrariesInternal loads a couple of native dlls into the
> w3wp.exe-process. The names of the Dlls are in the registry, AFAIR separated
> by comma in some registry-key.
>
> So perhaps the CRM-AppPool doesn't have access to these dlls, which may
> cause your problem as well.
>
> HTH
>
> Cheers
>
> Arne Janning