Can anyone tell me the common reasons why the RedGate.MemoryProfiler.Snapshot.TakeSnapshot statement would return false, indicating that call failed and no snapshot was taken? I have followed the directions listed on the page
https://documentation.red-gate.com/disp ... apshot+API and I get a return value of false (without an Exception being thrown). I am running an ASP.NET MVC application on .NET 4.5.1. I can provide more information if needed. Any help or clues would be appreciated.
Here is the code that attempts to create a snapshot:
public static bool CreateSnapshot()
{
string ssName = DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss-fff") + "-RetrieveStoreData";
bool success = false;
try
{
success = RedGate.MemoryProfiler.Snapshot.TakeSnapshot(ssName);
}
catch(Exception ex)
{
Trace.WriteLine(String.Format("Snapshot creation failed for snapshot {0}: {1}", ssName, ex.Message));
}
return success;
}
Thanks,
Alva
Here is the code that attempts to create a snapshot:
Thanks,
Alva