The missing "Add STS Reference" (VS 2008 & WIF)
Uninstall the WIF SDK
Uninstall the WIF Runtime
reboot
ReInstall Geneva Framework
ReInstall Geneva Framework SDK
reboot
Uninstall Geneva Framework SDK
Uninstall Geneva Framework
reboot
Install the WIF Runtime
Install the WIF SDK
Still no luck. I am running Windows 7 Ultimate, 64 bit edition, and I have Visual Studio 2010 Beta 2 installed. I don't know if that helps at all.
The problem seems to be the Add-in Manager cannot process the Microsoft.IdentityModel.Tools.VS.VSAddin probably because it cannot locate Microsoft.IdentityModel.Tools.FedUtil.dll which is in C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation SDK\v3.5.
You can manually fix this by going to Tools Options, clcik on Add-in/Macros Security and either making sure it is in one of the paths displayed - or by adding a reference to its existing paths.
However the reason this has occurred is because one of the installs did not complete or is missing, so I would suggest that you try the re-install options mentioned above first.
a. Close any instance of Visual Studio.
b. On a command-prompt, execute the following command to copy the add-in file. Note that you need to replace "Visual Studio 2008" if you are using a different version of Visual Studio. Also note that on 64-bit systems, the WIF SDK installs to %ProgramFiles(x86)% rather than %ProgramFiles%.
(i). copy "%ProgramFiles%\Windows Identity Foundation SDK\v3.5\Visual Studio Extensions\Microsoft.IdentityModel.Tools.VS.VSAddin.Addin" "%USERPROFILE%/Documents/Visual Studio 2008/Addins/"
c. Open an instance of Visual Studio.
FYI on this issue:
If you are uninstall WIF SDK by clicking the msi file and then selecting remove button, then some custom action inside the installer fails if UAC is turned on even if you are an admin user. This was a bug inside the msi. Due to this bug, the addin file and the visual studio template files do not get removed and properly uninstalled, leaving VS in a bad state. VS should come to a good state again if you install the sdk again.
This does not happen if you uninstall WIF SDK from Add/Remove program even if UAC is on.
Solution:
1. Wait for the next official SDK (one for 3.5 and another for 4.0)release, which is coming soon with this bug fixed. OR,
2. Manually clean up VS and then reinstall the SDK. To clean up VS,
a. Close all VS instances.
b. Delete the Microsoft.IdentityModel.Tools.VS.AddIn file from %Documents%\Visual Studio 2010\AddIn folder.
c. Delete the template files from %Program Files%\Visual Studio 2010\Common7\IDE\ProjectTemplates\WebSite\CSharp\csClaimsAware*.zip (There should be 4 files)
d. Run >%Program Files%\Visual Studio 2010\Common7\IDE\devenv /setup (This will reset VS addin and templates)
And if you had a previous version of WIF SDK installed (that also has the above mentioned bug) and now installing the latest SDK gives this issue of still seeing "Modify STS reference", you might want to follow these steps before you install the new version.
1. Close any instance of VS
2. Uninstall the previous SDK from Add/Remove program. Make sure there is no Microsoft.IdentityModel.Tools.Addin.addin file under %YourMyDocuments%\Visual Studio 20**\Addin\ folder.
3. Open VS and then close again. This step is required cause VS internally keeps some cached state that stores the add-in information along with other stuff. Opening VS refreshes these states thus removing old SDK's addin info.
4. Install the new SDK.
Hope this helps.
FYI on this issue:
If you are uninstall WIF SDK by clicking the msi file and then selecting remove button, then some custom action inside the installer fails if UAC is turned on even if you are an admin user. This was a bug inside the msi. Due to this bug, the addin file and the visual studio template files do not get removed and properly uninstalled, leaving VS in a bad state. VS should come to a good state again if you install the sdk again.
This does not happen if you uninstall WIF SDK from Add/Remove program even if UAC is on.
Solution:
1. Wait for the next official SDK (one for 3.5 and another for 4.0)release, which is coming soon with this bug fixed. OR,
2. Manually clean up VS and then reinstall the SDK. To clean up VS,
a. Close all VS instances.
b. Delete the Microsoft.IdentityModel.Tools.VS.AddIn file from %Documents%\Visual Studio 2010\AddIn folder.
c. Delete the template files from %Program Files%\Visual Studio 2010\Common7\IDE\ProjectTemplates\WebSite\CSharp\csClaimsAware*.zip (There should be 4 files)
d. Run >%Program Files%\Visual Studio 2010\Common7\IDE\devenv /setup (This will reset VS addin and templates)
And if you had a previous version of WIF SDK installed (that also has the above mentioned bug) and now installing the latest SDK gives this issue of still seeing "Modify STS reference", you might want to follow these steps before you install the new version.
1. Close any instance of VS
2. Uninstall the previous SDK from Add/Remove program. Make sure there is no Microsoft.IdentityModel.Tools.Addin.addin file under %YourMyDocuments%\Visual Studio 20**\Addin\ folder.
3. Open VS and then close again. This step is required cause VS internally keeps some cached state that stores the add-in information along with other stuff. Opening VS refreshes these states thus removing old SDK's addin info.
4. Install the new SDK.
Hope this helps.
Hi,
I followed the above instruction, but this time to fix a different manifestation of this issue: I have the 'Add STS reference' and 'Update federation metadata' option, but I am missing the option to modify. The resets above do not work to fix this.
I am domain admin on the machine, UAC was disabled from the beginning of the server/OS preparation. WIF SDK was installed under these credentials.
Any other alternatives to get my GUI based modification working in VS2008 instead of editing the claims apps files directly?
Thank!
I've done all of this, (even turning off UAC and repairing VS2010) and the commands still don't show up for me. It's as if the AddIn simply isn't loading (even though it's checked in the add-in manager). I've never installed Geneva or prior version, either.
I had the same problem (no Add STS Reference...) on Windows 7 - VS2010 Ultimate.
This solved the problem:
1. Copy Microsoft.IdentityModel.Tools.FedUtil.dll from C:\Program Files (x86)\Reference Assemblies\Microsoft\Windows Identity Foundation SDK\v4.0 to C:\Program Files (x86)\Windows Identity Foundation SDK\v4.0\Visual Studio Extensions.
2. Add C:\Program Files (x86)\Windows Identity Foundation SDK\v4.0\Visual Studio Extensions directory to VS2010 - Tools - Options - Environment - Add-in/Macros Security
3. Restart VS2010. Add STS Reference now shows up in context menu on web sites and in VS2010 Tools. (together with 'Run Federation Utility tool..)
Hope this helps :-)
One thing that has not been explained is that it appears to be impossible to get this working with Visual Studio Express. It appears that many things are not supported with express including add-ins.
Also, it is possible to do this without the link by using the FedUtil.exe tool. You just need to find the tool and input the location of web.config for the project you want to use. It seems that only the web.config is modified during this process.
I solved this issue:
I read the "%ProgramFiles%\Windows Identity Foundation SDK\v4.0\readme.htm and I follow the instruction below
a. Close any instance of Visual Studio.
b. On a command-prompt, execute the following command to copy the add-in file. Also note that on 64-bit systems, the WIF SDK installs to %ProgramFiles(x86)% rather than %ProgramFiles%.
copy "%ProgramFiles%\Windows Identity Foundation SDK\v4.0\Visual Studio Extensions\Microsoft.IdentityModel.Tools.VS.VSAddin.Addin" "%USERPROFILE%/Documents/Visual Studio 2010/Addins/"
c. Open an instance of Visual Studio.
I add one more Step:
d. Go to tools->Options->Add-in/Macros Security and check the path of add-in.
If you have the path "%USERPROFILE%/Documents/Visual Studio 2010/Addins/"
Everything will work; if you don’t have that path just add it so your Add-in Manager will be happy. You can also check tools ->add-in manager to see if available add-ins is included the Windows Identity Foundation add-in.
Close Visual Studio and reopen. And everything must work.
Ihope things work.
Galan.
I was also facing the same problems, couldn't open the VS2010 templates for WIF.
I only installed the 4.0 SDK. But after I installed alo the 3.5 version, all my problems were solved :-)
VS2010 in Server 2008R2, same issue
> Uninstalled WIF4.0
> Rebooted
>Installed.
Working fine
I have generally found that you can reinstall the identity sdk multiple times and it never gets fixed, so I always try and patch it up manually. Make sure the SDK addin "Microsoft.IdentityModel.Tools.VS.VSAddin.Addin" is accessible from one of your tools->options->Add-in/Macros Security folders --- Or add a new folder at say "%USERPROFILE%\Documents\Visual Studio 2010\Addins" folder if it and put it there. Then do a reset - devenv /ResetAddin Microsoft.IdentityModel.Tools.VS.VSAddin.FederationAddin.
|

