UriFormatException profiling ASP.NET website

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

UriFormatException profiling ASP.NET website

Postby glaxaco » Thu May 27, 2010 4:19 pm

Hello,

I am having trouble using the ANTS memory profiler on an ASP.NET website. In my VS 2008 solution, I have the website selected as the Startup project. When I select "Profile Memory" from the ANTS 5 menu, I get the following error:

System.UriFormatException: Invalid URI: The URI is empty.
at System.Uri.CreateThis(String ur, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at RedGate.Memory.AddIn.Commands.ProfileCommand.get_LaunchArguments()
at RedGate.Memory.AddIn.Commands.ProfileMemoryCommand.RunCommand()
at RedGate.Memory.AddIn.Connect.Exec(String commandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)

This seems like it should be a simple thing, but I can't find any documentation specifically outlining how to profile a web app from within Visual Studio. Anyone have any pointers?

Thanks,

Eric
glaxaco
 
Posts: 2
Joined: Thu May 27, 2010 4:13 pm

Postby Brian Donahue » Fri May 28, 2010 5:45 pm

Hi Eric,

There is a bug in the ANTS Profiler add-in when it comes to ASP .NET. We do have a patched version of the add-in that should fix the problem:

1) Download this file: ftp://support.red-gate.com/patches/ants ... .AddIn.dll

2) Put it in your ANTS install directory, replacing a file with the same name.

3) Restart Visual Studio.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby glaxaco » Fri May 28, 2010 7:12 pm

Unfortunately, I followed the steps and got the same result.

I'm not sure the FTP version is correct. The version of (program files)\\Red Gate\\ANTS Performance Profiler 5\\RedGate.Profiler.Five.AddIn.dll is 5.2.0.26. The version on the FTP site is 5.1.0.8 - should it be going backward?

Thanks,

Eric
glaxaco
 
Posts: 2
Joined: Thu May 27, 2010 4:13 pm

Postby slaphead99 » Tue Jun 01, 2010 1:31 pm

Sometimes you have to go backwards to go forwards. ;)
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby slaphead99 » Wed Jun 02, 2010 8:10 pm

Ah sorry- I re-read this. The add-in only solves the issue for the *performance profiler* not the memory profiler- my colleague is working on a patch for the memory profiler right now. I'll check how near he is with this.
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby slaphead99 » Mon Jun 07, 2010 7:26 pm

We attempted a patch and it fixed this problem but had a few side-effects which render it not publishable. So, I think we'll just have to wait for it to be fixed in the general release.
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests