Getting error while accessing Object

R

Ramesh

hi,
I have created COM when i try to use that instance in
C#.net Wep application i am getting following error
message. DBUsingCom is my Component name and
BusinessObject as a Class name.can anybody help to solve
this problem

Error message:

"Access to the registry key
HKEY_CLASSES_ROOT\DBUsingCom.BusinessObject 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\DBUsingCom.BusinessObject is denied.

ASP.NET is not authorized to access the requested
resource. Consider granting access rights to the resource
to the ASP.NET request identity. ASP.NET has a base
process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application
is not impersonating. If the application is impersonating
via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the
authenticated request user.

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 appropriate user or
group. Highlight the ASP.NET account, and check the boxes
for the desired access."
 
A

Arun Prakash G

Seems like the registry permission is not given to the user account.
Does the error occur even after assigning the permission for the user
account? Check the premissions for that node in the registry.

HTH
Arun G
 
R

Ramesh

hi,
I did some thing in my componet and it worked fine (I
don't know what i changed).
After that I have added two function in that component.
Then compiled and greated global assembly cache by using
gacutil.exe. Again when i try to execute the component i
got the same problem again (error message pasted in my
first mail). Anybody knows this problem?

Thanks,
Ramesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top