Run Web Service using IIS Express without Visual Studio - c#

I have created asmx web service in PC1. Now I have coped this project to some other PC2. I have installed only IIS Express and .NET Framework.
I want to run web service in PC2 using IIS Express. Is it possible or not?
Thanks!!

Under the IIS Express folder in the C:\Program (x86) folder there's the appcmd.exe. First you need to add a virtual directory with the follwoing command:
appcmd add vdir /app.name:<site_name>/ /path:/<virtual_directory> /physicalPath:<physical_location>
If there is no site you can add one by yourself:
appcmd add site /name:SITENAME /id:2 /physicalPath:C:\PHYSICAL_PATH /bindings:http/*:8080
If you want to install the Service on the Default Web Site (if there is one) you can use the following:
vdir /app.name:"Default Web Site"/ /path:/service /physicalPath:C:\PHYSICAL_PATH

Yes possible.
Steps for check:
Whether that system is connected with LAN.
You have to Set the IP address for PC2 in Edit Bindings(IIS)

Related

Publish a web service on Visual Studio 2010

I created a web service in C#, using Visual Studio 2010 ( Framework .NET 3.5). In debug mode it works great, but now I must publish it on the internet, so that I can consume it in remote (the app that will consume the web service is an android app).
So the question is: how do I publish my web service on Internet so that I can consume it in remote?
Thanks in advance; this is a work for taking my degree!
A simple way: you switch to release mode, update your web.config for production, right click on your service project and from the menu select publish. Then you publish it to the local folder. This way it copies only the files needed. Then you copy the contents of the folder to your remote site using ftp, for example, your hosting provider should have given you the credentials.
for some hosters it is also possible to publish directly but I don't use this.

Get path to installed IIS web application from a C# local service

I have two projects developed with C#, .NET in VS 2010: One is an ASP.NET web application and the second one is a C# Windows service that runs as a local system. The web application is installed and run on the same physical machine via IIS.
My question is, how to get the path to my web application installation folder on this machine from the service?
I assume your are using IIS 7.5 and you know web application name. If so you can use ServerManager from Microsoft.Web.Administration assembly to get the physical path.
Here is link on how to user the class ServerManager How to get site's physical path on disk?

What is the correct procedure to deploy a Visual studio 2008 Web Application to IIS 6

Currently, I have a Visual Studio 2008 Web Application using .NET Framework 3.5 and I want to deploy to my IIS 6 server. I have try to use the Build > Publish menu to publish my site to IIS 6 but it keep on giving me this error:
Visual Web Developer does not support creating Web sites on a SharePoint Web server. See Help for more details.
So, may anyone share with me some insight on the correct procedure to deploy my Web application?
For your info: MOSS 2007 is also installed.
Try to use the same publish command but target a local file system folder or a network share and not IIS. Once you have got your binaries and pages in such folder deploy on iis manually with a file copy.
Thanks Davide,
Actually I used another command to perform the deploy.
reference: http://msdn.microsoft.com/en-us/library/ms229863%28v=vs.80%29.aspx

Run a ASP.Net webpage from IIS in a machine without Visual Studio

this may be a simple question but until now I always created a web site with Visual Studio and ran it via Visual Studio. But now I have to run it in a computer that doesn't have Visual Studio. I'm guessing I have to install IIS but I don't know how to run that website. How can I do it? Thank you.
You'll need to install IIS on that machine, then set the folder with the site in it as a Virtual Directory. IIS will handle everything else from there.
Assuming you set everything up correctly, you should be able to access the site like so:
http://localhost/whateveryourfolderis
ASP.NET and IIS Configuration
you have to install iis 7 or higher version for run .net application if you use windows xp so you have to upgrade it with Service Pack 3 it provide iis 7 for .net application
after install IIS put you application in INITPUB dir in C: run in browser with http://localhost:80/applicationname
it working

How to publish a website remotely to IIS in C#

Is there a way to publish a website/webservice/folder to the IIS directory of the remote machine?
If so how?
Web Deploy sounds like the tool you want - you can also 'Publish' the site within VS 2010
http://www.iis.net/download/webdeploy

Categories

Resources