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 / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

accessing to windows register

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruno Alexandre - 30 Jun 2006 14:31 GMT
Hi guys,

 I'm an asp.net 2.0 developer with a almost nothing in window forms.

 Because of the retriction of ASP.NET security I can't access the windows
register by it (unless I build an active x to do that, but I dn't even know
how to start if I choose that road) so I'm building a windows application
that as a webform that calls a page so I can print it (it's a dynamic page
with a Loan form application)...

I need to change the register automatically for every print so I can erase
the header and the bottom text (WebPage bla bla bla)...I know the register
keys and all, but I alwsys get this information about security warning and
VS doens't let me to move foward my program :-(

any ideas?

Signature

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


William Sullivan - 30 Jun 2006 15:24 GMT
Are you saying that you need to access the registry in your asp.net webpage?

You can open Regedit and go to the keys you need to access and set the
security permissions for the ASP.NET user account (aspnet in XP, not sure on
2003 boxes) on those keys.

Alternatively, you can create a user account and give it all the necessary
rights and then use impersonation in your web page.

> Hi guys,
>
[quoted text clipped - 12 lines]
>
>  any ideas?
Norman Yuan - 30 Jun 2006 15:58 GMT
You can give permission to a registry key to any user account, as long as
you are allowed (meaning you must be an admin on the IIS to set the
permission). However, I see it is typical abusing Windows Registry. You can
very well to use web.config to do the work for you, and you, the developer,
has full control to work with web.config, no matter on which box the web app
runs, no need to trouble an admin to give permission to Windows Registry
keys.

> Hi guys,
>
[quoted text clipped - 12 lines]
>
> any ideas?
GhostInAK - 01 Jul 2006 00:08 GMT
No no, the bastard wants to change the USER's registry settings.  This is
a big no no.  Ought to be shot for even considering it.  The user WANTS the
header and footer on there, otherwise they would have deleted it themselves?
Who do you think you are to go mucking about in a user's settings from a
web page?  Yeesh.

-Boo
Bruno Alexandre - 01 Jul 2006 10:56 GMT
on VB6 was a pretty commun thing to do, no security warnings...
dam .NET !

Signature

Bruno Alexandre
(a Portuguese in Københanv, Danmark)

> No no, the bastard wants to change the USER's registry settings.  This is
> a big no no.  Ought to be shot for even considering it.  The user WANTS
[quoted text clipped - 3 lines]
>
> -Boo

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.