473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Security Exception with Enterprise Library Data Block

[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and created
a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever persuade
an ISP to do that,
so it is out of the question. I have googled myself blind without finding
out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============
Dec 8 '05 #1
6 1926
for any application to log to the eventlog, it needs a registery key created
(.../EventLog/Application/yourAppName), and access to that key. if the key
doesn't exist, it attempts to create it, but usually it will not have write
access to the parent key.

if your isp allows access to the eventlog, then they should create the key,
and give you an appname. if not, then you should not log errors to the
eventlog (disable the eventlog sink).
-- bruce (sqlwork.com)

"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and
created a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever persuade
an ISP to do that,
so it is out of the question. I have googled myself blind without finding
out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============

Dec 8 '05 #2
Thanks Bruce

trouble is I have no idea what the event log sink is
nor how to disable it.

As far as I know the only code I am using
accesses the data block, I have no wish for it to do
anything with the event log. These enterprise blocks
seem to be doing it by themsleves.
thanks

jonathan

--
===============
Jonathan Crawford
jc@tgsi.net
===============
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP15.phx.gbl...
for any application to log to the eventlog, it needs a registery key
created (.../EventLog/Application/yourAppName), and access to that key. if
the key doesn't exist, it attempts to create it, but usually it will not
have write access to the parent key.

if your isp allows access to the eventlog, then they should create the
key, and give you an appname. if not, then you should not log errors to
the eventlog (disable the eventlog sink).
-- bruce (sqlwork.com)

"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and
created a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever
persuade an ISP to do that,
so it is out of the question. I have googled myself blind without finding
out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============


Dec 8 '05 #3
You'll need to go into the configuration block and remove some of the
compiler directives, one of which is "WMI" or similar.
"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:Oo*************@TK2MSFTNGP14.phx.gbl...
Thanks Bruce

trouble is I have no idea what the event log sink is
nor how to disable it.

As far as I know the only code I am using
accesses the data block, I have no wish for it to do
anything with the event log. These enterprise blocks
seem to be doing it by themsleves.
thanks

jonathan

--
===============
Jonathan Crawford
jc@tgsi.net
===============
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP15.phx.gbl...
for any application to log to the eventlog, it needs a registery key
created (.../EventLog/Application/yourAppName), and access to that key.
if the key doesn't exist, it attempts to create it, but usually it will
not have write access to the parent key.

if your isp allows access to the eventlog, then they should create the
key, and give you an appname. if not, then you should not log errors to
the eventlog (disable the eventlog sink).
-- bruce (sqlwork.com)

"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and
created a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever
persuade an ISP to do that,
so it is out of the question. I have googled myself blind without
finding out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============



Dec 8 '05 #4
the data block is built on the logging block. read documentation of the
logging block.

-- bruce (sqlwork.com)
"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:Oo*************@TK2MSFTNGP14.phx.gbl...
Thanks Bruce

trouble is I have no idea what the event log sink is
nor how to disable it.

As far as I know the only code I am using
accesses the data block, I have no wish for it to do
anything with the event log. These enterprise blocks
seem to be doing it by themsleves.
thanks

jonathan

--
===============
Jonathan Crawford
jc@tgsi.net
===============
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP15.phx.gbl...
for any application to log to the eventlog, it needs a registery key
created (.../EventLog/Application/yourAppName), and access to that key.
if the key doesn't exist, it attempts to create it, but usually it will
not have write access to the parent key.

if your isp allows access to the eventlog, then they should create the
key, and give you an appname. if not, then you should not log errors to
the eventlog (disable the eventlog sink).
-- bruce (sqlwork.com)

"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and
created a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever
persuade an ISP to do that,
so it is out of the question. I have googled myself blind without
finding out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============



Dec 9 '05 #5
Hi

Thanks for your help.

I am sorry to say I have abandoned the application block.
I can't make head nor tail of the documentation, there is a levvel
of complexity which is way beyond my requirements.

The enterprise block was supposed to make things easier, however I have
spent 2 days not getting it to work, which is much more time then
it would have saved me if it worked in the first place.

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============
"Morgan" <ab**@senditon.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
You'll need to go into the configuration block and remove some of the
compiler directives, one of which is "WMI" or similar.
"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:Oo*************@TK2MSFTNGP14.phx.gbl...
Thanks Bruce

trouble is I have no idea what the event log sink is
nor how to disable it.

As far as I know the only code I am using
accesses the data block, I have no wish for it to do
anything with the event log. These enterprise blocks
seem to be doing it by themsleves.
thanks

jonathan

--
===============
Jonathan Crawford
jc@tgsi.net
===============
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eH*************@TK2MSFTNGP15.phx.gbl...
for any application to log to the eventlog, it needs a registery key
created (.../EventLog/Application/yourAppName), and access to that key.
if the key doesn't exist, it attempts to create it, but usually it will
not have write access to the parent key.

if your isp allows access to the eventlog, then they should create the
key, and give you an appname. if not, then you should not log errors to
the eventlog (disable the eventlog sink).
-- bruce (sqlwork.com)

"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
+473
Hi

I have installed the enterprise library on a development machine and
created a project
on our webserver. When I run a simple data access page I get an error
message. Apparently
this is well documented and to do with the permissions on the server as
asp.net tries to do something
to the event log. This is dotnet 2003

The ms fix is a registry hack. However there is no way i can ever
persuade an ISP to do that,
so it is out of the question. I have googled myself blind without
finding out much more.

The question is, has anyone ever solved this without fixing the server
security or should
I dump the whole enterprise library.

I would be grateful for any help

thanks

jonathan


===============
Jonathan Crawford
jc@tgsi.net
===============



Dec 11 '05 #6
I hope, developers at Microsoft read these articles and think of these
kinds of problem for all their future development :)
They always say "We listen to community" but not sure, how true that
statement is

Dec 11 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: veera sekhar kota | last post by:
hi, im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked...
0
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to...
0
by: veera sekhar kota | last post by:
im seriously looking for right answer .... We are developing windows application in c#. I implemented DAAB(Data Access Application Block) 2.0 in our application. One of the senior asked me to...
2
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
7
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my...
0
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have previously used EL v 3.1 Exception Handling application block successfully. I thought I would now try to do the same with EL v 4.0. My first experiment was to replace an exception....
0
by: srizzler | last post by:
Hi All: I am trying to implement Exception Handling using Enterprise Library 3.1's Exception Handling Application Block as well as Logging Blocks. I have a windows application developed in...
3
by: sriram347 | last post by:
Hi I am a newbie to ASP.NET. I developed a web page (project type is web application) and I keep getting this error. B]Error message : "System.AccessViolation Exception attempted to read or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.