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: Request for the permission of type 'System.Net.DnsPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Source Error: [No relevant source lines] Source File: App_Web_nbybjmob.0.cs Line: 0 Stack Trace: [SecurityException: Request for the permission of type 'System.Net.DnsPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +34 System.Security.CodeAccessPermission.Demand() +46 System.Net.Dns.GetHostEntry(String hostNameOrAddress) +71 MySql.Data.Common.MyNetworkStream.CreateStream(MySqlConnectionStringBuilder settings, Boolean unix) +64 MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings) +38 MySql.Data.MySqlClient.NativeDriver.Open() +108 MySql.Data.MySqlClient.Driver.Open() +22 MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +218 MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +287 MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93 MySql.Data.MySqlClient.MySqlPool.GetConnection() +65 MySql.Data.MySqlClient.MySqlConnection.Open() +632 System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +212 System.Data.EntityClient.EntityConnection.Open() +104 System.Data.Objects.ObjectContext.EnsureConnection() +75 System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +41 System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +36 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +375 System.Linq.Enumerable.ToList(IEnumerable`1 source) +58 DiyarData.DiyarData.GetDocuments(Nullable`1 count) +361 Diyar.index.Page_Load(Object sender, EventArgs e) +85 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +95 System.Web.UI.Control.LoadRecursive() +59 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6569 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245 System.Web.UI.Page.ProcessRequest() +72 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +22 System.Web.UI.Page.ProcessRequest(HttpContext context) +58 ASP.index_aspx.ProcessRequest(HttpContext context) in App_Web_nbybjmob.0.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0