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

Forums / General Discussions / How to install Sitefinity free edition to remote server?

How to install Sitefinity free edition to remote server?

8 posts, 0 answered
  1. Juliano
    Juliano avatar
    3 posts
    Registered:
    28 Aug 2008
    29 Aug 2009
    Link to this post

    Hi,

    I wanted to install Sitefinity in my hosting, but I only have FTP access. How can I proceed?

    Thanks.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Aug 2009
    Link to this post
    Hi Juliano,

    Sitefinity can be installed only in Full Trust environment. I suggest installing the project on your local server. Then zip it an backup the database. Finally FTP all files to your server.

    Kind regards,
    Ivan Dimitrov
    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. Juliano
    Juliano avatar
    3 posts
    Registered:
    28 Aug 2008
    30 Aug 2009
    Link to this post
    Which folder should I pack and send to the server? Only the content of the WebSite that I've created?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Aug 2009
    Link to this post
    Hello Juliano,

    You should upload the folder of the website you have already created and all files inside it( by default - App_Data, App_Browsers, App_Master, App_Themes, Bin, Sitefinity, Default.aspx, Global.asax, web.config)

    Regards,
    Ivan Dimitrov
    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.
  5. Juliano
    Juliano avatar
    3 posts
    Registered:
    28 Aug 2008
    31 Aug 2009
    Link to this post
    I've just uploaded the content of the website that I have created to the main directory in my hosting, but I got this 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.4016; ASP.NET Version:2.0.50727.4016  

    And when I try to open the Sitefinity folder to view the Admin Panel, I get this error:

    Server Error in '/sitefinity' Application.  
    --------------------------------------------------------------------------------  
     
    Configuration Error   
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.   
     
    Parser Error Message: Could not load file or assembly 'Telerik.Framework' or one of its dependencies. The system cannot find the file specified.  
     
    Source Error:   
     
     
    Line 161:      </eventMappings> 
    Line 162:      <providers> 
    Line 163:        <add name="Simple Web Event Provider" type="Telerik.Utilities.TextFileWebEventProvider,Telerik.Framework" logFileName="~/App_Data/sitefinity.log" /> 
    Line 164:        <add name="Simple Web Buffered Event Provider" type="Telerik.Utilities.BufferedTextFileWebEventProvider,Telerik.Framework" bufferMode="Notification" logFileName="~/App_Data/sitefinity.log" /> 
    Line 165:        <add name="Code Benchmark Provider" type="Telerik.Utilities.CodeBenchmarkTextFileProvider,Telerik.Framework" enabled="False" logFileName="~/App_Data/performance.log" /> 
       
     
    Source File: e:\home\julianonun\Web\web.config    Line: 163   
     
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Framework' could not be loaded.  
     
     
    WRN: Assembly binding logging is turned OFF.  
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.  
    Note: There is some performance penalty associated with assembly bind failure logging.  
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].  
     
       
     
     
    --------------------------------------------------------------------------------  
    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016  


    Can you help me?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    31 Aug 2009
    Link to this post
    Hi Juliano,

    1. The first error is thrown because your hosting account uses Medium Trust Support, but the website is configured for Full Trust Support. If you have configured your website to run under Medium Trust Support then your hosting provider uses security policy different the the default one for Medium Trust.

    2. The second error, most probably it is a result of the first error. In medium trust healthMonitoring should be disabled. Another possible reason is that Telerik.Framework does not exist in your bin or ASP.NET account does not have needed permissions over this assembly or /bin folder.

    How to set up medium trust support.

    Before setting the trust level to medium, make sure you modify the application web.config file as
    described below:
    1. Disable page and module workflow *:

    <add connectionStringName="DefaultConnection" 
    allowPageHistory="false" 
    allowPageWorkflow="false" name="Sitefinity" 
    type="Telerik.Cms.Data.DefaultProvider, Telerik.Cms.Data" /> 
    … 
    <add name="Generic_Content" visible="True" defaultMetaField="Name" 
    securityProviderName="" allowLocalization="False" 
    allowVersioning="True" allowWorkflow="false 
    … 
    <add name="News" visible="False" defaultMetaField="Title" 
    securityProviderName="" allowLocalization="true" 
    allowWorkflow="false" 
    … 
    <add name="Blogs" visible="False" defaultMetaField="Title" 
    applicationName="/Blogs" allowVersioning="True" 
    allowLocalization="False" localizationProviderName="" 
    allowWorkflow="false" 
    … 


    2. Disable health monitoring:

    <healthMonitoring enabled="false" heartbeatInterval="0"
    3. Make sure the following lines are commented out: 
    <!--add name="SitefinityXml" securityProviderName="" 
    type="Telerik.Lists.Data.XmlProvider, Telerik.Lists.Data" 
    dataFile="~/App_Data/Lists.xml" visible="true" /--> 

    The Sitefinity module providers cannot get their database objects created in medium trust environment
    and you may get errors. To prevent this, you need to enforce database upgrade in full trust environment,
    in your local Web site. Creating at least one content item in each module before uploading the upgraded
    database to the production server and setting the trust level to medium will initialize all modules in the
    database. The Sitefinity Search service does not work in medium trust environment.
    RadMemoryOptimization requires ReflectionPermission in order to operate correctly. This means that
    in normal circumstances you will have to run your application with Full Trust permissions set, unless
    you create a custom security policy, which allows ReflectionPermission. If you are unable to set Full
    Trust or custom security policy, the solution is to put the Prometheus controls assembly in GAC.
    The Upload Control functionality is not available in medium trust environment. You need to upload the
    controls manually through the application web.config file.
    The upload of .ZIP files in the Images & Documents module is currently not possible in medium trust
    environment.

    Best wishes,
    Ivan Dimitrov
    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.
  7. Lee
    Lee avatar
    13 posts
    Registered:
    15 Aug 2008
    09 Jul 2010
    Link to this post
    Hi,

    I've been trying to upload a site I have created for a client in Sitefinity, they have 1&1 hosting which appears to be not ideal for so far for Sitefinity, I have followed the tips above and steadily been making progress (I believe).  My current error message is
    System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    

    Based on the tip mentioned above:

    "RadMemoryOptimization requires ReflectionPermission in order to operate correctly. This means that
    in normal circumstances you will have to run your application with Full Trust permissions set, unless
    you create a custom security policy, which allows ReflectionPermission. If you are unable to set Full
    Trust or custom security policy, the solution is to put the Prometheus controls assembly in GAC"

    I believe I cannot run in full trust, cannot create a custom policy and unable to put it in the GAC.  Are there any other things I can try besides changing package which I'm sure my client will not want to do.

    Many thanks

    Lee
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Jul 2010
    Link to this post
    Hello Lee,

    Setting the server security is a server side option. It looks like that the medium trust policy of your host is not the default one specified by Microsoft and MSDN. Sitefinity cannot change the security policy and you should consider changing your plan to get this working. Before changing your plan/host verify that

    1. The project has been installed locally
    2. The project has been configured to work in Medium Trust locally.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered