by Tom Miller
18. November 2009 19:05
I thought I'd write a quick post (my first ever blog post by the way!) to help others out when deploying BlogEngine.NET to GoDaddy.
If you follow the steps below you shoudln't go far wrong. I'm assuming your data is held in the default way (xml files stored in the App_Data folder).
First of all I downloaded the latest version of BlogEngine.NET v1.5.0.7. I then configured my custom theme and set up the blog on my local machine (I should be a poet!).
Once all the hard work's been done and your ready to deploy the application create a folder on your computer somewhere, build the solution and publish the files, using the Build menu in Visual Studio, to that directory.
If you're like me and require the application to run separate from your main website then you'll need to create a new virtual directory using the Hosting Control Center. I'll talk you through this later on.
First things first - you need to create a folder for your blog. I created a folder called "blog" in the root directory of my main website. I then uploaded all the files I published to the hard disk to this directory using FTP (FileZilla is a good free FTP client but windows explorer is sufficient). The next step is to manually copy up the App_Data folder from the project files you were working on (not the published version as this doesn't create some of the folders required for the application to work). I found this out the hard way, believe me!
Once you've done the above you need to log into GoDaddy's Hosting Control Center. View your files and give the App_Data folder located in the blog folder Read/Write permissions and also select the option for sub folders to inherit the permissions. Subsequent to this you need to set up your virtual directory. This is so that BlogEngine.NET is treated as a separate web application.
To set up your virtual directory:-
- Log into GoDaddy.
- Select Manage Account for the appropriate website.
- Expand the Content tab and select IIS Management.
- Click Add
- In Directory Name type the name of the root application folder (e.g. blog)
- Tick Anonymous Access and Set Application Root
- Click OK.
You may then have to wait for the virtual directory to be configured. Once this is complete you should be up and running.
If you have any other issues email me and I'll do my best to help.