CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 8/28/2007 12:36:11 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
jvaradarajan
Asp.Net User
How to set the registry key8/28/2007 12:36:11 AM

0/0

My ASP.NET page gives the following error in my machine. It works fine in other machine.

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\Write.Account is denied.

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.

I'm not sure if it's with my machine or my user id. I added ASP.NET and gave full permissions, but still I get the same error. I debugged it, I guess there is error in the following line of code

this.gui = new Guid(strFile);

The value in strFile is always empty(if this is going to help). Could someone tell me if I'm missing something?

 

dwhite
Asp.Net User
Re: How to set the registry key8/28/2007 1:22:57 AM

0/0

It's saying that the account running your ASP.NET site does not have write permissions to the registry.  Assuming your site is running under "Network Service", you would need to grant that user access.

-Damien


** Remember to mark posts as the answer to help future users. **
Visoft, Inc - Web Site | Blogs
jvaradarajan
Asp.Net User
Re: How to set the registry key8/28/2007 10:24:10 AM

0/0

 I gave full control but still I'm getting the same error. I went to the registry and gave full permission to the entire HKEY_CLASSES_ROOT and also tried give me permissions over there. Still, it's the same problem

dwhite
Asp.Net User
Re: How to set the registry key8/28/2007 12:21:35 PM

0/0

Go to the advanced settings of the root folder and check "Replace permission entries on all child objects...", then Apply.

-Damien


** Remember to mark posts as the answer to help future users. **
Visoft, Inc - Web Site | Blogs
jvaradarajan
Asp.Net User
Re: How to set the registry key8/28/2007 1:45:24 PM

0/0

I gave permissions still I'm getting the same error. I tried it in some other machine with the same user id, it works. It works fine from our website. I'm getting this problem when I run it from local server. There might be a possibility that during the upload process, the location where the files are supposed to be uploaded temporarily might not have access. Is there any particular place to find the temporary folders of .NET?

dwhite
Asp.Net User
Re: How to set the registry key8/28/2007 2:04:17 PM

0/0

The folder is C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

Are you using impersonation?  Could you perhaps be giving the wrong user access?

-Damien

 


** Remember to mark posts as the answer to help future users. **
Visoft, Inc - Web Site | Blogs
jvaradarajan
Asp.Net User
Re: How to set the registry key8/28/2007 2:19:05 PM

0/0

I tried giving permissions to the temporary folder too. Still I'm getting the same error. I'm not using impersonation.  I forgot to post the line of code which was in the stack trace(if it might be helpful)
Failed to register assembly 'bllwrite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=""

dwhite
Asp.Net User
Re: How to set the registry key8/28/2007 2:38:11 PM

0/0

Are you are using COM?  Is "Failed to register assembly..." a new error after you set permissions?

