Is it possible to add a console application in a WCF service solution? - visual-studio-2010

I am currently creating a WCF service application using Visual studio 2010.
Is it possible to add a console application as a new project in the same WCF service solution?

Yes it is. Just add a Console application project to your solution.

Related

Connect web app to Visual Studio Application Insights

I'm using Application Insights as part of my .Net Framework WebAPI project. When running the code locally (in debug mode), I can see all the events that would be sent to AI locally in Visual Studio by clicking the Application Insights button in the toolbar.
I've also got a Angular web App which works in tandem with the .Net backend. I've got the web version of Application Insights setup on it which sends telemetry to an Azure AI instance. Is it possible to have the Angular web app send its telemetry to the local AI instance in Visual Studio when I'm running it locally?
I'm using v2.5.10 of the #microsoft/applicationinsights-web library and Visual Studio Professional 2019 if that makes a difference.
Actually, there is no local AI instance. By default, the data you see in visual studio -> Application Insights Search window is from the current debug session, the screenshot is as below:
Another thing is that if you specify a valid InstrumentationKey, the data are always sending to application insights in azure portal(unless you setup firewall rule to block them).
For Angular web App, there is no way to just show the data in visual studio, but not sending to AI instance in azure.
Here are some suggestions just for your reference, but they cannot totally meet your requirement:
Solution 1: Sending data from Angular web App to AI instance in azure, then you can fetch these data from azure to visual studio locally. To do that, in the visual studio -> Application Insights Search window, change the Debug session telemetry to the AI instance in azure. Like below:
Solution 2: If you just don't want to send the data to Azure, you can use an invalid InstrumentationKey, and then open tools like fiddler to see these telemetry data.

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

WCF Service Not Starting When Client Project Run

I am new to WCF in VS 2015 and have a simple query. I have a solution in which I have my basic WCF service and a simple Windows Forms client to test the service. It all compiles OK but if I set the client project as the startup project the WCF service is not started in IIS Express. If I set the WCF project as the startup project and then run the client form Explore it runs Ok and I can debug etc.
My question is how to start the WCF Service automatically when I run the client project in Visual Studio
Thanks
Steve

Silverlight OOB App and Web Service in same Solution

I'm using vs2012 and have created a Silverlight 5 out of browser application that talks to a MVC 4 webapi web service for its data.
With both projects in the same solution I can successfully fire up and test the silverlight application with the web service if I have the web service set as the startup project and have the application running in the browser and embedded in a view on the MVC web service site. If I set the silverlight application as the startup application so that I can run it out of the browser like the user will, then the MVC site doesn't get started and the web service isn't available to connect to.
Is there anyway to have both projects running in the same instance of visual studio, but have the silverlight app run out of browser?
Try this:
Right click on solution from Solutin Explorer and select Properties. Then select the Multiple startup project option inside Common Properties/Startup Project and set both as 'Start'. Close and Start Debug again.

Console application vs WCF service application for WCF project in VS 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

Resources