I have downloaded a Data Access Component from Wrox which is featured in
Chapter 11 of 'Professional VB.NET 2nd Edition'. When I try to use it in
my pages I get the following error:
"
Access to the registry key HKEY_CLASSES_ROOT\FPD.Data.ctrlSQLDAL 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.UnauthorizedAccessException: Access to the
registry key HKEY_CLASSES_ROOT\FPD.Data.ctrlSQLDAL is denied.
The ASP.NET process is not authorized to access the requested resource.
For security reasons the default ASP.NET process identity is '{machinename}
\ASPNET', which has limited privileges. Consider granting access rights to
the resource to the ASP.NET process identity.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check
the Write box in the Allow column.
Source Error:
Line 44:
Line 45: 'Try
Line 46: objDAL = New ctrlSQLDAL()
Line 47: objDAL.DBConnection = strConnection
Line 48:
Source File: C:\Inetpub\wwwroot\fpd\cms\cma\ContentList.ascx.vb Line:
46
"
I have used the sn tool to generate an .snk file and also registered
FPD.Data.dll with regsvcs. Both gave success messages. I have tried
changing the permissions for the APSNET user but I don't really know what
I'm doing when it comes to Windows security.
I am running windows 2000 pro if that matters. I have been pulling my
hair out now for about two weeks over this one.
Can anyone out there help please.
Thanks,
Andy