473,850 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security Exception with Enterprise Library Data Block

[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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 1956
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.c o.uk> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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.c om> wrote in message
news:eH******** *****@TK2MSFTNG P15.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.c o.uk> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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.c o.uk> wrote in message
news:Oo******** *****@TK2MSFTNG P14.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.c om> wrote in message
news:eH******** *****@TK2MSFTNG P15.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.c o.uk> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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.c o.uk> wrote in message
news:Oo******** *****@TK2MSFTNG P14.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.c om> wrote in message
news:eH******** *****@TK2MSFTNG P15.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.c o.uk> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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******** ********@TK2MSF TNGP12.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.c o.uk> wrote in message
news:Oo******** *****@TK2MSFTNG P14.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.c om> wrote in message
news:eH******** *****@TK2MSFTNG P15.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.c o.uk> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
[SecurityExcepti on: Requested registry access is not allowed.]
Microsoft.Win32 .RegistryKey.Op enSubKey(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
3968
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 me to implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise
0
1573
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 implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise library.
0
1448
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 implement DAAB in enterprise library. I said DAAB 2.0 having more performance(data accessing) compare to enterprise library DAAB. And we not using the features of DAAB in enterprise library.
2
2101
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 application on a server. It does not have the Enterprise Library installed.
5
9789
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 Security Exception Description: The application attempted to perform an operation not allowed
7
2725
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 project so that I can debug better. But I all those examples I found are reference the compiled dll only. What are the steps to include the source code of Microsoft Enterprise Library into my project? I created a new dir and copy Microsoft...
0
2539
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. I created a project and added the following references - 1/ Enterprise Library Exception Handling Application Block v 4.0
0
2199
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 VB.Net (Visual Studio 2005) which have three tiers: User Interface Business Logic Data Layer
3
6949
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 write protected memory. this is often an indication that other memory is corrupt.... " These are all the platform info : Visual Studio 2005 (VB.NET) and ASP.NET 2.0.
0
9895
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11011
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10724
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5929
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4546
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4140
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.