.NET Framework Bookmark and Share   
 index > Claims based access platform (CBA), code-named Geneva > Error creating a local STS from Visual studio
 

Error creating a local STS from Visual studio

Hi,

I have tried runningthe twoguide/training kit:

-A Guide for Enabling Federated Authentication on Windows Azure WebRoles�using Windows identity Foundation

-Identity Developer Training Kit (May 2009)

However both fails, when I try to create the local STS with the following error message

"Some or all identity references could not be translated"

The STS solution and the WEB sites is created, but the FederationMetadata.xml is empty causing a null refference when starting the site.

Per

Per Buus
Did you create the STS project by running VS under admin rights? You need to run VS under admin rights cause creating an STS project in VS installs a default x.509 certificate in your local certificate store. Otherwise the FederationMetadata.xml file will be empty.
Helali Bhuiyan - MSFT
Hi Helali,

Thanks for the suggestion!

I did start VS with "runs as administrator".

I located the STSTest.cer file in training kit and checked my certificate store and it is NOT imported.

I imported manually, and retried to create the STS solution, but the same error occured?

So I am still stuck :-(

Per
Per Buus
I have the same problem.
"Some or all identity references could not be translated."
The STS project is created but the file "FederationMetadata.xml" is empty and I think the projects are not referenced to each other. What's wrong?
FloAtFokus2
Hi guys,
adding a local STS to a web project is a capability of Windows Identity Foundation (previously known as Geneva Framework) and is not specific to the Identity Training Kit or the Guide. It should work even if you don't have the kit or the guide on your machine.
If that does not work for you, chances are that the installation of the Geneva Framework bata2didn't succeed. I would suggest uninstalling the Geneva Framework beta2, reinstalling it and making sure that some of the the SDK samples work for you (make sure that you satisfy theGeneva Framework system prerequisitesand that follow the instructions in SamplesReadMe.htm).
Hope this helps,

Vittorio
Vittorio Bertocci - MSFT
Hi

I have the very same problem. I get the same error message (some or all identity references could not be translated). I even re-installed the SDK and checked the requirments. I do run VS under Administrator rights...

Any ideas?

Thanks a lot,
Dominik
DominikTouring
Dominik,
do you succesfully run the samples in the SDK?
Vittorio Bertocci - MSFT
Hi,

I'm working with Dominik on that project. I have the same issue on my work computer. I tried it at home and it worked liked a charm. I guess it has something to do with the fact that the work PC is in a domain and maybe some group policies are preventing the project wizard to work.

To answer your question, the samples from the Geneva Framework SDK are working.

Thanks, Rainer
Cepheus77
Hi!

We could find the bug: We run Vista in German. Unfortunately MS hardcoded the word "Network Service", when setting the ACL for the certificate. We reproduced the code that sets the ACL and tried it with "Network Service" --> "Some or all identity references could not be translated", as soon as we tried "Netzwerkdienst" it worked.

Please fix that issue as soon as possible - we stuck

Here's the buggy code:
Microsoft.IdentityModel.Tools.VS.STSTemplateWizard
Method "ProjectFinishedGenerating":

if (file != null)
{
SecurityUtility.SetAclOnFile(file, "Network Service", FileSystemRights.Read, InheritanceFlags.None, PropagationFlags.None,AccessControlType.Allow);
}




Thanks a lot,
Dominik

DominikTouring
Hi Dominik,

Thank you for solving this problem, lets hope MS solves the issue ASAP, so we, none english users, can go ahead too!

Where do you find (and fix) the bug? I only have the DLL (Microsoft.IdentityModel.Tools.VS.dll) on my PC!

And how do I find the correct danish MS translation of "Network Service"?

Best regards

Per
Per Buus

You can use google to search for other answers

Custom Search

More Threads

• Having trouble understanding how claims are verified
• Securely signing out (and staying signed out)
• How can I 'EXCLUDE' `anonymous-namespace' when using vsinstr.exe to intrument my executable?
• Using custom Geneva STS for internet-facing solutions
• Configuring CardSpace Geneva Beta 2
• Geneva Beta 2 Framework SDK- Claims Aware Web Application Using Managed STS setup
• Installation error while using a domain account for geneva server
• Geneva SbS Virtual Machine - Windows Activation
• Geneva server on a stand alone Windows 2008 box
• beta 2 / wsfederation over http ?