Print Page | Close Window

URI Formats are not supported

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=2684
Printed Date: 05-Feb-2026 at 8:33pm


Topic: URI Formats are not supported
Posted By: charliebrown
Subject: URI Formats are not supported
Date 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




Replies:
Posted By: kimj
Date 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.



Print Page | Close Window