Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Medium Trust - Confusing information in the Developers Guide View modes: 
User avatar
Member
Member
georgefemi-hotmail - 12/8/2009 10:34:28 AM
   
Medium Trust - Confusing information in the Developers Guide
Hello,
i am reading the steps to configure my Site for Medium Trust and i have a few problems. I cant seem to determine which steps are to be done locally and which are to be done on the remote server.

The link is http://devnet.kentico.com/docs/devguide/index.html?installation_in_medium_trust_environment.htm

The steps are below ..Can someone kindly append (local) or (production) to each step and this will help me in my quest to get my site up and running.

Install Kentico CMS on your local machine if you haven't done so yet.

• Run Kentico CMS Web Installer (you can find it in Start -> All Programs -> Kentico CMS).

• Choose to install Kentico CMS on a remote (production or testing) server and enter the path C:\tempsite. Finish the wizard - it only copies the files to the given folder. You do not need to have Visual Studio 2005 installed.

• Copy the files from your local folder C:\tempfiles to the root of the web site using FTP. If you want to use a sub-folder, you will need to create a new virtual directory as described in Creating a virtual directory.

• Make sure the web.config file on your server contains the following value in the appSettings section (it specifies that the CMS should use the managed provider):

<add key="CMSDirectoryProviderAssembly" value="CMS.DirectoryProviderDotNet" />


• Open web browser and navigate to your web site. You will be displayed with Database Setup Wizard.

• Go through the wizard and create a new Kentico CMS database on your live server. At the end of the process, you will be asked to update your web.config file manually - please follow the instructions on the screen.

• Choose either to create a new web site or import your existing Kentico CMS web site.

• After you create a new web site, you will need to save all virtual objects to the disk. Go to Site Manager -> Administration -> System -> Deployment and click Save all virtual objects to disk.


Thanks

User avatar
Member
Member
Alex Rybin - 12/8/2009 11:57:47 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
First three steps (Install Kentico CMS, Run Web Installer, Choose to install...) you should make locally.
At fourth step you move your site from local to remote (production) server.
At all other steps your site works remotely and you have access to it with you local browser...

User avatar
Member
Member
georgefemi-hotmail - 12/10/2009 8:38:05 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
Thanks Alex..I did this and i got the following error while exporting the virtual objects;

access to the path 'c:\websites20233pm2\app_data\cmstemp\importexport' is denied.

firstly, is this a physical path? Do i need to assign read/write access to this folder?

I also read about some permission issues in http://www.kentico.com/docs/devguide/index.html?disk_permissions_problems.htm

Will this help? I didnt know it was so hard to get this to work in Medium Trust...


User avatar
Member
Member
georgefemi-hotmail - 12/10/2009 8:39:32 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
sorry..the path is;

access to the path 'c:\websites\20233pm2\app_data\cmstemp\importexport' is denied.

User avatar
Member
Member
Alex Rybin - 12/10/2009 10:23:08 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
firstly, is this a physical path?

Sure.

Do i need to assign read/write access to this folder?

Yes. I recommend you to give r/w access to entire web-site folder for web application. At least during installation process...

I didnt know it was so hard to get this to work in Medium Trust...

Yes, it's really hard. I recommend you migrate to Full Trust hosting... :)

User avatar
Member
Member
georgefemi-hotmail - 12/10/2009 10:50:49 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
I have been given the read/write rights and successfullly imported the site.

on exporting the virtual objects, i got this error;

Warning: The VirtualPathProvider is not running. This could be caused by the fact that you are using precompiled website or the application runs under medium trust environment. In this case it is not recommended to copy objects files during the import process.


Any ideas?

User avatar
Member
Member
Alex Rybin - 12/10/2009 11:14:10 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
That is not error, just warning. You can continue with exporting...

User avatar
Member
Member
georgefemi-hotmail - 12/10/2009 11:36:33 AM
   
RE:Medium Trust - Confusing information in the Developers Guide
Thanks Alex,

Once i finish the virtal objects export, what next? The dev guidE is not too clear on this..

Thanks

User avatar
Member
Member
Alex Rybin - 12/10/2009 12:32:30 PM
   
RE:Medium Trust - Confusing information in the Developers Guide
But what do you want to do?

User avatar
Member
Member
georgefemi-hotmail - 12/10/2009 12:35:47 PM
   
RE:Medium Trust - Confusing information in the Developers Guide
sorry..its come up now..i can see an error though..

Could not load file or assembly 'WebChart, Version=1.1.1.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests.

i think this is due to the security settings not loading the webchart dll but i guess i can remove it..

i hope this the correct interpretation of the error message?

thanks alex.

User avatar
Member
Member
Alex Rybin - 12/10/2009 11:51:44 PM
   
RE:Medium Trust - Confusing information in the Developers Guide
Yes, you interpreted it correcly. But I can not be sure that you can remove it...

Is that server at your control?