how to host wcf service? - iis-7

I develop some WCF service on own computer (in office).
Now, I have to publish it on office server.
Office server is Windows Server 2008 R2 (IIS7).
What should I do, to access my service on some address? like 192.168.1.99:5555?

Refer this link. This will help you...
http://blah.winsmarts.com/2008-4-Host_a_WCF_Service_in_IIS_7_-and-amp;_Windows_2008_-_The_right_way.aspx

Related

How to configure Windows Server 2016 to work with Glassfish as a web server?

I need to migrate my Glassfish 4.1 from Windows Server 2008 to Windows Server 2016.
I've copied the Glassfish folder and pasted it in the new Windows Server 2016, but it is working only locally (http://localhost:80/myWebApp); if I try to access myWebApp via browser through another computer (http://172.29.13.228:80/myWebApp), it doesn't work.
After adding the Web Server feature (using the Server Manager), then I can access normally a IIS page via browser, which means the web server is working; but it still doesn't work when I try to access the Glassfish.
Does anyone knows what feature to add or what to configure in the Windows Server to get access to the Glassfish ?
I've researched and find out that I just needed to create a rule on the firewall on Windows Server and give permission on desired ports, there's no need to add any Windows web server feature.

How to deploy asp.net webapp in azure virtual machine

I am quite new to azure and need a quick pointer to how to host an asp.net website in Azure VM. Thanks for your help in advance.
A little background...
We were using a windows server 2012 R2 and were hosting the site in IIS 6. This was an intranet site. Now we are migrating to public cloud so that it is accessible over internet. For this we have acquired an Azure VM (Windows OS). We have installed Visual studio 2013 and SQL server 2012 here. I have installed azure core SDK too.
Here are my questions:
What do I use instead of IIS to host? (Because I am not able to find any related app in azure VM)
Do I need to buy any more licenses for the same?
Should I host it in IIS only and because it is in public cloud, will it be accessible over internet?
Appreciate your help!
Since you have chosen the Infrastructure as a service ( IaaS) route you have to simply replicate the setup that you have on premises.
if IIS component is not there you just have to enable it in windows features.
If you do not want to use IIS you can explore self hosted asp.net applications.
Since you have chosen the Windows server VM image and created the VM you do not need to pay for anything additional for windows license.
By default only 2 endpoints( ports) will be open in a Windows VM. 1 for remote desktop and other for powershell remoting.
refer this post for enabling endpoints for you hosted applications.
https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-setup-endpoints
You have two options basically
Use Azure Paas - Here you would host your existing application as a Cloud service using a web role and a Azure SQL Database. This might mean some changes to the existing application but would need less management from you. You can find the migration steps here
Use Azure Iaas - This is pretty much what you are trying to do. Host your application to a VM and manage all the required software (IIS,Sql server etc) on your own. Although this option might be easier in terms of migrating your application it involves managing the infrastructure on your own. Here is a link on how to install IIS on a Azure VM.
You don't need any additional licenses since you are paying for the VM which includes all required licenses. In case you decide to use SQL Server as Iaas you can also use your existing SQL Server license when running SQL Server on an Azure VM.

Deploying ASP.NET web service

I have made a web service using Visual Studio 2015 and Visual Basic. I would like to put this service on a server so I can reference it rather than have it on local host.
It works fine on my localhost/IIS at the moment
Is it possible to deploy these web services to a basic host such as from GoDaddy or do you need a special server such as somee.com?
I just want my WS to be referencable from my client app, such as those at webservicesx.net
Thank in advance

Asp.net App hosting from Visual Studio

I am new to asp.net development. While running asp.net application visual studio first starts asp.net development environment and the application is hosted in localhost. Can we access the application (Web page) from other PC in the same network like we could do for the application hosted in IIS?
Is there any special configuration required in VS(we are using VS 2010) for that?
Thanks & Regards,
Arijit
No, you cannot. The best way is to create a new website in the IIS and to host your application there. In this way it could be accessed from the local network via the PC IP address. Just make sure you enable external connections on port 80 via your firewall/antivirus settings.

Visual studio embedded web server bind ip address

By default, the embedded web server of VS 2008 starts on address 127.0.0.1. Due to some complex network configure issue, I have to start the web server on the IP of host(i.e. 10.46.30.240).
What I want to know is if this is possible with VS2008 configuration, Or I have to do some Windows 2003 hacking to achieve this?
Thanks.
If your using windows 2003, why not just start a real instance of a web server and just attach to the w3wp.exe process ? This way you can do any configuration you want to the web server and bypass visual studio's internal web server process

Resources