Cannot see Get Snapshot button in JetBrains/DotTrace Profiler Controller, after clicking detach in previous session? - dottrace

I am using DotTrace 2018.3 from JetBrains Ultimate.
I am trying to profile a ASP.NET 4.7 MVC 5 web application from within VS2017.
I have noticed that sometimes when I start a profile session ie via :
Resharper > Profile > Run StartUp Configuration Performance Profiling
The Profiling Controller starts up, but without the "Detach" or "Kill" buttons and also without the "Get Snapshort and Wait" button.
How can I resolve this please?
I have also noticed that I have caused this in the past by clicking on "Detach", but thereafter the Profiler Controller seems to fail to pick up any process.
I have just restarted VS2017 and closed down IIS Express, and gone back into VS2017 and restarted my "Sampling" Profile session and this time I am seeing the relevant buttons....

Most likely you need to warm up your web app by sending a request to it right after the start of profiling. The buttons will be available in profiling controller right after that.

Related

I have a timeout to make an ajax call, but chrome keeps on calling it even after the tab is closed

Normal js code (no service worker, but the app has a manifest with an empty service worker).
A simple timeout to an ajax call that's the code.
I close all chrome tabs, I close the process in task manager, no more chrome processes and yet I still get requests on my server. This happens locally and on the server, I know this because I can see the cookies sent and for which user id is needed.
Also I know that chrome is running the code because there is a date in the request and is updated as it go.
Triple checked that chrome is closed on all users and all processed in task manager.
Is not a coincidence because at this moment I have 2 different users (different chrome profiles) doing this. Also in my dev server there are a lot of users with the same behaviour.
I'm also not sure is chrome, but has to be, node.js alone can't change the time of the request.
Win 10 and Chrome Version 60.0.3112.90 (Official Build) (64-bit)
Terrible and I don't know what to do...
if I restart my node.js server all the requests stops.
Was my mistake! As I have server side rendering (with react) I forgot that the timeout was also run on the server side. The fix was to don't run any timeouts on the server side.
Thanks anyway for the answers. I was concerned how chrome was still running my js code even shut down, made no sense at all!

Application Error: Application Launch was not detected for application App

When I was validation my Windows Store App I got the following error:
Application Error: Application Launch was not detected for application
App. This could be because your application failed to launch
correctly. Please consider re-running the test and avoid interacting
with the application while tests are running.
What does this mean? The app will not validate.
I thought it was a bit weird and I couldn't find anything when I googled it but people who had almost the same problem as me, though rather than launching it was failing to sleep. This was just plain odd.
I tried to launch the app from Visual Studio 2012 just to prove to myself that it did start properly and for some crazy reason it didn't work. I usually test the game on my Local Machine rather than the Simulator but now, for some reason, it was set to the Simulator and I have been having problems getting it to start lately (the simulator).
I changed it back to the local machine and ran the tests again. This time it worked.
So, if you get this error it might be time to see if your simulator works and if not, have the Local Machine set as default to run with.

SQL Server Web Synchronization - replisapi?diag won't run - just tries to download

I'm trying to set up SQL Server 2008 Web synchronisation between 2 servers, and am following the instructions step by step on MSDN, here: http://technet.microsoft.com/en-us/library/ff714039.aspx
All has gone fine, until I get to the section "Testing the Connection to replisapi.dll
" - when I go to https://my-server-name/sqlreplication/replisapi.dll?diag, I get a user name and password prompt, which is fine, and a 'There is a problem with this website's security certificate', which I expect, as I'm using a self-signed certificate during development.
Next though, I expect to see a diagnostics page, but instead, I get the browser's generic 'Do you want to open or save replisapi' message, forcing me to either open or save it.
Does anyone know what I'm missing here?
Many thanks in advance.
The .dll file is getting downloaded?
This happened to me before. I had to repair my IIS mappings using the Aspnet_regiis.exe utility. After running this utility I was able to view the diagnostics page.
http://www.idautomation.com/kb/aspx_error.html
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306005&GSSNB=1
Hope this helps.
Issue: 32 bit applications are disabled in your App pool.
Solution: To resolve the issue click on Application pools, right click on your Application Pool and select Advance Settings. Set "Enable 32 bit Applications" to be "True". Lastly "Stop" and "Start" Application Pool Tasks.

Why does the asp.net website administration tool give timeout message (mysql db)?

i have an asp.net-mvc website and I am trying to use the asp.net website administration tool but when i click in visual studio 2010 to launch it, it brings up a browser that says:
An error was encountered. Please return to the previous page and try again.
i can't click back but when i click on "How do i use this tool", i get this error:
Tool Has Timed Out
As a security measure, the Web Site Administration Tool times out after a period of inactivity. Changes to machine.config or web.config may also result in the tool needing to be restarted. To continue configuring your web site, restart the tool.
when i run my website, i am able to connect to the database fine and i am also able to insert new users through the default Account/LogOn interface.
Any suggestions on how to debug why i can't launch the admin tool ?
The project's path shouldn't contain #% or spaces
Could you please try the following:
Close your browser completely. Whether you are using IE or Firefox to test your website, you should make sure all browser windows are closed.
Kill the asp.net development server. It is located in your taskbar
Or, if you are hosting your site in IIS, force an iisreset.
Now try to run the Web Site Administration Tool again.
If it still does not work yet, could you please provide which browser you are using, and which OS and host?
The project's path shouldn't contain #% or spaces
My Project path was D:\Programming\C#\Tests\MVCApplication\
and that is what caused the problem.
I was getting the exact same error message with VS2010 .NET 4.0 framework. I created my solution in a subfolder titled "C#". Renaming the subfolder to CSharp fixed my problem.
I hope this helps.

IIS 7.0 ASP.Net 3.5 Application fails when multiple users log on

I have an ASP.Net 3.5 Application hosted on Windows Server 2008 machine using IIS 7. There is a seperate application pool for this application.
The problem I have is that as soon as 2-3 users access website simultaneously, it starts throwing exceptions on almost any task performed say e.g. an exception during logging in the user using built in aspnet_membership. The same things work fine when there is only one user using it.
Any suggestions what things I need to test for?
Thanks,
Ali
I had some problem like this for some web-application, but in my case I was using IIS 6.0. After analyzing the application by means of some DevPartner tools for analyzing memory usage we realize that some components were consuming excessive resources, by replacing the toolkit we were using for simple .Net controls the applications stop crashing. Most of the crashes are due to problems in code. Also check the web config in the following points: sessionState, authentication. Disable custom errors (customErrors) to view the error details. See the application event's log to check the error description.
The first thing I do when setting up a website of this nature is to uncouple the session state from InProc to StateServer. Oftentimes I find that an application recycle or even an application level exception can cause the w3wp.exe process to crash and reload which dumps session errors. As with #Arce Brito's recommendation, you should do everything you can to find the root cause of the exception as decoupling the session will really only mask the symptom.