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: That assembly does not allow partially trusted callers.

Source Error:


Line 5:  <%@ Import Namespace="System.Net " %>
Line 6:  <%@ Import Namespace="System.Text" %>
Line 7:  <MM:Insert
Line 8:  runat="server"
Line 9:  CommandText='<%# "INSERT INTO dbo.Video (MemberID, Video, Title, ""Description"", Tags, Live, Country) VALUES (?, ?, ?, ?, ?, ?, ?)" %>'

Source File: e:\domains\p\pastplaces.co.uk\user\htdocs\VideoUpload.aspx    Line: 7

Stack Trace:


[SecurityException: That assembly does not allow partially trusted callers.]
   ASP.videoupload_aspx.__BuildControl__control2() in e:\domains\p\pastplaces.co.uk\user\htdocs\VideoUpload.aspx:7
   ASP.videoupload_aspx.__BuildControlTree(videoupload_aspx __ctrl) in e:\domains\p\pastplaces.co.uk\user\htdocs\VideoUpload.aspx:1
   ASP.videoupload_aspx.FrameworkInitialize() +69
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.videoupload_aspx.ProcessRequest(HttpContext context) +29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832