+1-888-365-2779
Try Now
More in this section

Forums / Deployment / "SecurityException: Request failed" error in Full Trust

"SecurityException: Request failed" error in Full Trust

4 posts, 0 answered
  1. Gavin
    Gavin avatar
    20 posts
    Registered:
    06 Jul 2009
    14 Oct 2009
    Link to this post
    Hi,

    I'm trying to deploy Sitefinity 3.7 SP1 Community Edition (3.7.2022.3) site www.paydirt.co.nz to ASPNIX hosting. However I'm getting the error below. I'm informed that the Full Trust has been given to my site.

    Any advice? Thanks in advance!

    The error...

    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 failed.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SecurityException: Request failed.]
       System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
       System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 Oct 2009
    Link to this post
    Hello Gavin Harriss,

    Thank you for using our services.

    There should be no problem with deploying a web site in full trust. When I try to open your website it gives another error, see attached image. Can you inspect your web.config if it is set properly? If you are having hard time figuring out what could be wrong in the web.config you can raise a support ticket and send us over the web.config so that we can take a look at it.

    Looking forward for your response.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Gavin
    Gavin avatar
    20 posts
    Registered:
    06 Jul 2009
    15 Oct 2009
    Link to this post
    Hi Radoslav,

    No worries - I've just got past that stage now (a few mins ago). Seems there was some screwy permissions that ASPNIX finally fixed even though they denied adamantly that there was an issue their end. Frustrating process - what you saw was an error from a simple site I uploaded to show support that the issue was indeed their end and not with Sitefinity as even the simple site wouldn't work.

    However, I've now run in to my next issue...

    CREATE PROCEDURE permission denied in database 'PayDirt'.

    Server Error in '/' Application.

    CREATE PROCEDURE permission denied in database 'Censored'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: CREATE PROCEDURE permission denied in database 'Censored'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SqlException (0x80131904): CREATE PROCEDURE permission denied in database 'Censored'.]
       System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
       System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +192
       System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +317
       System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
       Nolics.ORMapper.DataProviders.SQLDataProvider.ExecSchemaChange(String change) +84
       Nolics.ORMapper.Base.OdbDataProvider.Upgrade() +86
       Telerik.Cms.Data.DefaultProvider.Initialize(String name, NameValueCollection config) +390
       Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +673
       Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings) +91
       Telerik.ManagerBase`1.SetProvider(String providerName) +203
       Telerik.ManagerBase`1..ctor(String providerName) +89
       Telerik.ManagerBase`1..ctor() +11
       Telerik.Cms.Web.UrlHelper.Initialize(CmsHttpModule cmsModule) +38
       Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context) +86
       System.Web.HttpApplication.InitModulesCommon() +65
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289
    


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

  4. Gavin
    Gavin avatar
    20 posts
    Registered:
    06 Jul 2009
    15 Oct 2009
    Link to this post
    Excellent... I've finally rolled out the Sitefinity site.

    www.paydirt.co.nz is working nicely now and will be a nice site for me to play with before moving some of the larger sites I'm involved with across to the full version of Sitefinity!
Register for webinar
4 posts, 0 answered