It also looks like there might be a try/catch block on the page that is
rethrowing an exception as the complete stack trace to the code that threw
the exception is not available. That is generally not a good thing from an
error handling perspective. Either don't catch at all or just use "throw"
instead of throwing the exception.
Joe K.
"Dominick Baier [DevelopMentor]" <>
wrote in message news:. com...
> 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.Htt pApplication+IExecut
>> ionStep.Execute()
>> +179
>> System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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
>>
>
>