Print Page | Close Window

Saving / Querying slow

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1970
Printed Date: 28-Mar-2025 at 12:58pm


Topic: Saving / Querying slow
Posted By: smi-mark
Subject: Saving / Querying slow
Date Posted: 15-Jul-2010 at 10:37am
I'm experiencing a strange issue with a DevForce 2010 app. Under visual studio in debug/release mode, and from the bin directory, everything works fine.

When running from the setup release, querying seems to take longer, and saving takes forever. Saving one small record can take between 5-10 seconds.

It looks like it is to do with the probing of assemblies.

This is from the setup release:

http://privatepaste.com/1207d08441

This is from my bin folder:

http://privatepaste.com/0b65ae2d43

You can see a HUGE difference between the two, and I'm not sure why.

If you have any suggestions, I would LOVE to hear them.

Thanks,

Mark



Replies:
Posted By: ting
Date Posted: 15-Jul-2010 at 5:30pm
Yes, we may still have a MEF assembly probing issue. Try adding thses lines to control probing:
 
using IdeaBlade.Core.Composition;
 
CompositionHost.SearchPatterns.Clear();
CompositionHost.SearchPatterns.Add("DomainModel.dll");  //  Add whatever assemblies you need probed
 


Posted By: smi-mark
Date Posted: 16-Jul-2010 at 1:10pm
Hi Ting,

This hasn't made a difference. I've put it in my application startup, does it need to be done somewhere else? I will play around and see what I can find.

Thanks,

Mark


Posted By: smi-mark
Date Posted: 16-Jul-2010 at 1:16pm
FIXED IT!

CompositionHost.SearchOption = IO.SearchOption.TopDirectoryOnly

along with the above suggestion has solved it!! :)



Print Page | Close Window