New Posts New Posts RSS Feed: URI Formats are not supported
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

URI Formats are not supported

 Post Reply Post Reply
Author
charliebrown View Drop Down
Newbie
Newbie


Joined: 11-Nov-2009
Posts: 1
Post Options Post Options   Quote charliebrown Quote  Post ReplyReply Direct Link To This Post Topic: URI Formats are not supported
    Posted: 17-May-2011 at 2:46pm
I am trying to optimize the loading of our application. I am finding that there is a 2.5 second delay in running the EntityManager constructor. When I enable CLR exceptions I see an ArgumentException: "URI Formats are not supported".
    public DomainModel(IbEm.EntityManagerContext entityManagerContext) : base(entityManagerContext) {}

The program carries on OK, but I'm wondering if there is a way to prevent this exception in case it is delaying things.
Thanks

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 18-May-2011 at 4:38pm
There's not actually a way to stop some of these caught exceptions. Some occur within DevForce and some occur within other .NET components. The URI format exception occurs in a call to MEF (Managed Extensibility Framework). We changed the MEF logic (unrelated to this exception) in 6.1.0 and this particular exception is no longer thrown (and caught) by MEF.
 
As for optimizing load time, the biggest bang for the buck is usually to set the SearchPatterns and/or IgnorePatterns on the CompositionHost. These settings control which assemblies are probed at startup, and reducing the number of assemblies probed usually results in a performance improvement.
 
Breaking out a Silverlight application into modules and using application library caching is another good way to improve startup performance.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down