PC Review


Reply
Thread Tools Rate Thread

asp.net security problem

 
 
=?Utf-8?B?QmFsYQ==?=
Guest
Posts: n/a
 
      12th Aug 2005
Hi,
I am hosting a ASP.net web application in a web server. The SQL Server is
locates in the net work it was not in the web server.
The Web server has set up newly

Can anyone tell me how the connectionstring has to made in the web.config
file.

..ASPX file works fine for me. When I am trying to connect the SQL Server I
am getting the below message.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

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.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName, Boolean useMutex) +445
System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName) +11
System.Diagnostics.EventLog.CreateEventSource(String source, String
logName) +11

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource()




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300

I am get the following error.

 
Reply With Quote
 
 
 
 
David Lloyd
Guest
Posts: n/a
 
      13th Aug 2005
From the stack trace it appears that your exception is more likely being
caused by code related to creating an event source. Please see the
following KB article for more information.

http://support.microsoft.com/default...b;en-us;329291

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


"Bala" <(E-Mail Removed)> wrote in message
news:6DF89D6D-D966-4D83-8286-(E-Mail Removed)...
Hi,
I am hosting a ASP.net web application in a web server. The SQL Server is
locates in the net work it was not in the web server.
The Web server has set up newly

Can anyone tell me how the connectionstring has to made in the web.config
file.

..ASPX file works fine for me. When I am trying to connect the SQL Server I
am getting the below message.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

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.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName, Boolean useMutex) +445
System.Diagnostics.EventLog.CreateEventSource(String source, String
logName, String machineName) +11
System.Diagnostics.EventLog.CreateEventSource(String source, String
logName) +11

Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource()




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300

I am get the following error.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me with a security problem! =?Utf-8?B?TXIuIFNucnVi?= Microsoft Excel Misc 1 24th Aug 2007 02:39 AM
Errors in File Security settings in Windows XP Security guide security template? arthg@hotmail.com Windows XP Security 1 25th Jan 2006 01:06 AM
Security with hyperlink (Message: A security problem has occurred) =?Utf-8?B?amVyaWRib2htYW5u?= Microsoft Outlook Discussion 4 10th Aug 2005 10:05 PM
UGHHH another url problem, attachment security problem bob Microsoft Outlook 1 6th Jul 2005 03:49 PM
Security Problem John Microsoft Access Security 3 29th Jan 2004 01:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 PM.