.NET XML Deserializer Not working with Performance Profiler

Code profiling for .NET developers.

Moderators: AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton

.NET XML Deserializer Not working with Performance Profiler

Postby pdrexel » Wed Feb 29, 2012 12:54 am

I have an application that uses the .NET XML Serializer to deserialize a couple objects. It works fine standalone or within the Visual Studio debugger, but when I use ANTS Profiler, I get an exception indicating "There is an error in XML document (0, 0)"

I'm running

Windows 7 64-bit
Visual Studio 2008
.NET 2.0
ANTS Performance Profiler Evaluation Version
pdrexel
 
Posts: 2
Joined: Wed Feb 29, 2012 12:39 am

Postby james.billings » Thu Mar 01, 2012 3:17 pm

Thanks for your post.
This isn't a problem I've seen previously- without knowing a little more about your application it's not really possible to say why the exception would occur. Is it possible for you to send some code (either your existing app or a small sample that exhibits the same problem) to us? We've got a ticket open for you so you can mail us directly at support@red-gate.com quoting F0057937 in the subject line.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby Brian Donahue » Thu Mar 01, 2012 3:33 pm

It may be something to do with the application's working directory - that's typically set in the environment but as ANTS adds stuff to the application environment to allow profiling, sometimes it gets modified. If the XML file is being loaded from Environment.CurrentDirectory, then you may want to set the working directory in the settings of ANTS Profiler.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby pdrexel » Thu Mar 01, 2012 8:30 pm

Per James' suggestion, I just e-mailed an VS2008 project example.
pdrexel
 
Posts: 2
Joined: Wed Feb 29, 2012 12:39 am

Postby james.billings » Thu Mar 01, 2012 8:52 pm

Thanks - our mailserver stripped it so I'll email you across an FTP link instead.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to ANTS Performance Profiler 7

Who is online

Users browsing this forum: No registered users and 0 guests