|
 Friday, August 17, 2007
« Postponing .NET User Group Presentation | Main | Outlook Live Mail Connector »

Installing BlogEngine.NET on GoDaddy Shared Hosting

benlogo80  gdLogo

I recently installed BlogEngine.NET on a GoDaddy.com shared deluxe Windows hosting account.  

After following the directions located on BlogEngine.NET's website I ran into a few problems.

Problems

  • Trust Level
    • The hosting account complained that I was trying to over ride a setting that was set at their Machine level for application Trust. Note: You cannot change the trust on GoDaddy hosting accounts (as far as I know).
  • App_Data Directory Permissions
    • You can upload the App_Data folder, but there is not a way to set the permissions on the folder (this folder needs Read/Write/Web access so that BlogEngine.NET can write to it).

Resolution

Here's how I installed BlogEngine.NET on a GoDaddy Shared Hosting account:

ASP.NET Set Up

  1. Log into your Hosting Account and go to the control panel.
  2. Go to Settings --> ASP.NET Runtime
  3. Ensure that the Runtime Version is set to 2.0.
    1. If not, select "Content Root" and then change it to 2.0. Click Continue.

 

[This next step is optional.]

Setting up The Blog in A Sub Folder (If you want to set up your blog on a sub directory like this: www.example.com/blog/ then you'll want to do follow these steps. If you want the blog to be your main URL such as www.example.com then skip this step).

  1. Return to the ASP.NET Runtime area of the hosting account (Steps outlined above).
  2. Click "Create Directory" and call it whatever you want, e.g. "blog"
  3. Set the settings of "Read", "Web", "Set Root" (this sets up the directory as a virtual directory)
  4. Click Continue to finish.

 

Setting Up the App_Data Folder

The App_Data folder needs to have write access enabled so BlogEngine.NET can do its work.

  1. Return to the ASP.NET Runtime area
    1. (If you've  decided to put your blog in a sub-folder, then select that folder name now)
  2. Click "Create Directory"
  3. Give it a name of "App_Data" with permissions of "Read", "Web", "Write"
  4. Click continue to finish.

 

BlogEngine.NET Configuration Setting Change

You will need to remove one line of configuration in the web.config file.

  1. Open the web.config file
  2. Find the line that has this in it: <trust level="High" />
  3. Remove that line
  4. Save and exit the file

 

Uploading Files to your site

Use your favorite FTP Client, I recommend FileZilla, to upload the files.

  1. Connect to your GoDaddy account with the FTP Client.
  2. Navigate to the folder in which you want to install the blog.
    1. If its a sub directory like "blog", go into the blog directory, otherwise if you want it as your main site landing page, use the home area which will usually be yoursitesname.com (or whatever your domain is)
  3. Copy all files EXCEPT FOR THE App_Data to the host. The App_Data folder should already be created (if not, then wait 5 minutes for Go Daddy's system to create the directory for you  - we did this in a previous step, but it can take a few minutes for the process to complete).
  4. After the files uploaded, go into the "App_Data" folder of your installation (on your local drive) and then upload all files and folders into the "App_Data" of the web site.

 

Now navigate to your site and finish with the regular installation

 

Contact Setup

This step I had to poke around to figure out...

You'll need a mail account with GoDaddy to set this up. Set up the mail account on GoDaddy (see their help for this)

  • Once a mail account is configured, go to your site, in the settings tab, and use the smtp adress of 'relay-hosting.secureserver.net'

 

Enjoy!

#    Comments [18] |
Friday, August 17, 2007 2:32:36 PM (Eastern Standard Time, UTC-05:00)
Greetings. Thanks a lot for the step by step information. Sadly in my case it didn't work. I followed every step to the line and I keep getting an error from godaddy saying Server Application Unavailable.

I even tried reinstalling everything into a different folder. To no avail.

It works on my local IIS and on my staging server, but just not on goDaddy.

Did you have to threaten them or send them a check to get it working ?? eheh.

thanks a lot, I'm borderline desperate at this point, spent the whole afternoon trying to get it working.

Pat
Friday, August 17, 2007 3:53:16 PM (Eastern Standard Time, UTC-05:00)
Patrick,
Haha. No I didnt threaten them, but sometimes you wish you could right?!

It didnt work for you... hmmmm.... when you get the server error, can you go into your web.config and change this setting:
From:

<customErrors mode="RemoteOnly"/>

to

<customErrors mode="Off"/>

Then hit the page again from your browser, you'll get a more nutrient rich error. That might help us figure out whats goingon.
Wednesday, September 05, 2007 11:46:52 AM (Eastern Standard Time, UTC-05:00)
Hey, it worked! Thanks for helping our a new guy. This is exactly what I need to get started. Worked perfectly.
Wednesday, September 05, 2007 11:55:26 AM (Eastern Standard Time, UTC-05:00)
Awesome, I'm glad it worked for you as well. Have fun gettin' yo' blog'on. :)
Wednesday, September 05, 2007 1:09:57 PM (Eastern Standard Time, UTC-05:00)
Thanks for this good, step-by-step basis instructions. I noticed you are using Deluxe plan as well, interesting: the only reason why our company went for Deluxe, was the multiple-websites feature. Keep in mind, that BE.NET in combination with GD.Deluxe, your AppPaths will be used by default for all links. So if you have another domain e.g. MySecondSite.com with different content and created and added that into your deluxe plan, you'll notice you need a seperate folder under your content root e.g. /Domain2/ or /Sites/MySecond-com/ etc. which will be the application path (!).

Like I said, by default BE.NET will resolve links to http://www.MySecondSite.com/Sites/MySecond-com/

If you don't mind or just use a pretty descriptive subfolder name, it won't be a big problem. It is a challenge though, to have multiple "non-content-root sites" resolve all BE.NET links to the relative root ("/") and eliminate the link references to the AppPath.

Hope this make sense, but I'm working on an article as well for "multiple BE.NET websites" on GoDaddy Deluxe. I'll make sure to link for the basics to this article! Great job and thumbs up!
Monday, September 24, 2007 9:29:57 PM (Eastern Standard Time, UTC-05:00)
Hey thanks for the step by step instructions, but i am running into this error and ideas? I know it has something to do with the BlogEngine.Core file, it's in the www.scubalog.us/Blog/ dir, can't figure it out yet..

Server Error in '/Blog' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'BlogEngine' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 6: using System.Web.UI;
Line 7: using System.IO;
Line 8: using BlogEngine.Core;
Line 9:
Line 10: #endregion


Source File: d:\hosting\jkelly1966\Blog\App_Code\Controls\RelatedPosts.cs Line: 8



Monday, September 24, 2007 9:55:09 PM (Eastern Standard Time, UTC-05:00)
Figured it out, was missing the BlogEngine.Core and BlogEngine.Core.dll from the Bin dir, works now...
Tuesday, October 02, 2007 3:25:25 PM (Eastern Standard Time, UTC-05:00)
Donn thanks for the time you have already put in, but I could use your help. I have followed your instructions to the letter, but I am getting this error you can see here...

http://www.thedamascusroad.com/tdr/error.htm?aspxerrorpath=/tdr/default.aspx

I am hoping you can help me out. I have the site hosted with godaddy and it is a domain hosted under a primary domain with the deluxe package.

Thanks for any help you can offer.
David
Friday, October 19, 2007 4:20:16 PM (Eastern Standard Time, UTC-05:00)
I've followed these instructions and even tried some of the remedies described, and this is the error I get:

Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.


If anyone can help me with this, I'd totally appreciate it. I'm pretty close to abandoning this project and going back to WordPress.
-Adam
Adam
Monday, December 17, 2007 3:20:28 PM (Eastern Standard Time, UTC-05:00)
Hello,
Thanks for the steps they are very informative and useful, but my problem is in configuring a subdomain (in godaddy too).

for example if my domain is amr.net and i want to install a blog and wiki

so they will be installed as amr.net/blog and amr.net/wiki

So how do I make it from amr.net/blog to >> blog.amr.net

I tried alot I added a subdomain called blog , which automtically added an Address record but when I type in my browser blog.amr.net it redirects me to amr.net/blog which I dont wat I want the url as it is, like yours.

Thank you.
Amr Elsehemy
Tuesday, December 25, 2007 11:40:44 AM (Eastern Standard Time, UTC-05:00)
GoDaddy changed their permission interface and I wonder if functionality wise things have changed. My new BE.Net 1.3 installation gives a lot of permission errors, even though the App_Data got write permission via the new File Manager interface.

Anyone a clue before I contact GD?
Mike van Zandwijk
Friday, January 18, 2008 7:05:14 AM (Eastern Standard Time, UTC-05:00)
Pfew, GoDaddy finally restored their permission system!

Speaking of finally, I finished a guide to BlogEngine.NET on multiple sites (the GoDaddy Deluxe feature).
The thing with GoDaddy's pre-installed BE.NET version is:

* Requires a SQL database only (no XML option)
* Uses an old version of BlogEngine.NET (1.2)
* Shows the dreadful, ugly custom directory path

So, the only solution I could come up with is a custom-built BE.NET for shared hosting plans, like GoDaddy.

If you're interested, get this version at http://www.codeplex.com/modpack
A step by step guide, I published yesterday (my icon should link to it)

Great job Donn!
Cheers Mike
Tuesday, January 29, 2008 1:32:14 PM (Eastern Standard Time, UTC-05:00)
Donn,

You the Man! I have spent over 24 hours on my web.config file in VB.Net 2005 Express trying to get it to work. I found a great tutorial that I had to pay 10 dollars for and they explained very well everything else about changing the ConnectionString, but YOU showed me how to set the virtual directory that made my ASP.Net work.

I would hire you and your children to work for me with no questions asked!!

You The Man
Tuesday, January 29, 2008 1:54:56 PM (Eastern Standard Time, UTC-05:00)
Excellent info. I didn't need most of it because godaddy's "Hosting Connection" makes the installation mostly painless these days, but I was having trouble with setting up the mail. A google search of "blogengine.net email setup godaddy" led to this site as the first link and it solved my problem right away.

Thanks a gazillion.
Michael
Friday, March 07, 2008 12:08:14 AM (Eastern Standard Time, UTC-05:00)
I am not able to configure the Contact Email Settings on Godaddy.Com
please help me!
Monday, March 17, 2008 9:34:39 PM (Eastern Standard Time, UTC-05:00)
Hi! I'm not able to install blog. How do i d/load ?

Pls, help me.
Raju Jana
Wednesday, March 19, 2008 10:59:54 AM (Eastern Standard Time, UTC-05:00)
Hi Donn,
I installed BlogEngine.net via my GoDaddy hosting panel and did the usual setup procedures - install successful. Was able to download a new skin and change it, etc. However, when I added categories, they don't show up in the main blog page (it still only shows the "General" category in the "Categories" list). The blog folder was named blogengine.net by default. Permissions on it and the app-data folder look OK. Any thoughts? GoDaddy won't help. :( Thanks in advance.
Friday, May 09, 2008 6:16:27 AM (Eastern Standard Time, UTC-05:00)
Thanks for this post, it was just what I needed, I'd figured out the other steps except the web.config edit, no doubt you saved me a lot of time!
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview