ramarao_pendela
Posts: 2
|
Posted: 08/25/2008, 6:00 AM |
|
I am not able to solve the above error in framework 3.5 because the userName attribute is not available in the machine.config file and config files moved to v2.0.50727 folder.
If any body knows please help me and mail me to ramarao_pendela@hotmail.com
regards
ramarao
I am not able to solve the above error in framework 3.5 because the userName attribute is not available in the machine.config file and config files moved to v2.0.50727 folder.
If any body knows please help me and mail me to ramarao_pendela@hotmail.com
regards
ramarao
|
 |
 |
ramarao_pendela
Posts: 2
|
Posted: 08/25/2008, 6:02 AM |
|
Exception Details: System.Security.SecurityException: Requested registry access is not allowed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Data.Common.ADP.ClassesRootRegistryValue(String subkey, String queryvalue) +219
System.Data.OleDb.OleDbConnectionString.ValidateParse() +371
System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl) +144
System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString) +98
System.Data.OleDb.OleDbConnection.set_ConnectionString(String value) +11
System.Data.OleDb.OleDbConnection..ctor(String connectionString) +159
applicationname.Data.OleDbDao..ctor(ConnectionString connection) +195
applicationname.Configuration.Settings.get_dbconnectionNAMEDataAccessObject() +46
applicationname.pagename.tblNamesDataProvider..ctor() +447
applicationname.pagename.pagenamePage.OnInit(EventArgs e) +397
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Page.ProcessRequestMain() +2112
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
I TRIED EVERYTHING, CHANGED THE PERMISSIONS ON REGISTRY SETTINGS, UNINSTALLED DOTNET FRAMEWORK, REINSTALLED DOTNET FRAMEWORK, TRIED MS KB ARTICLE 329291, RESEARCHED ON THE TECHNET, MSDN, GOOGLE, GAVE ADMINISTRATOR PERMISSIONS TO ASPNET ACCOUNT ETC ETC -- NO LUCK!!!
WELL FINALLY BEFORE TURNING THE COMPUTER OFF, I GAVE A LAST TRY AND BINGO!!! IT WORKED!!!
SOLUTION IS AS FOLLOW (THIS SOLUTION IS FOR DEVELOPMENT ENVIRONMENT ONLY):
1. Give the ASPNET user permission to read the Security eventlog registry entry.
Run regedt32
Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security
Right click on this entry and select Permissions
Add the ASPNET user
Give it Read permission
2. Change settings in machine.config file
Run Explorer
Navigate to WINDOWS or WINNT folder
Open Microsoft.NET folder
Open Framework folder
Open v1.1.4322 folder (folder name may be different, depending on what dotnet version is installed)
Open CONFIG folder
Open machine.config file using notepad (make a backup of this file first)
Locate processmodel tag (approx. at line 441)
Locate userName="machine" (approx. at line 452)
Change it to userName="SYSTEM"
Save and close the file
Close Explorer
3. Restart IIS
I am not able to solve the above error in framework 3.5 because the userName attribute is not available in the machine.config file and config files moved to v2.0.50727 folder.
If any body knows please help me and mail me to ramarao_pendela@hotmail.com
regards
ramarao
|
 |
 |
kescott
Posts: 49
|
Posted: 08/25/2008, 7:47 AM |
|
Have you thought about using ASP.NET 2.0? I have had more issues with ASP.NET 3.5 framework, but I'll look into it.
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
|
 |
 |
wkempees
Posts: 1679
|
Posted: 08/25/2008, 8:11 AM |
|
I might be wrong here, but isn't it true that although MS released Framework 3.5 for use in VS2008, it does still use framework 2 for Web applications?
I remember having read that, will try and trace article.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
wkempees
Posts: 1679
|
Posted: 08/25/2008, 9:16 AM |
|
Besides, I just noticed your are in the wrong forum CodeCharge as opposed to CodeCharge Studio as well as in the wrong subforum: Tips & Solutions is for giving Tips and Solutions.
Not for asking question.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|