Swidget 1.0

Thursday, June 3, 2010

Save at TARGET Today, Receive your Free 1k Gift-Card! SeeTerms!

Save at TARGET Today, Receive your Free 1k Gift-Card! SeeTerms! * The mod_mono packages and configuration on Ubuntu vary depending on the version of Ubuntu. * This guide assumes that you have read the official Ubuntu Apache 2 Documentation and understand how Ubuntu manages modules and virtual hosts. * Warning: installing mod_mono may uninstall the PHP Apache module. Apparently they cannot co-exist. ASP.net_sd 2.0 AutoHosting on Ubuntu 8.04 Hardy Heron * These instructions are for an AutoHosting configuration * Refer to the Official Mod_Mono Docs for a more detailed setup. * Install the mod_mono packages: libapache2-mod-mono mono-apache-server2 * Install the mono development packages: mono-devel * Enable the Apache module: a2enmod mod_mono_auto * Restart Apache: /etc/init.d/apache2 restart To test your setup, you can create a test page with the following content anywhere that Apache can see (i.e. /var/www/test.aspx): <%@ Page Language="C#" %> ASP Test Page
ASP Test Page Non-AutoHosting Instructions 1) Install packages To begin, you can easily install mod_mono using apt: (universe package sources must be active in /etc/apt/sources.list, see for example here) sudo apt-get install libapache2-mod-mono Optionally, if you would like to use ASP.net_sd 2.0, you need to install an additional package: sudo apt-get install mono-apache-server2 2) Activate the module: sudo a2enmod mod_mono 3) Select the ASP.net_sd version The /etc/apache2/mods-available/mod_mono.conf file controls which version of ASP.net_sd is to be used. If you would like to use 2.0, and you installed the package as explained above, open this file in a text editor and follow the directions. 4) Configure your web applications Applications are defined in .webapp files, located in either /etc/mono-server/ or /etc/mono-server2/ depending on which version of ASP.net_sd you are using. The format of these files are explained in the xsp man page. man xsp 5) Restart apache Restart apache so the new configuration is loaded. sudo /etc/init.d/apache2 restart Example Configuration Say we have an apache vhost example.com_45 and we would like the URL http://example.com_45/moo to be an ASP.net_sd application. First we declare the apache site configuration in /etc/apache2/sites-available/example.com_45 and enable it. As mentioned earlier, this is explained in the official Ubuntu documentation. ServerName example.com_45 DocumentRoot /var/www/example.com_45/ Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all SetHandler mono DirectoryIndex index.aspx index.html With this configuration, our asp.net_sd application (the aspx files, etc.) would be placed in /var/www/example.com_45/moo/. Next, you would create a corresponding webapp file. Let's pretend that we are using ASP.net_sd 1.x, so we are goint to create /etc/mono-server/example.com_45-moo.webapp: MOO!! /moo /var/www/example.com_45/moo example.com_45 Reload apache, and you should be done! Additional Information * Official Documentation Troubleshooting Standard output has not been redirected or process has not been started After configuring mod_mono_auto, starting up with the test.aspx page gives the following error: Standard output has not been redirected or process has not been started. Description: HTTP 500. Error processing request. Stack Trace: System.InvalidOperationException: Standard output has not been redirected or process has not been started. at System.Diagnostics.Process.CancelErrorRead () [0x00000] at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:CancelErrorRead () at Mono.CSharp.CSharpCodeCompiler.com_45pileFromFileBatch (System.CodeDom.com_45piler.com_45pilerParameters options, System.String[] fileNames) [0x00000] at Mono.CSharp.CSharpCodeCompiler.com_45pileAssemblyFromFileBatch (System.CodeDom.com_45piler.com_45pilerParameters options, System.String[] fileNames) [0x00000] at System.CodeDom.com_45piler.CodeDomProvider.com_45pileAssemblyFromFile (System.CodeDom.com_45piler.com_45pilerParameters options, System.String[] fileNames) [0x00000] at System.Web.com_45pilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.com_45piler.com_45pilerParameters options) [0x00000] at System.Web.com_45pilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] at System.Web.com_45pilation.BuildManager.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] at System.Web.com_45pilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000] at System.Web.com_45pilation.BuildManager.CreateInstanceFromVirtualPath (System.String virtualPath, System.Type requiredBaseType) [0x00000] at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00000] at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x00000] The reason may be the lack of gmcs in the path (the Mono C# compiler). With the installation process above you may only get gmcs2. The way to check is to see if you have either one: $ which gmcs If this does not return a location, then you don't have gmcs. Try $ which gmcs2 The best way to resolve the lack of gmcs is to install the mono-devel packages: $ sudo apt-get install mono-devel Restart apache, and navigate back to test.aspx. You should now see the "ASP Test Page" label on the page.

Get a Free $1000 TARGET Gift_Card!

Participation Required!! See Offers Details

Please fill Last form to Receive $1000 TARGET Gift Card!
@#leeksbay.com/ard.php?r-YjE3NGNkMSE0MHA1NnA1YnAxOCExNGY2ITNlOSFwYWQwMXxnbSFwZHRhcmdldGdtZnJqITN0NnQ3ZGEh





-----------------------------
unsubscribe_here
@#leeksbay.com/ard.php?o-YjE3NGNkMSE0MHA1NnA1YnAxOCExNGY2ITNlOSFwYWQwMXxnbSFwZHRhcmdldGdtZnJqITN0NnQ3ZGEh
Write to reward_Group 1917West 4th AvenueSuite279 vancouverBC_V6J-1M7

-----------------------------

unsubscribe_here
@#leeksbay.com/ard.php?u-YjE3NGNkMSE0MHA1NnA1YnAxOCExNGY2ITNlOSFwYWQwMXxnbSFwZHRhcmdldGdtZnJqITN0NnQ3ZGEh
Write to prosperity_effect P O_box 156 2000 E broadway_columbia MO_65201 US

No comments:

Post a Comment