Windows 7 IIS 7.0 - setting an application to run under localhost - visual-studio-2010

If i create a web application inside Visual Studio called MyWebApp, how can I make sure it can be accessed at the following address:
http://localhost/MyWebApp
NO PORTS required
thanks
VS 2010
IIS 7.0
Windows 7

Http is by default run on port tcp/80.
writing http://address.com/ is the same as http://address.com:80/
If IIS is configured to use the default port of 80, then you do not need to specify anything.

Add that application to IIS (with the name "MyWebApp"), make sure the root folder for the application is pointing to the root folder of the project on your computer.

Related

How work with a visual studio project in two different machines

In my home pc, I'm inside a LAN so my projects are access using localhost. In the WEB section of the project I use Local IIS
http://localhost/ProjectName
But in my office the pc belong to a domain so my IIS is bound to
http://myPc.myDomain.com/ProjectName
So how I can open the same Visual Studio solution on both PC?
First, on the home PC make an entry such as this in the local hosts file:
127.0.0.1 myPc.myDomain.com
Second, also at the home PC, configure the Website bindings in IIS, so when IIS receives a request for myPc.myDomain.com, it knows which website should process the request.

How to host .NET Core webapp in MacBook Pro using apache?

I have created a simple .NET Core webapplication in mac using Visual studio for mac. Now want to test the application by hosting it locally.
Is it possible to host the application in mac? If yes, please share me the steps or any useful links to host the appliation using Nginx or Apache http in mac.
For Windows, I have used Local IIS to host and test the application in local server.
Assuming you have the appropriate SDK installed, its as simple as calling dotnet run from your source directory

How do I run (debug) WCF REST Service application on local IIS7 server

As the question says, I have a problem running the web app on local IIS.
Here is my situation:
WIndows over Oracle VM VirtualBox running on Linux Ubuntu.
Bridged Adapter so that Windows box gets local IP from my router.
Visual Studio 2010 + sp
WCF REST Service application plugin for project template
The application runs when using visual studio development server (on localhost).
Target framework is v4.0
What I need is that the application runs on IP instead on localhost (so I can consume it on remote computer in LAN), so I configured IIS7.
Here is IIS configuration:
I created a website with target framework v.4.0
I binded the site to my local IP on port 80
Path to the site is /inetpub/wwwroot iisstart.htm as default document
IIS runs ok. If I open "http://my_local_ip" I get the welcome logo.
The problem is in visual studio.
When I go to project properties "Web" section and select local IIS over vsd server is where I get lost. If I set "Project URL" to "http://my_local_ip/some_name" visual studio complains that it cannot find IIS server and so it was unable to create the virtual directory. I tried manually adding virtual directory in IIS manager, but no effect. If I use "http://localhost/some_name" as the "Project URL" the virtual directory gets created, but it makes no sense does it?
Could some one please enlighten me?
If I use "http://localhost/some_name" as the "Project URL" the virtual directory gets created, but it makes no sense does it?
I think you are mixing two different things here. When you ask VS to use localhost as the IIS Server for your project, it will connect to the local IIS to perform configuration tasks. If you ask VS to use "my_local_ip" you are telling VS that you IIS Server is remote, and therefore VS will use remote administration to configure IIS (VS can't know that my_local_ip is the local computer).
But remote IIS admin isn't enabled on a default WinServer box. Furthermore, it would require some additionnal network config. You should therefore tell vs to use the local server.
In fact, IIS site bindings and VS deployment parameters are too completely different things. So, deploy your site on http://localhost/your_site.
However, I don't really like the prospect of using VS debugging deploy to deploy a real app. The directory will contain all your project files... You should:
create your site on IIS manager and setup a virtual directory.
Either
ask VS to publish the site to a directory (your virtual directory)
ask VS to publish a WebDeploy package, then ask IIS manager to import the package.

Deploying a silverlight webapp from Visual Studio 2010 to Windows 7 IIS

Hope somebody can give me some info regarding this.
I have a silverlight web app (.NET 4). I would like to use msdeploy to deploy it to IIS 7 running on a Windows 7 64 bit machine.
I have read many pages and have tried a lot of the steps in them so far but am still struggling.
What I have done:
1. Installed Web Platform Installer.
2. Installed msdeploy
3. Started and set to automatically start: "Web Deployment Agent Service" and "Web Management Service"
4. Created a web site in IIS 7 and set permissions.
5. Tested the website "http://server/page and get a blank directory browsing because nothing is added yet.
So now I would like to deploy but am getting an error : "No connection could be made because the target machine actively refused it:10.224.201.117:8172
I have tested telnet'ing to the address on port 8172 which fails.
It is suggested that msdeploy is not configured correctly and I need to Enable Remote Connections. However it does not seem that Windows 7 IIS 7 has the icons in IIS to do this. (No "Management Service" option under add / remove features of IIS)
Does this mean i can not deploy to Windows 7 IIS 7?
Or is there another way to enable remote connections, perhaps using powershell?
Any help is greatly appreciated
Tx
Neill

Debugging ASP.NET MVC project in VS2010 and accessing on networked computers

I'm wondering if it's possible to allow users on my local network to connect to an ASP.NET MVC 3 app I'm running through VS2010 on my local PC. The purpose is to let others test during some rapid application development without deploying to a server.
By default, the port seems to be blocked. Is there a setting in VS2010 or IIS Express that I can change to allow access to it?
By default VS sets localhost bindings in applicationhost.config file (%userprofile%\documents\iisexpress\config\applicationhost.config), so you cannot access it from other machines.
To access your site from other machines,
you need to update your site bindings (in applicationhost.config file) and add a site binding with your machinename
Run VS as administrator
If firewall is blocking your port, unblock it
Following link may help you
Configure IIS Express for external access to VS2010 project

Resources