Re: System.Security.SecurityException {Beginner working with ASP.NET}
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2006 19:40:25 +0000 (UTC)
Hi,
seems like the server is runnning with partial trust.
What kind of database are you accessing?
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hello, I am a student working on an ASP.NET assignment for my course.
I am using Visual Studio 2003.
All I have is a simple web form with a datagrid. I added a data
adapter and generated a dataset off a table on my schools server with
data. In the page_load I fill the data adapter, bind the data to the
grid and close the connection. I am able to preview the data set being
filled in the properties pane.
I get this exception when attempting to view my webform in IE6.
Security Exception
Exception Details: System.Security.SecurityException: Request failed.
Stack:
[SecurityException: Request failed.]
admin.UserManagementSummary.InitializeComponent() +0
admin.UserManagementSummary.OnInit(EventArgs e) in
usermanagementsummary.aspx.cs:36
System.Web.UI.Control.InitRecursive(Control namingContainer) +241
System.Web.UI.Page.ProcessRequestMain() +2112
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecut
ionStep.Execute()
+179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean&
completedSynchronously) +87
Now all my page_load has is
private void Page_Load(object sender, System.EventArgs e)
{
dbCon.Open(); //Open connection
dbDA.Fill(dsDS1); //Fill the data adapter with the dataset
dgUsers.DataBind(); //Bind the grid
dbCon.Close(); //Close connection
}
I am using the following for this assignment.
Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
ASP.NET Version:1.1.4322.2300
Appreciate any help
.
- Follow-Ups:
- Re: System.Security.SecurityException {Beginner working with ASP.NET}
- From: Joe Kaplan \(MVP - ADSI\)
- Re: System.Security.SecurityException {Beginner working with ASP.NET}
- References:
- Prev by Date: Active Directory Groups
- Next by Date: Re: how to prevent security violation when users share URL with cookieless session id?
- Previous by thread: System.Security.SecurityException {Beginner working with ASP.NET}
- Next by thread: Re: System.Security.SecurityException {Beginner working with ASP.NET}
- Index(es):
Relevant Pages
|