TurnKey Linux Virtual Appliance Library

Appliance : IIS replacement (asp.net)

Basil Kurian's picture

Hosting asp websites using mono module on Apache base : Turnkey core lenny

Attached: 
Basil Kurian's picture

limitation

I think only ASP.net 2.0 applications will work !


Liraz Siri's picture

TurnKey ASP could be a big hit!

Good work Basil! An ASP.NET replacement appliance could be a big hit. There are a ton of Windows developers out there and their deployment options kind of suck.

I took a look and everything looks ok. The only thing that might be worth looking into is adding some kind of diagnostics script (e.g., like phpinfo.php but for ASP) so the user can verify that everything is working out of the box and maybe take a look at some of the settings. I haven't investigated this option myself so this is just an idea based on my experience with TurnKey LAMP.

BTW, did you run into any problems installing Mono in the tklpatch-chroot environment? A friend reported that Mono hanged when he tried it.

What do you think?

Basil Kurian's picture

Problem with mono modules

>> did you run into any problems installing Mono in the tklpatch-chroot environment?

If Apache is running while the mono modules are installed , then sometimes, it will create some problems. I experience such a problem even in non-chroot instances also

 

Above attatched patch is working fine :)


Basil Kurian's picture

There is no things like

There is no things like phpinfo() available in ASP  ;(

I have put  a sample ASP page in dcoument root of apache, and is working fine :)


Any new projections on MONO appliance?

The mono version 2.10.8 states it supports the .net 4 framework including vb.net. I would LOVE to be able to run an appliance with this configuration. I am well versed in the Windows world, but linux has gotten me in trouble in the past. Your appliance model has major appeal and lower licensing costs is real motivation.  

Jeremy's picture

Could be a limitation to TKL v12.x Mono production server

I have read that Mono may be moved for the Main Ubuntu repo into Universe for the upcoming 12.10 release.

While this will not be a complete deal-breaker for creation of a TKL appliance, without Cannonical sponsored security updates it could be an issue for a Mono based production server.

At this point this is just speculation (based on internet murmurings) but still be worth checking out and if true I think will need to be documented for the official appliance.

[update] I just thought, rather than speculate and perhaps unintentionally spread FUD I could do a little research. As it turns out it looks like some of the Mono stuff is in Main, much of it is in Universe (see here). Without cross-referencing against the package list that Basil's patch installs I can't be sure, but still worthy of consideration when the time comes for an official TKL appliance.

Tutorial on installing ASP.NET on the TK LAMP appliance

Hi,

I also think this might be a hit and it is so easy to turn a LAMP appliance into an ASP.NET. I wrote a short tutorial on installing ASP.NET on your LAMP appliance and I am planning to show it at the local .NET user group at some point:

http://codefornothing.wordpress.com/2012/03/03/the-easiest-way-to-run-asp-net-on-linux/

I hope Ubuntu politics won't spoil the possibility though.

Cheers,
Jose

Jeremy's picture

Nice tutorial!

And I think this is a great idea for an official TKL appliance. Hopefully it will make it into the 12.x release.

Thanks!

Hi, 

Glad you liked it. I just added a few more instructions using the latest TurnKey 12.0 RC. It is slighly more involved because I had to start with the ISO file but it is still dead simple.

I would think that the combination of ASP.NET on Linux on AWS is a possible winner. There are loads of small commercial ASP.NET apps that might see this as a good alternative to Azure which appears to be more expensive.

Cheers,
Jose

issue with ASP.NET Visual studio

Here is my situation: When I was using a barcode reader dll to output the barcode to data string in Visual Studio, I entered those C# code:
foreach (string aa in results)
{
Console.WriteLine(aa);
}
it works at the first time. But when I changed the barcode, this code doesn't work. Strangely, when I delete it and paste the same code, it works again.
Why? the barcode reader is not good or my system is not good?
Would some guys help me solve it?


Jeremy's picture

To be honest I have no idea

I think you'd be better off asking somewhere where people are a little more familiar with Mono. It may be something you're doing wrong, or possibly is something that Mono doesn't handle quite right yet. (Mono is the name of the software that somewhat emulates the functionality of .NET - although it's not complete, I have read that they focus on the more common/popular functions etc so if you are using something obscure then perhaps that's where the problem is...? But I have no idea at all (neither with .NET or Mono) so as I say, I suggest that you have a google around and find a forum that has Mono experts to help you out.

if you don't know whether it

if you don't know whether it is the barcode scanner or the system' problem, you can use a vb.net barcode reader to try it out. you can find many on ther internet.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)