Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 20th, 2007, 07:15 AM
Registered User
 
Join Date: Dec 2006
Location: Karachi, , Pakistan.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default COM Interop Access to the registry key denied

Hi, i created a component in .net 2.0 , theres a portion in the component that reads some stuff from the win32 registry

i tested this component in another desktop application dev. in 2.0

eventually this component was to be used in ASP 3 via COM interop

when I call the component methods i get the following error:


Error Type:
mscorlib (0x80070005)
Access to the registry key 'HKEY_LOCAL_MACHINE\Software\*****' is denied.

any idea? this works fine from any other .net App



  #2 (permalink)  
Old March 21st, 2007, 02:00 AM
Registered User
 
Join Date: Dec 2006
Location: Karachi, , Pakistan.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

access to registry is restricted because the default settings for the ASP account IUSR_ServerName does not have access privileges to access the registry, if the account security is increased to administrator then this works.

but the problem is that i cant change the privileges for the IUSR_ServerName account for the production server.

can anyone help to run com interop COM under a different account ? the COM is registered using regasm
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Path from the registry key in VB.NET remya1000 General .NET 1 September 2nd, 2008 04:01 PM
Registry Key Object s3ss3s BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 May 6th, 2008 01:26 PM
Fetch Licence key from Remote Registry saumya Visual Studio 2005 0 December 3rd, 2007 11:32 PM
create a registry key sentme_mail General .NET 0 January 28th, 2006 09:28 AM



All times are GMT -4. The time now is 07:27 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.