Victor's Blog

Live as if you were to die tomorrow. Learn as if you were to live forever

NAVIGATION - SEARCH

How to exclude files from TFS Source Control?

If you want to add your files or folders to the exclusion list in the TFS source control, here is the registry keys you need to change:
Per-User: HKCU\Software\Microsoft\VisualStudio\<version>\TeamFoundation\SourceControl\AddOptions
Per-Machine: HKLM\Software\Microsoft\VisualStudio\<version>\TeamFoundation\SourceControl\AddOptions
where <version> is the VS version: 
For TFS2008 “9.0”
For TFS2010 "10.0"
And you can add your files/folders into ExcludeMasks key.
If the value is not already there, add a string value titled “ExcludeMasks” and set it to the exclusion list you would like to use.  If this value if found, it overrides the built-in defaults.

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

You might get a "Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service." exception when configuring security for WCF services. In order to fix this change your web config to this:

<configuration>
  ...
  <system.serviceModel>
    ...
    <bindings>
      <basicHttpBinding>
        <binding>
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    ...
  </system.serviceModel>
  ...
</configuration>

Parameter name: s Value cannot be null exception in SharePoint deployment

I encountered a very strange problem with deploying my solution to SharePoint. I got this error "Parameter name: s Value cannot be null." Someone suggested that I should disable Deployment Conflict Resolution, and that worked – but since I didn't change anything since my last successful deployment, I knew that there wasn’t really anything conflicting so there must have been another way to get it to deploy…

I finally figured out that all I need to do is to close all my opened files and it started working again! It sounds very silly, but it works :D.