Getting your Lemoon website online

Once you have created a Lemoon website locally, you normally want to make it available online, that is, publish it.

Basically, all you need is web hosting that allows you to run ASP.NET 4.0 applications in Full Trust mode. Please note that not all web hosting providers offer ASP.NET 4.0 services or allow running ASP.NET applications in Full Trust mode. You should check these prerequisites with your provider before publishing the website. Of you are uncertain if your hosting provider will work you can always go with our hosting offer which is guaranteed to work with Lemoon.

In this quick deployment guide we will consider three ways of publishing your Lemoon website:

Publishing with Visual Studio

Publishing a Lemoon website is pretty straightforward. You should first publish your Lemoon website with the built in Visual Studio Publish functionality. You should then upload the published files to your web hosting provider.

Publishing to your web hosting provider via FTP

If you own an account with a web hosting provider, you can publish your Lemoon website via FTP (or any other method that you provider offers for deploying website). To successfully run a Lemoon website on the server, you should make sure with your provider that:

  • your web hosting supports ASP.NET 4 applications
  • applications can run in Full Trust mode
  • they have SQL Server or SQL Server Express

Publishing your web site with Visual Studio and uploading via FTP is a simple operation:

  1. Click the "Build, Publish" menu item in Visual Studio.
  2. Select the "File System" publish method.



  3. Enter the target location (a local folder on your computer, e.g. C:\Temp) where you want to publish your project and click the "Publish" button.
  4. Connect to your web hosting provider via FTP with your credentials using your favorite FTP client (e.g. FileZilla).
  5. Upload all the published folders and files to your hosting provider.

Once done, you can access you website online by the URL given to you by your provider.

Publishing to your own server with IIS

If you have access or own a remote server with IIS, you can publish a local Lemoon website to this IIS. The following steps are intended for IIS version 7.5 or later.

  1. Click the "Build, Publish" menu item in Visual Studio.
  2. Select the "File System" publish method.



  3. Enter the target location (a local folder on your computer, e.g. C:\Temp) where you want to publish your project and click the "Publish" button.
  4. Create or make sure to have an application pool with .NET Framework 4.0.
  5. Set its managed pipeline mode to "Integrated".



  6. Copy your published files to a folder on the remote server (XCOPY).
  7. For the identity the application pool is running under (for example, "NETWORK SERVICE"), set permissions to allow modifying, reading, writing etc.




  8. Create a website on IIS ("Add Web Site..."), selecting the application pool from Step 4 and point it to the website's folder from Step 6.




  9. If needed, specify a port other than 80 and the host name.
  10. Save the configuration (OK).

Publishing with WebMatrix

Publishing your web site with WebMatrix

When you're ready to upload the local copy of your website to the Internet, click the Publish button in the WebMatrix ribbon.

The first time you publish, the Publish Your Site dialog box is displayed.

To publish a website, you must have an account with a web hosting provider. If you don't have one yet, you can select either Create a new site on Windows Azure or Find Windows Web Hosting.

After you've set up an account with a hosting provider, the provider will typically send you an email with your user name, server name, and other information. To save you the extra step of entering this information manually, the provider might send you a "Profile XML" file (named with the.publishsettings extension) that contains this information. You can use these settings by selecting Import publish profile and then selecting the file provided by your hoster. Otherwise, you can enter the settings manually.

After you've published your site, you might want to make changes to it and republish it. When you subsequently select Publish, WebMatrix will list the local files that have been changed since the last time the local site was published. At this point you can select which files you want to upload to the remote stie and select Continue or cancel.

Once you have published your website, you can view the files in the remote site by opening the Remote View.

More information about using WebMatrix to publish websites can be found here.