Console application vs WCF service application for WCF project in VS 2010 - visual-studio-2010

I am currently making my first steps into the world of WCF for the past week or so.
And something keeps popping up on my mind regarding when to use a console app or a WCF Service app in Visual Studio 2010?
Is it all about self hosting or IIS and WAS hosting? The way I got it is that if I am self hosting, a console application is the way to go, since that you would implement the ServiceHost and proxy yourself, whereas in case of IIS or WAS hosting we use a WCF service application? Where the ServiceHost is dynamically generated?
Is my understanding regarding this issue correct? Or there are more things into it? I feel like some link is missing in here...

You can refer this MSDN article for more details on hosting.
http://msdn.microsoft.com/en-us/library/bb332338.aspx

Related

Performance Data from Application Insights in Visual Studio Load Test project

I have configured a Load Test project in Visual Studio 2017 Enterprise and I'm trying to add Performance Data from Application Insights so we can have more data on what's happening with the application at the time of the test. So when I right click on the Run Settings:
After I click that:
Please note that we have Azure services and Visual Studio Team Services. Although I'm not the one administrating these I can still recommend what to do or I might request and get permissions, but I'm not sure what to request!
The API .NET project already has Application Insights integration, but I don't know how to read that data in the Load Test project.
What are we missing?
First, please make sure you have configured multiple instances of Application Insights from within the azure portal. When you use the load testing to add an application it would goes to the configured vsts account and try to connect.
Please manually add the application insight to your application and try again. Take a look at below tutorials, which should be helpful:
What is Application Insights?
Application Insights: Frequently Asked Questions
Set up Application Insights for your ASP.NET website
Troubleshooting no data - Application Insights for .NET

Deploying .Net Core WebAPI project on IIS

I have created a simple web API using .Net Core and trying to publish it to IIS. But getting HTTP 500.
I followed https://docs.asp.net/en/latest/publishing/iis.html article and did exactly whatever mentioned in that.
I Installed only https://www.microsoft.com/net/download as
DotNetCore.1.0.1-WindowsHosting.exe OPT_INSTALL_REDIST=0
NOTE : I am able to deploy and access MVC application successfully but cannot access WebAPI application with the same steps.
In the IIS logs i am seeing below error.
Failed to start process with commandline '"dotnet" .\Project-1.dll', ErrorCode = '0x80070002'.
I am using the default web api template provided in Visual Studio 2015
am i missing something. Is WebAPI deployment is different to MVC app deployment w.r.t .net core ?
When you install the .NET Core Windows Server Hosting bundle, it won't restart all of the IIS processes if IIS is currently running. This is a good thing, since on a production server you wouldn't want them just to restart, but it would be nice if it was made a little clearer. First, check your System (not User) PATH variable to ensure that the path to Dotnet is there. Then, go into services and restart the Windows Process Activation Service. This will restart all of the IIS bits and get it to update the path. Once you've done this, IIS should serve up your .NET Core app just fine.

Azure Portal missing Web App

I have a number of web apps hosted in Azure. These can be navigated to by their URL and are live and running correctly. If I use the server browser in Visual Studio 2015 I can see the correct web apps... AND previously deleted web apps.
However in the new Azure portal one of my web apps is missing. What do I need to do to get the new portal to recognise all of my web apps and should I be worried about visual studio displaying old deleted ones?
This is a sync issue that happens occasionally, and that we can fix for you. In order to do this, please share the name of any site in your subscription. You can create a temporary dummy site for that purpose if you like.

Is it right to host my application in windows azure?

Friends. I am new to windows azure concept. Just i want to knw whether we can host my asp.net application developed in visual studio 2010 with sql server 2008 or i need to develop my application in windows azure environment?
ii). Whether they provide both hosting and storage?
if it so what are the steps to implement it as a beginner?
Please can any one suggest a clear idea about it.
This is a pretty generic question. To get started, I strongly suggest downloading the Windows Azure Training Kit which will guide you through all the basics through advanced topics.
You can absolutely run asp.net apps and SQL Server apps in Windows Azure. You'll need to think about things like statelessness, scaling, and other things that might be different from an on-premises solution. You should see these topics discussed in the training kit.
Last week, Windows Azure Web Sites was introduced - this is an extremely simple way to deploy an asp.net site to Windows Azure.
As far as "is it right to host my application in windows Azure" - that type of question doesn't fit here, as it will simply open the floor for debate.

Building web services as well as their consumer in Visual Studio?

So I'm going to be building two things. The first is a database-driven collection of RESTful web services. The second is a user-facing web application which accesses those services.
I have to do this all in Visual Studio 2010, in MVC2 / C#, for deployment to an IIS6 + SQL Server 2005 environment. I'm not terribly familiar with VS, nor MVC2, nor any of the attendant development and debugging tools.
So, my question is this: How should I structure all this to make life easiest on myself in terms of concurrently developing both pieces? I need to be able to deploy the two pieces to separate servers, but I want to be able to easily test both of them simultaneously on my development machine. Do I make two separate projects? Or is there a way to build a single project with multiple solutions, which can be tested at the same time?
Any advice would be much appreciated.
Thanks!
You could have a single solution containing both web projects for the REST service application (WCF?) and the ASP.NET MVC application and then run them simultaneously using the Visual Studio development server by configuring multiple startup projects:
This will allow you to test/debug them simultaneously.
Another possibility is to use the newly released IIS Express to host both applications (you need to install VS 2010 SP1) which is the solution I would recommend you.
I suggest you follow the NerdDinner tutorial. This sample MVC2 application follows the suggested pattern for developing MVC2 web applications that use services.
http://www.asp.net/mvc/tutorials/introducing-the-nerddinner-tutorial

Resources