Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Forum for Microsoft .NET PetShop Sample

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eAW - 05 May 2005 00:15 GMT
Is there any forum for Microsoft .NET Petshop sample? I have problems
running the v 3.1 sample downloaded from Microsoft.

The error message is:

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

Source File: C:\NAS\Dev\NET\PetShop\Web\ProcessFlow\CartController.cs
Line: 90
Line 90:                 OrderInsert order = new OrderInsert();

TIA. Please reply to the group.
Cowboy (Gregory A. Beamer) - MVP - 05 May 2005 16:20 GMT
This means one of two things:

1. The user account you are running under does not have rights to the
registry, or at least the registry key in question. This can be cured from
Regedt32.exe and giving rights to the account you are running under.

2. The machine.config does not allow .NET users access to the registry. This
is most common under Windows Server 2003. If so, you have to edit the
machine.config to allow this access.

NOTE: It is possible you may have to do both.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Is there any forum for Microsoft .NET Petshop sample? I have problems
> running the v 3.1 sample downloaded from Microsoft.
[quoted text clipped - 13 lines]
>
> TIA. Please reply to the group.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.