One other question, what user is running you application?  You could be giving permissions to the wrong user.  If you are using the ASP.NET Development Server (e.g. localhost:####) then this runs under your user ID not Network Service.

-Damien


** Remember to mark posts as the answer to help future users. **
Visoft, Inc - Web Site | Blogs
jvaradarajan
Asp.Net User
Re: How to set the registry key8/28/2007 2:47:19 PM

0/0

No it's there before. I'm the user running the application and I've admin rights. I was giving all sorts of permissions to myself

 

jvaradarajan
Asp.Net User
Re: How to set the registry key8/28/2007 8:25:18 PM

0/0

The problem is fixed. There were some application components which was not installed in Component Services. Once I installed, it's fine. Thanks for all your help!

10 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Managing the Windows 2000 Registry Authors: Paul Robichaux, Pages: 552, Published: 2000
Beginning Visual Basic 2005 Databases Authors: Thearon Willis, Pages: 736, Published: 2006
Microsoft Windows XP Power Productivity Authors: Jim Boyce, Pages: 637, Published: 2005
Hacking Exposed Windows Server 2003: Windows Server 2003 Authors: Joel Scambray, Stuart McClure, Pages: 628, Published: 2003
Windows NT Security Authors: Michael McInerney, Pages: 397, Published: 1999
Understanding WMI Scripting: Exploiting Microsoft's Windows Management Instrumentation in Mission-Critical Computing Infrastructures Authors: Alain Lissoir, Pages: 580, Published: 2003
Gray Hat Hacking: The Ethical Hacker's Handbook Authors: Shon Harris, Allen Harper, Chris Eagle, Jonathan Ness, Pages: 550, Published: 2007
The Ultimate Windows Server 2003 System Administrator's Guide Authors: G. Robert Williams, Mark Walla, G Robert Williams, Ph.D., Pages: 1008, Published: 2003
Windows XP Cookbook Authors: Robbie Allen, Preston Gralla, Pages: 653, Published: 2005
Programming ColdFusion MX: Creating Dynamic Web Applications Authors: Rob Brooks-Bilson, Pages: 1115, Published: 2003

Web:
Registry Operations Registry Key Creation using RegCreateKey: ... The sample code for creating a registry key is as follows. ... DWORDSample" will be set with value of 100. ...
IsSlave If you change entries by editing the registry, the changes are not effective until you ... Do not change the value of this entry by editing the registry. ...
Brad Rutkowski's Blog : SET-ACL on registry key Sep 29, 2008 ... Man it was hard to find info on using set-acl on a registry key! I was looking for a way to set an ACL that once set would be inherited by ...
PaintDesktopVersion registry key is set to 0, but it is st.. Everything I have found in regards to this involves the registry key: HKEY_CURRENT_USER\Control Panel\Desktop PaintDesktopVersion is default ...
Trying to set a registry key on local machine with access for all ... [Archive] Trying to set a registry key on local machine with access for all users. InstallShield X - InstallScript Projects.
How to correct "disable Autorun registry key" enforcement in Windows (To do this, type 0 instead of 1, in step 6 of the procedures to manually set the registry key.) If the registry key is present in both the ...
Access 2002 runtime - does it set a registry key : Microsoft ... I have an application the uses access 2002 RUNTIME. I believe that it sets a registry key when it is invoked. Is this true and which key is it.
Set HKEY_CURRENT_USER Registry key via the local system account ... This VBScript will set any value under any key you want for the current logged on user when you run your job via the system account or local ...
See Sharp: C#: Set value of a specific registry key C#: Set value of a specific registry key. public bool setRegistryKey(Microsoft. Win32.RegistryKey regHive, string regKey, string regName, string regValue) ...
Windows Registry - Wikipedia, the free encyclopedia To set the owner of the key HKEY_LOCAL_MACHINE\SOFTWARE and all of its ..... Description of the HKEY_DYN_DATA Registry Key in Windows 95, Windows 98, ...

Videos:
Covert Surfer - The Secure Anonymous Internet Browser Covert Surfer http://www.surfthewebsecretly.com/ Download Covert Surfer Free 5-Day Trial At: http://www.surfthewebsecretly.com/demoregistration.asp...
Covert Surfer - Secure Anonymous Internet Browsing Covert Surfer http://www.surfthewebsecretly.com/ Download Covert Surfer Free 5-Day Trial At: http://www.surfthewebsecretly.com/demoregistration.asp...
Covert Surfer Spoiler Covert Surfer http://www.surfthewebsecretly.com/ Download Covert Surfer Free 5-Day Trial At: http://www.surfthewebsecretly.com/demoregistration.asp...
Covert Surfer - Surf The Web Secretly Covert Surfer http://www.surfthewebsecretly.com/ Download Covert Surfer Free 5-Day Trial At: http://www.surfthewebsecretly.com/dem... Covert Surfe...
SPEED UP YOUR PC XP&VISTA This is the registry key: HKEY_LOCAL_MACHINE - Software - Microsoft - Windows-CurrentVersion- Explorer So at the right side you right click-selec...
Knightlite's EMT-Basic Practical DVD Demo - Respiratory Knightlite Software's demo video of our upcoming EMT-Basic practical DVD. The video will have 22 stations based on the National Registry Skill sheet...
Internet Business Opportunity - Get your own .ws domain name via GDI! Global Domains International Business Opportunity. http://Website.IconEnterprises.com Congratulations! You have just come across something that has...
Gordon Parks & David Finn - Air date: 06-09-03 Gordon Roger Alexander Buchannan Parks (November 30, 1912 -- March 7, 2006) was a groundbreaking African-American photographer, musician, poet, novel...
Stem cell Needed !! Please help save my cousin !! You may hold the key to Carolyn's future. She has been diagnosed with Acute Myeloid Leukemia 16 months ago. After her first treatment of chemotherap...
Remove the Search Bar from IE7 (Internet Explorer 7) This short (Explained) process provides the ability to Remove the Search Bar from IE7. The Search bar could be a very convinient way to search strai...




Search This Site:










is dnn ie-centric?

xml/xsl (reporting inside dnn)

save various data

how to avoid same user login in account at the same time

question on admin vs host accounts

replace data in datagrid

web application namespace

managing member registration

vertical menu layout

abcd.trim().tolower()

search engine optimization

new c# module

want to get rendered page output (i.e., the html that is getting sent to the browser).

set active link in menu

session

resetting a form

problems viewing asp.net 2.0 pages from my localhost

textbox with javascript preview

code line number? how to view??

coding question

could not access 'cdo.message' object

asp.net menucontrol issues in safari

installing on a domain controller

trying to read csv file

website ranksings with master pages

master page footer

add control do page. what is going wrong here?

how to empty a drop down list

email and checkboxes

css problem....

 
All Times Are GMT