views:

40

answers:

3

Hello,

I've developed a tiny application in ASPNET MVC that I'd like to deploy. Our network has 2 servers and 20+ desktops. The two servers have our applications (written in java) running in them. [we're not a software company - I've learned ASP.NET MVC on my own and would like to show it to my people - who knows? that might open doors...].

That's why I need to know (1) if it's possible to deploy my application to my desktop so that other can access to it form their computers in the same network? (2) How do I do it?

In fact, having my people surrounding my laptop makes my application look like a curious toy. So far, I've learn how to develop, but I've never deploy an application (specially to a desktop)

Thanks for helping.

+2  A: 

It quite easy actually. You should install IIS (Internet information server) from the standard windows components to your desktop machine. Put your code in the root directory of the default created web site ( or create your own with custom root directory). It's usually C:\inetpub\wwwroot

The be sure that your firewall is allowed the 80-th port, that's the port IIS listens on. Give your IP address to your team-mates and that's it.

anthares
my laptop has vista. my desktop, however, has XP professional, thus IIS5.1. Do you think ASP.NET will still work in my desktop? looks like the actual version is IIS7, also MVC is recent.
Richard77
@Richard77 You will have a little work to do with IIS5.1. Check this thread http://forums.asp.net/t/1193250.aspx for additional help what to do, in order to server the MVC application. It's not impossible, though. If you can deploy you application on win server 2003 the IIS is 6 and it's a lot easier.
anthares
A: 

Yes you should install IIS as anthares says. Note also if you are installing on older IIS version you should enable wildcard mapping for MVC (see http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx, "IIS6 Extension-less URLs")

ovolko
+1  A: 
  • If possible, make sure that you are running IIS 7 on your desktop (if you aren't, check out Phil Haack's ASP.NET MVC on IIS6 Walkthrough).
  • Open IIS Manager (run the command "inetmgr").
  • Expand the tree on the left, select the Default Web Site and click "Basic Settings".
  • Make the "Physical path" point to the directory where you placed your MVC application
  • Check if the application shows up on http://localhost
  • If it doesn't, let us know
  • If it does, make sure you open port 80 in your Windows firewall and try to access the website at http://your-ip from another machine
Rune
my laptop has vista. my desktop, however, has XP professional, thus IIS5.1. Do you think ASP.NET will still work in my desktop? looks like the actual version is IIS7, also MVC is recent.
Richard77