I am trying to deploy a server that I can hit from a different computer in my office. I only need one, two computers to hit it max. I am using Visual Studios Express 2012 RC for Web and have the whole website made, but I can't figure out how to actually deploy it. When I click play to debug it (after I have told it to build the web site) it brings it up on my computer that I built the server on but I can't hit it from another computer. The address it gives me on the browser is localhost:XXXXX. I know local host means that computers IP and I have tried that repeatedly. I am stumped. Please help. I thank you for any help you give in advance. Also if you need more information please feel free to ask.
You can't run it from Visual Studio Express, you have to deploy the web application to an IIS server. You can't access the site if VS is not running, because it creates a local, specialized development server when you start the application, whether with debugging or not. You need to configure IIS on your web server. What is the OS? Once you go through a tutorial to set it up, you will copy your code to an application folder that will be created for you. The details vary by IIS version.
Internet Information Services (IIS) – formerly called Internet
Information Server – is a web server application and set of feature
extension modules created by Microsoft for use with Microsoft Windows.
IIS 7.5 supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP. It is an
integral part of the Windows Server family of products, as well as
certain editions of Windows XP, Windows Vista and Windows 7. IIS is
not turned on by default when Windows is installed. The IIS Manager is
accessed through the Microsoft Management Console or Administrative
Tools in the Control Panel.
http://en.wikipedia.org/wiki/Internet_Information_Services
http://www.iis.net/
Related
How to open a published webform site from within visual studio code. opening and running the default.aspx in browser locally
The site is published by Visual Studio 2019 ( not Visual Studio Code ) to local folder, I want to open and run that published site from another computer having Visual Studio Code only.
Well, to run, show and display a web site, you need to have a web server installed, and then up and running on that computer.
You then need to configure the web server, and what folder or where the web site is published to. However, for reasons of security, often the folders that the web site can see (or use) is VERY restricted. I mean, do you want the whole world messing around in folders on that computer? (not!!!!).
You then need to open up the fire walls, and set rules to allow external use of that given computer.
Now, it turns out, that Visual Studio is able to "debug + launch" your web site during development. This works be having installed a light weight (stripped down) version of a Web server.
So, VS uses what is called IIS Express. It does have VERY high degree of compatibility with IIS
So full version = IIS (Internet Information Services)
Light version = IIS (Internet Information Services Express).
So then, the REAL question is can you setup + use IIS Express (that is ALREADY installed on your computer as a result of installing VS)?
The answer is yes, but it is REALLY but REALLY painfull.
And the reason why? Well, to run + launch IIS express for JUST you the developer, then things like security, rights policies, file access, is http and https etc. setup? Well that is a HUGE FAT BOOK of reading and a HUGE FAT BOOK of massive amounts of configuring required to setup + run a whole web server.
I mean, you do have web.config. But the sheer mass of options available is quite a challenge to setup.
And IIS express does NOT have the main setup and configuring screens included.
So, for hitting f5 to run from Visual Studio? great!!!
But, you need screens like this:
And from above, we have a LOT of stuff:
So, the problem is that IIS Express does NOT include the above management screens.
So, this means that YOU HAVE to edit web config and other config files that are required to run + setup IIS.
Now, to be fair, you could just run with the SAME defaults that VS uses when you hit F5 to run. But the configuring of the web site can be a hassile. (for example, did and do you know WHERE to set the IP address of the web site?
When you run local, then VS uses "localhost". But for anyone else on the network, they now have to use that computers IP address, and then YOU must setup the web server to accept requests to that IP address. And you don't even have to use + give the web server the same IP address as the computer hosting IIS.
So, you CAN use IIS Express, but it going to be panful beyond ANY thing but using IIS Express for debugging your web site on the SAME computer running VS. Remember when running IIS on the SAME developer computer, then you are the "owner" or what we call 'super user' of your OWN computer. But, I can't just start opening files and using YOUR computer right now, can I? (see the difference!!! - allowing OHTERS to use your computer is a really big deal.
But, yes, you can get IIS Express to work. it just that IIS Express is MISSING all the above management screens. (and that above screen shot shows that each one of those icons when chosen is a "big maze" of options.
To get this to work can be done.
I don't have a good reference, and you have to google it, and then with a pot of coffee, read away, since without the configing menus and systems above, you find this to be difficult.
Here is one such article on how to do this:
https://blogs.blackmarble.co.uk/rfennell/2011/03/22/how-to-expose-iis-express-to-external-network-connections-and-use-a-non-self-signed-certificate/#:~:text=%20How%20to%20expose%20IIS%20Express%20to%20external,You%20now%20need%20to%20just%20start...%20More%20
Howcome I deploy my intranet ASP.NET MVC project?
What I've got so far:
project itself;
several client machines connected in a workgroup and server;
IIS Express 7.5, SQL Server 2008 R2 Express installed on a server.
It should be mentioned that though it's odd and unusual but server is just a machine without (even) server OS installed. Please note that it's not mine idea and is the environment I've got at the moment
I've read the instruction http://msdn.microsoft.com/en-us/library/gg703322(VS.98).aspx but it describes situation when you have Web Developer installed on the same machine.
Please help!
And Thanks!
This is the 100% manual approach, you might be able to access the remote web server via VS if authorization/permissions is lined up properly (much simpler, basically you just hit deploy):
Install IIS
Install .NET Framework 4
Install MVC
Register ASP.NET with IIS (just to be safe run it again)
Create Website via IIS Management Console (use a new directory for the website)
Put your files inside the new directory
Make sure permissions are setup properly
That's it
Visual Studio 2010 / ASP.NET project / ASP.NET Development server
I can run and debug my VS2010 ASP.NET project from my development computer (where VS2010 runs). URL: http://localhost:port/MyApp.htm works fine.
Since I want to test the application from an IPad as well, I need to call the application with its IP address such as http://192.168.0.132:port/MyApp.htm
To my surprise this does not work, neither from the IPad, nor from the dev. computer itself. It is not a matter of connectivity, the address is correct / ping is possible.
(Note that I have no IIS installed on this machine, actually the ASP.NET application is plain HTML+JS, I use VS2010 just for debugging.)
Any workaround for this?
The Visual Studio Development Server will only serve pages to the local machine:
From Web Servers in Visual Web Developer:
If you cannot or do not want to use IIS as your Web server, you can
still test your ASP.NET pages by using the ASP.NET Development Server.
The ASP.NET Development Server, which is included with Visual Web
Developer, is a Web server that runs locally on Windows operating
systems, including Windows XP Home Edition. It is specifically built
to serve, or run, ASP.NET Web pages under the local host scenario
(browsing from the same computer as the Web server). In other words,
the ASP.NET Development Server will serve pages to browser requests on
the local computer. It will not serve pages to another computer.
Additionally, it will not serve files that are outside of the
application scope. The ASP.NET Development Server provides an
efficient way to test pages locally before you publish the pages to a
production server running IIS.
The ASP.NET Development Server only
accepts authenticated requests on the local computer. This requires
that the server can support NTLM or Basic authentication.
If you wish to test pages remotely you will need to use IIS or IIS Express.
I ran into this same problem and found a great solution. You can use SPI Port Forwarder (or a similar tool) to forward outside requests to the VS development web server. It works great and you can turn it on and off as needed.
Check out the info here:
Accessing the Visual Studio ASP.NET Development Server from iPhone & iPad
http://opensource.oxyva.nl/simple-development-proxy seems to work around Visual Studio Express 2012 for Web not allowing connections from other devices like iPhone, iPad etc. which result in "HTTP Error 400: Bad Request - Invalid Hostname"
There seems to be another solution as described in: visual web developer Web service on debug HTTP/1.1 400 Bad Request
You need to set up a WebSite in IIS, and deploy solution to virtual directory for the application to be accessible through an IP address outside of localhost(127.0.0.1)
I want to deploy a Website which i have created using Microsoft Visual Studio 2008 Express Edition onto a remote server having Microsoft Windows Server 2008.
I don't know anything about deployment. I want to know what are the things required on the Server in order to make the website work for all the client machines.
i had used ajax toolkit, VisualStudio2008 Express Edition and mysql on my developer machine.
One method which i tried is using copy website,it dint work,may be because i don't know the proper way to do it.
Please help me to deploy my ASP.net website.
The first step to setup your website on Windows Server 2008. Is to setup IIS. Installing IIS7 on Windows Server 2008.
Once that's completed, setup your SQL server on either that machine or a different one.
Depending on your setup. Copy your website files to your web site directory. By default it's [Drive]:\inetpub\wwwroot. You can change the target by virtual directories.
One note, you will need to install AJAX on your server for it to run correctly.
My asp.net web app is hosted on this URL on my local machine:
http://localhost:45433/
I want to access the same application from a different computer on the network. I tried replacing the localhost with my IP but it did not work.
any ideas!
UPDATE 1:
Now, I am getting this error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
If your application is hosted using Visual Studio's built in web development server then this server does not allow remote connections. It is for testing purposes only and accepts connections only from localhost. In order to access your application from remote clients you might need to deploy it to IIS.
First, add the application as a virtual in IIS, and as long as you can access the machine on the network, you can do:
http://<machine name>/<virtual>
I do that at work, where I can access my co-worker's web site.
HTH.
That looks a lot like a url used by the development web server in visual studio. That web server only responds to requests from the localhost. It won't work for other requests from other machines on your network.
You need to install IIS on your machine (must be a Pro version of Windows) and deploy to that IIS install to share your app on the network.
I don't think the built-in version of Cassini (VS debug server) allows remote connections.
However, the UltiDev version, built off of the same code base with a few enhancements, does, and is a much lighter-weight install than IIS (especially if you can't find your OS install DVD). It also integrates nicely with Visual Studio for debugging purposes.