Several pages of my ASP.Net application connect directly to another service using WIF. WIF just attacks here, and while it is installed on the testing and production servers, every time a new programmer or tester becomes the last and happens to get to these pages without installing the WIF installed on their machine, it gets YSOD and the error is that you didn’t find Microsoft.IdentityModel ... which they never read and instead turned off IM, informing me that my application is broken.
I would like to determine if the WIF runtime is installed and show every useful error message and a link to the download page if not. I do not want to check the specific .dll path, as this may change ... and there are already different paths for 3.5 and 4.0.
Is there a better way to determine if a WIF runtime is set?
(obviously on a page that no longer links to it ... which will not display correctly if it is not installed)
Edit
It looks like WIF is included with 4.5 , so a special 3.5 / 4.0 approach will be fine. No need to be in the future.
source
share