I have heard of the pains of setting up IIS. On a windows box, can I simply drop a ASP.NET application into Apache server and have it work? Or are there any other server alternatives? I am relatively new to web server concepts. I have heard suggestions for the server in mono but it doesn't seem practical using mono on a windows box, I could use a Linux box with mono, which wouldn't surprise me if it worked better then a windows solution, but for arguments sake this question is directed towards a windows box.
Thanks
Try mod_aspdotnet.
mod_aspdotnet is a loadable Apache 2 module for serving ASP.NET content using the Microsoft's ASP.NET hosting and .NET runtime within the Apache HTTP Server process.
I believe there's a mod_mono you can use.
If you are windows user then you can go along with mod_aspdotnet
and if you are linux user then you can use mod_mono.
Related
How can i host asp.net website in linux server..
I am hosting asp.net website in linux server but it gives code error. You can see the screen short to better understand.
.
Although to avoid huge problems and configuration issues Windows server is used all over the world to host ASP.NET apps.
How ever you can explore Mono Project to use Linux to host ASP.NET Webapps.
Hope this helps.
You can host site in only two ways:
You use ASP.NET with Mono.
You use ASP.NET Core.
The second way is the most preferred but each of them are unstable and don't suitable for production. Use ASP.NET only with Windows Server with IIS.
I've developed a very simple ASP.NET (jQuery) application.
The RDBMS is MS Sql Server but I could easily convert it in MS Access.
My client would like to have it available on a CD, ready to run.
I was thinking to convert it in a WinForm app but, still, I have to install the framework on the client.
Is there any other "possible" solution?
You're going to have more trouble trying to run a web app on a client machine than you will a desktop application.
A web app requires some sort of web server running, but a desktop app just needs the framework.
You're going to be better off converting it to a desktop app.
If your users are running versions of XP, Vista, or Windows 7 that include IIS, you could conceivably install the application into a virtual directory. That's a lot to ask from end-users, though. Most users won't have IIS installed even if they are running a version of Windows that offers it.
I haven't tried this, but I just found it by searching for "portable asp.net web server"
http://www.codeproject.com/KB/aspnet/TinyWebServer.aspx
Introduction
Have you ever wanted to show up an
ASP.NET project where IIS was not
accessible? Have you ever thought of
if there can be a way to carry your
web server wherever you go, i.e., on a
USB flash stick or even a CD?
If so, then this cool TinyWebServer is
for you! This tiny portable web server
can be used for testing and developing
ASP.NET projects, wherever IIS is not
available.
Should be simple if you convert it to HTML & jquery script. As HTML doesn't require any seperate runtime & also worth considering asp.net runtime also does the same thing when the response is sent to the client.
You maybe able to do this by using something like cassini http://www.asp.net/downloads/archived/cassini/. This is a simplified version of the visual studio web server that you see when you run from visual studio.
In my team we have used this and wrapped it in a exe that allows us to start the cassini server and start a browser to the cassini server address.
This still relies on the right version of .NET Framework being installed.
EDIT: Some more recent links http://ultidev.com/Products/Cassini/ and
http://blogs.msdn.com/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx
I am building an ASP .NET 2.0 web app for an intranet environment. The site may have to be hosted on an XP machine in the LAN. IIS would restrict the number of connections to 40.
My requirements are different - the number of clients in the LAN could be much higher - say upto 1000 or maybe even more.
The site is built using ASP .NET 2.0 and extensively uses ASP .NET Ajax 1.0.
What options do I have? Is hosting it on an Apache server possible? (with ASP .NET Ajax)
If not, any alternatives?
Thanks.
EDIT: I've heard about ultidev cassini. Is that a good option (ASP .NET 2.0+ ASP .NET AJAX 1.0)?
I wouldn't consider cassini, in my experience it's too slow for production. Other alternatives:
Apache + mod_mono (but your app would be running under Mono instead of "standard" .net, which may or may not bring its own problems)
Apache + mod_aspdotnet (but this mod seems rather old and unmaintained)
Buy a Windows Web Server license (2003 or 2008), but I guess that's not an option is it? :-)
With those sorts of numbers, you should be able to justify a license really - will they all be accessing the server concurrently - if not you might be able to get away with the XP hosting.
How are you managing 1000 users without a single server instance in there - surely one of them has a bit of capacity to run IIS?
You can get a Windows Web Server 2008 License from around $469
This doesn't require CALs for access, but (IANAL) you might not be able use Windows Auth with that and it should be a public facing website...
I'd like to run some small private/home applications on a local machine, but I dislike the idea to set up a full Win2003 Server with IIS for this.
Is there a easy and cheap way to get an ASP.Net application running at home?
Windows 2000 has ASP, Windows XP Professional also can run it. Look up how to turn on IIS, the built in webserver. Sure Win2k3 Server would be a nicer implementation, but for personal stuff, any of them work.
The easiest way, assuming your desktop has an OS that supports it, is the Microsoft Web Platform Installer. Requires XP or higher, but doesn't work on Home editions of XP or Vista. It'll install IIS (which version depends on your OS), SQL Server 2008 Express, the .Net Framework, Visual Web Developer 2008 Express, ASP.NET MVC, Silverlight, and more. There's even a video on the linked page that'll show you how to set it all up.
Try VIsual Studio 2008 Express Web Developer. It's free, and better than many that are not. It comes with a built-in web server so you can compile,deploy and test immediately. No need for IIS.
http://www.microsoft.com/express/vwd/
Depending on what kind of app and what version of .Net you could run Cassini. It's the free, open source web server that supports .Net. I'm not sure if it's been updated to handle 3.5, but I used to use at home to run some pretty serioud 2.0 apps that I had written.
Here's the Ultidev version which has been updated: http://www.ultidev.com/products/Cassini/ Looks like it'll handle 3.5, so pretty much anything you have.
I have been running .NET apps on my home machine (XP) for years, and ASP apps for years before that. Just install IIS and then the .NET frameworks (and whatever else you need, e.g., MVC) and you are good to go. If your machine is behind a router you will need to port-forward port 80 to your desktop. If you do not have static IP, you can use a free service like DynDNS.org to give you a hostname, and you run a small client to keep the DNS for that hostname pointed to your router's IP. If you want to use your own hostname, register one with someone like GoDaddy.com, and then use a free service like ZoneEdit.com to keep the DNS updated with the correct IP.
I want to test ASP.NET applications to get the feel for the MVC extension and compare that to what I can do today with Grails or Rails.
The trouble is that being in a corporate environment, I can't install IIS on my workstation, neither on my DEV server. And - you guessed it - Visual Studio is not to be considered at that moment (I guess for my investigations I'll stick with SharpDevelop and the .NET SDK for the time being).
On the Java side, I could unzip some Tomcat distribution in any folder and hit go.
Is there any equivalent in the IIS world, like a lightweight ASP.NET host?
Thanks,
Rollo
UltiDev Cassini Web Server
cassini runs locally. I'll get a link..
Edit: Here's the link to the Cassini Web Server
UltiDev recently started shipping test builds of the Cassini replacement - UltiDev Web Server Pro. It requires elevated/admin privileges to be installed, but it can be downloaded for free. It's quite advanced, it's closer to IIS than Cassini. See screenshots.