Azure-Samples / active-directory-dotnet-windows-store

A Windows Store 8.1 or Windows 10 (UWP) application that uses Azure AD and the ADAL library to authenticate the user and call a web API using OAuth 2.0 access tokens.
16 stars 12 forks source link

Owin - Startup is throwing error #12

Closed sajal-mitra closed 8 years ago

sajal-mitra commented 10 years ago

While trying to integrate this example in my solution I am getting the below issue.

Attempt to access method System.Management.Instrumentation.InstrumentedAttribute..ctor(System.String) in violation of security transparency rules failed.

tried to add the webconfig key trust level="Full" but it doesn't work. Any help/pointers will be highly appreciated.

dstrockis commented 10 years ago

Hi @sajal-mitra ... I am unable to reproduce this issue. A couple questions:

What versions of .NET are you targeting in your solution? Have you tried these suggestions yet? http://support.microsoft.com/kb/2635463 http://forums.asp.net/t/1678578.aspx?Violation+of+security+transparency+in+ScriptManager