470,566 Members | 1,456 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,566 developers. It's quick & easy.

Getting error while accessing Object

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."
Nov 15 '05 #1
2 2742
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

Ramesh wrote:
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."


Nov 15 '05 #2
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
-----Original Message-----
Seems like the registry permission is not given to the user account.Does the error occur even after assigning the permission for the useraccount? Check the premissions for that node in the registry.
HTH
Arun G

Ramesh wrote:
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."


.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.