Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Godaddy site works great locally...not live though View modes: 
User avatar
Member
Member
quickpaw2000-hotmail - 11/27/2009 11:13:15 PM
   
Godaddy site works great locally...not live though
Hi all,

I've been developing my Kentico site on my Godaddy's database for a few weeks now, and everything has been working great on my local computer through Visual Studio 2008.

I did a "Copy Web Site" in Visual Studio to upload the website to my webspace on Godaddy.

I found that a lot of things aren't loading correctly (like images that I uploaded to Kentico). I also get this message when I go to my MasterPage:

'The VirtualPathProvider is not running, you cannot edit the layouts. The system is using the physical layout files from folders ~/CMSLayouts and ~/CMSTemplateLayouts'

I copied the CMSTransformations, CMSTemplateLayouts, and CMSWebPartLayouts folders as discribed in the Medium Trust setup. My site now displays, but again, alot of things are missing that should be pulling from the database.

Any ideas on what's up?

http://www.realmofquickpaw.com

User avatar
Member
Member
quickpaw2000-hotmail - 11/27/2009 11:16:09 PM
   
RE:Godaddy site works great locally...not live though
I just tried the site again through Visual Studio...and everything is working fine.

Both my local and live copy of the website are pulling from the same Godaddy database.

User avatar
Member
Member
quickpaw2000-hotmail - 11/27/2009 11:17:32 PM
   
RE:Godaddy site works great locally...not live though
...my live copy still isn't working correctly. If anyone needs more info, just let me know. Thanks again for your help!

User avatar
Member
Member
quickpaw2000-hotmail - 11/29/2009 3:14:23 PM
   
RE:Godaddy site works great locally...not live though
Ok, after a few days of messing around with Kentico, I have a better understanding of what is going on.

1) I performed the "Save all virtual objects to disk" and moved all the new files generated by this to my godaddy account. My site now displays. However, I cannot edit my masterpages, transformations, or templates. I can, however, add/edit pages.

2) Besides what is mentioned in 1), images and flash aren't showing up properly. Everything, again, works perfectly locally, but does not work when it's live. Here is a example url:

/getattachment/675b9d65-4d16-4910-a539-66a6e6667453/kitty_bg?maxsidesize=300


I'm getting closer to getting my site up and fully functional, but I ran out of ideas on what to do next. If anyone needs anymore info so we can solve this problem, just let me know.

User avatar
Member
Member
polarwarp-gmail - 11/30/2009 6:30:31 PM
   
RE:Godaddy site works great locally...not live though
I had a look at that kitty bg image and noticed that this works:

http://www.realmofquickpaw.com/getattachment/675b9d65-4d16-4910-a539-66a6e6667453/default.aspx?maxsidesize=300

I was noticing yesterday in our second environment that some of our images weren't showing - for document attachments. I had to rejig the way we constructed the get attachment request in order for it to work (ie. in particular the document name at the end).

How/where are you referencing your image? A lot of your site seemed to have images.. so I'm not sure what else was broken?

I assume you understand that if you precompile your site - you need to save all virtual objects to disk, and then build/publish the site (so it includes all your virtual objects that get saved). But you lose the ability to edit transformations, layouts and page templates in this environment. I'm not sure if you're saying you understand it or if its a question :)

User avatar
Member
Member
quickpaw2000-hotmail - 11/30/2009 8:57:26 PM
   
RE:Godaddy site works great locally...not live though
All of my art gallery pics are being pulled from what I uploaded to Kentico.

Take for example http://realmofquickpaw.com/Artwork/Color.aspx. On this page, there should be thumbnails showing up to represent the full sized images, and when you click on the image, or links, the full image will open. All of the thumbnails, and the calls to the .swf in my animation gallery, are using GetFileURL("FileAttachment"). The full sized images are using the GetDocumentURL();. The reason why I was using these 2 different methods is because I modified the CMS.File fields to have a additional file attachment.

I believe most of my problems are from Godaddy's medium trust setting.

I really wish I didn't have to precompile, and just run everything strictly through Kentico, like I do locally. But yeah, thanks again for taking a look!

User avatar
Member
Member
quickpaw2000-hotmail - 11/30/2009 9:14:42 PM
   
RE:Godaddy site works great locally...not live though
Ok, I removed the GetFileURL("FileAttachment") and replaced it with another GetDocumentURL();. Thumbnails seem to be working just fine now.

My last issue is getting my flash animations to display right. http://realmofquickpaw.com/Artwork/Animations.aspx

This page, again is using nothing but GetFileURL("");. I'll change up the transformations tomorrow and see if I can get it to work. It still puzzles me how everything was working locally before I did the code change.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/1/2009 10:35:39 AM
   
RE:Godaddy site works great locally...not live though
Hi,

Could you please try to follow our KB article about running Kentico CMS on GoDaddy hosting? It would be easier to restore backups of your local project folder and DB to the hosting servers.

GoDaddy is using Medium trust environment, which won't allow the VirtualPathProvider to run, so you are not able to change the templates, layouts and transformation and mentioned above. You need configure Kentico for Medium trust and you can also use these instructions:
Installation on medium trust
Deployment to live server

Best Regards,
Juraj Ondrus

User avatar
Member
Member
quickpaw2000-hotmail - 12/1/2009 10:53:19 AM
   
RE:Godaddy site works great locally...not live though
As the days went by, I figured it was more of a Godaddy issue than a Kentico one.

Right now, my site does work on Godaddy. I'll just have to live with the VirtualPathProvider not running until I eventually move to another server.

Again, thanks for everyone's help looking into this with me! Keep up the great work, and I can't wait to see version 5.0!