We are facing a challenging situation, we have one ASP.NET Core 2.2 service that is completely dependent on service fabric and we cannot run it outside the cluster (due to wrong intermingled design that made the application totally dependent on underlying service fabric features).
Now, we are facing performance issues in the application we are trying to troubleshoot, but unfortunately, neither Visual Studio Profiler nor Reshaper can attach to service fabric services. Is there any way I can performance profile the service?
I managed to measure performance using .NET
StopWatch ()
not the best solution but helped to fix the issue.
Related
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
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
All the sudden started getting the following error while trying to debug a worker role:
"Windows Azure Tools for Microsoft Visual Studio
There was an error attaching the debugger to the role instance 'deployment16(360)blah blah' with Process Id: '8780'. Unable to attach. The Microsoft Visual Studio Remote Debugging Monitor has been closed on the remote machine."
Restarting Visual Studio and the machine do not help.
As you start getting this problem all of sudden in your development machine something must have changed and it is mostly due to some of the OS auto-update and/or some application update you installed in your machine. There could be any random reason for this problem however if I would have hit the exact same problem here is what I would do to troubleshoot such issue:
To start, first thing is to just check it is not an application specific problem by creating a base app from web/worker template and see if that exhibit the problem.
If you have installed new release Windows Azure SDK 1.7 check with both SDK 1.6 and 1.7 to verify if both exhibit the problem.
Check if your could debug IIS based application as well outside Compute Emulator. This will isolate if the problem is specific to Windows Azure development Fabric or bind to your IIS itself.
If this is IIS specific issue, Check IIS configuration for all enabled functionalities, try resetting Application Pool configuration, running "ASPnet_regiis -i" etc to fix the issue.
If it is Windows Azure Computer Emulator specific, I know sometime OS updates may make application unstable so in that case, I will re-install .net 4.0 and VS2010 SP1 again respectively. (This does help so many time) then re-install Azure SDK 1.7 completely.
Such random problem mostly occur due to some change in your machine configuration, so restoring the VS2010 and the re-installing all other application does help to solve problems.
If you have an exception in the role's OnStart() or in Application_Start() that the debugger doesn't pick up, you may also receive this message. Application_Start() errors are especially pernicious because the debugger doesn't attach to the web process until after this method returns.
If you are wedded to cloud specific classes such as RoleEnvironment and cannot make the web role a startup project, you can use Ctrl-F5 to run the cloud project without debugging. With some luck you'll get a yellow screen of death to show you the true error.
Avkash covers the points.
I had the same issue recently. I set my web project as start-up rather than Azure and I discovered that that web project didn't actually run. Turned out somehow when of my projects was compiling for X64. I changed that and it worked.
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.
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