Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

When trying to generate SP metadata Generate Command failed with below exception : (.NET and Ubisecure.SAML2.ServiceProvider 1.4.1.50098 (50098))

Code Block
C:\ProgramData\Ubisecure\Ubisecure.SAML2.ServiceProvider>"C:\Program Files (x86)\Ubisecure\Ubisecure
.SAML2.ServiceProvider\bin\saml2.exe" Generate https://apps.xyz.com/DashboardTest/spsso.ashx
-o Test

Unhandled Exception: System.Security.SecurityException: Request failed.
at Ubisecure.SAML2.Tools.Generate.Main(String[] args)
at Ubisecure.SAML2.Tools.Program.Main(String[] args)
The action that failed was:
LinkDemand
The type of the first permission that failed was:
System.Security.PermissionSet
The demand was for:
<PermissionSet class="System.Security.PermissionSet"
version="1"
Unrestricted="true"/>

The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture
=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Cultu
re=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Assertion, UnmanagedCode, Execution"/>
<IPermission class="System.Security.Permissions.KeyContainerPermission, mscorlib, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Unrestricted="true"/>
</PermissionSet>

The refused set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Cultu
re=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="NoFlags"/>
<IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, Pu
blicKeyToken=b77a5c561934e089"
version="1"
Level="None"/>
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyTok
en=b77a5c561934e089"
version="1"/>
</PermissionSet>

Solution

This is known issue in latest couple of .Net SAML SP versions.

...

Info

Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1233f
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-troubleshooting-article" and type = "page" and space = "KNB"
labelskb-troubleshooting-article