I am getting this error when I try to add an event. Can someone tell me what it means and how to fix it. I am using CSK 2.0 VB.
Thanks!!
Security Exception
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
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: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source
Error:
Line 49: End If
Line 50:
Line 51: ClubStarterKit.Data.ClubEvent.Insert(dtpicker.startDateTime, dtpicker.endDateTime, titleTextBox.Text.ToString(), description, pictureid, 0, 0, LocationNameTXT.Text, locdirections)
Line 52: Response.Redirect("list.aspx")
Line 53: End Sub |
Source File:
d:\hosting\nhsportsman\events\Add.aspx Line: 51
Stack
Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
SubSonic.Utilities.Utility.WriteTrace(String message) in Utility.cs:37
SubSonic.AbstractRecord`1.ValidateColumnSettings() in AbstractRecord.cs:899
SubSonic.ActiveRecord`1.Validate() in ActiveRecord.cs:354
SubSonic.ActiveRecord`1.Save(String userName) in ActiveRecord.cs:366
ClubStarterKit.Data.ClubEvent.Insert(DateTime varStarttime, Nullable`1 varEndtime, String varTitle, String varDescription, Int32 varPhoto, Nullable`1 varAlbum, Nullable`1 varCurrentAttendance, String varLocationName, String varLocationDirections) in ClubEvent.vb:435
ASP.events_add_aspx.apply1_Click(Object sender, EventArgs e) in d:\hosting\nhsportsman\events\Add.aspx:51
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.events_add_aspx.ProcessRequest(HttpContext context) +37
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
|