Azure Websites and ACS - Could not load file or assembly System.IdentityModel.Services

已答复 Azure Websites and ACS - Could not load file or assembly System.IdentityModel.Services

  • 2012年7月21日 20:38
     
     

    Hi all,

    I've created an ASP.NET MVC 4 app using visual studio 2012 RC on Windows 8 release preview. I downloaded and installed the WIF toolkit and used the "Identity and Access" option in the solution menu to add my Access Control Service metadata endpoint. Tested locally and all is well. When I deployed to my free azure website however I get the yellow screen saying

    Could not load file or assembly 'System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

    These assemblies aren't referenced in the project, so I added them, sent to output to the bin folder and redeployed. I then got a message about the assembly probably being tampered with. Does anyone know how to overcome this?

    Thanks

全部回复

  • 2012年7月22日 0:15
    答复者
     
     已答复

    I believe System.IdentityModel.Services is a.NET Framework 4.5 namespace not existing in .NET Framework 4.  .NET Framework 4.5 is not a released product so is (presumably almost certainly) not deployed to Windows Azure Web Sites.

    .NET Framework 4 namespaces

    .NET Framework 4.5 namespaces

  • 2012年7月26日 10:21
     
     已答复

    You need to use identity model 3.5 as azure doesn't support 4.5 yet.

    If you are looking at deploying this to web role, you can use start up task to install .net 4.5 on web role machine. But you have to do it on your own responsiblity as still 4.5 is not officially supported yet.



    Please mark the replies as Answered if they help and Vote if you found them helpful.