.NETGURU
.NET Security error after changing SQL stored procedure
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngsec' list.


Mansell
-- Copied from [ngfx-sqlclient] to [aspngsec] by Bob Levittan <Click here to reveal e-mail address> --

-- Moved from [aspngibuyspy] to [ngfx-sqlclient] by Bob Levittan <Click here to reveal e-mail address> --

After I change or add a SQL stored procedure and recompile my
VisualBasic.NET application and then try to run ate application I get the
following error:

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:

Line 30:

Line 31: ' Open the connection and execute the Command

Line 32: myConnection.Open()

Line 33: myCommand.ExecuteNonQuery()

Line 34: myConnection.Close()

I have to reboot the system to clear the problem.

Could anyone tell me how I can fix this problem? How do I change the
application's trust level in the configuration file?

Mansell

Reply to this message...
 
    
Widi Pamungkas
Mansell,

I was having the same problem. Try setting the permission of the stored
procedure.
It fixes my problem.

Cheers,
Widi Pamungkas=20
Developer=20
ninemsn
=20
T +61 2 9383 6029
F +61 2 9383 6100
Mobile : 0402 790 600
Click here to reveal e-mail address=20

-----Original Message-----
From: Mansell [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, 26 June 2002 5:42 PM
To: aspngsec
Subject: [aspngsec] .NET Security error after changing SQL stored
procedure

-- Copied from [ngfx-sqlclient] to [aspngsec] by Bob Levittan
<Click here to reveal e-mail address> --

-- Moved from [aspngibuyspy] to [ngfx-sqlclient] by Bob Levittan
<Click here to reveal e-mail address> --

After I change or add a SQL stored procedure and recompile my
VisualBasic.NET application and then try to run ate application I get
the following error:

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:

Line 30:

Line 31: ' Open the connection and execute the Command

Line 32: myConnection.Open()

Line 33: myCommand.ExecuteNonQuery()

Line 34: myConnection.Close()

I have to reboot the system to clear the problem.

Could anyone tell me how I can fix this problem? How do I change the
application's trust level in the configuration file?

Mansell

| [aspngsec] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngsec.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Mansell Rainbolt
How do you do that?
Mansell

-----Original Message-----
From: Widi Pamungkas [mailto:Click here to reveal e-mail address]
Sent: Wednesday, June 26, 2002 7:51 PM
To: aspngsec
Subject: [aspngsec] RE: .NET Security error after changing SQL stored
procedure

Mansell,

I was having the same problem. Try setting the permission of the stored
procedure.
It fixes my problem.

Cheers,
Widi Pamungkas
Developer
ninemsn

T +61 2 9383 6029
F +61 2 9383 6100
Mobile : 0402 790 600
Click here to reveal e-mail address

-----Original Message-----
From: Mansell [mailto:Click here to reveal e-mail address]
Sent: Wednesday, 26 June 2002 5:42 PM
To: aspngsec
Subject: [aspngsec] .NET Security error after changing SQL stored
procedure

-- Copied from [ngfx-sqlclient] to [aspngsec] by Bob Levittan
<Click here to reveal e-mail address> --

-- Moved from [aspngibuyspy] to [ngfx-sqlclient] by Bob Levittan
<Click here to reveal e-mail address> --

After I change or add a SQL stored procedure and recompile my
VisualBasic.NET application and then try to run ate application I get
the following error:

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:

Line 30:

Line 31: ' Open the connection and execute the Command

Line 32: myConnection.Open()

Line 33: myCommand.ExecuteNonQuery()

Line 34: myConnection.Close()

I have to reboot the system to clear the problem.

Could anyone tell me how I can fix this problem? How do I change the
application's trust level in the configuration file?

Mansell

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Widi Pamungkas
If you're using SQL server 2000, then right click on your stored
procedure, go to permission, and click the corresponding user's access
(tick the whole row for particular user)

Widi

-----Original Message-----
From: Mansell Rainbolt [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, 27 June 2002 10:31 AM
To: aspngsec
Subject: [aspngsec] RE: .NET Security error after changing SQL stored
procedure

How do you do that?
Mansell

-----Original Message-----
From: Widi Pamungkas [mailto:Click here to reveal e-mail address]
Sent: Wednesday, June 26, 2002 7:51 PM
To: aspngsec
Subject: [aspngsec] RE: .NET Security error after changing SQL stored
procedure

Mansell,

I was having the same problem. Try setting the permission of the stored
procedure. It fixes my problem.

Cheers,
Widi Pamungkas=20
Developer=20
ninemsn
=20
T +61 2 9383 6029
F +61 2 9383 6100
Mobile : 0402 790 600
Click here to reveal e-mail address=20

-----Original Message-----
From: Mansell [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, 26 June 2002 5:42 PM
To: aspngsec
Subject: [aspngsec] .NET Security error after changing SQL stored
procedure

-- Copied from [ngfx-sqlclient] to [aspngsec] by Bob Levittan
<Click here to reveal e-mail address> --

-- Moved from [aspngibuyspy] to [ngfx-sqlclient] by Bob Levittan
<Click here to reveal e-mail address> --

After I change or add a SQL stored procedure and recompile my
VisualBasic.NET application and then try to run ate application I get
the following error:

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:

Line 30:

Line 31: ' Open the connection and execute the Command

Line 32: myConnection.Open()

Line 33: myCommand.ExecuteNonQuery()

Line 34: myConnection.Close()

I have to reboot the system to clear the problem.

Could anyone tell me how I can fix this problem? How do I change the
application's trust level in the configuration file?

Mansell

| [aspngsec] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

| [aspngsec] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngsec.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 
System.Security.SecurityException




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification