Archive for the ‘.NET Programming’ Category
Eric Hexter’s Current .NET Application and Tooling Stack
Current .Net Application and Tools Stack
Along with Rhino Mocks
WCF Service Project configuration for https
Rowan has spent alot of time on WCF and has a good understanding of WCF services. In this example, I wanted to host a WCF service on a website and use it with https. Below is the configuration necessary to do that.
In web.config file create the serviceBehaviors, bindings, and services section:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MembershipProviderHelperBehavior">
<serviceMetadata httpsGetEnabled="true" httpsGetUrl="" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="TheConfig">
<security mode="Transport"/>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="CustomClassHelperBehavior" name="CustomClassHelper">
<host>
<baseAddresses>
<add baseAddress="https://ssl.texmed.org/Services/CustomClassHelper" />
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" contract="ICustomClassHelper" bindingConfiguration="TheConfig">
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
Remove and Add handler programmatically in C#
this.ControlName.PropertyChanged -= new PropertyChangedEventHandler(ControlName_PropertyChanged);
this.ControlName.PropertyChanged += new PropertyChangedEventHandler(ControlName_PropertyChanged);
Getting Silverlight Tools Installed on VS2008
Uninstall Silverlight and any other Silverlight references. It seems like there is an entry added into Add/Remove Programs even if the installer fails.
I then used this article to get Silverlight installed:
http://timheuer.com/blog/archive/2008/09/29/install-silverlight-2-rc0-offline.aspx
Getting Vault to run on a 64bit machine with VS2003
1. Add the following keys:
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider]
"ProviderRegKey"="SOFTWARE\\SourceGear\\Vault Client"
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders]
"SourceGear Vault VS2003 Compatible Client"="SOFTWARE\\SourceGear\\Vault Client"
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear]
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\SourceGear Vault Client]
"InstallDir"="C:\\Program Files (x86)\\SourceGear\\Vault Client\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\SourceGear\Vault Client]
"InstallDir"="C:\\Program Files (x86)\\SourceGear\\Vault Client\\"
"SCCServerName"="SourceGear Vault Classic Client"
"SCCServerPath"="C:\\Program Files (x86)\\SourceGear\\Vault Client\\VS2003_Client\\VaultIDE.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider]
"ProviderRegKey"="SOFTWARE\\SourceGear\\Vault Client"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider\InstalledSCCProviders]
"SourceGear Vault VS2003 Compatible Client"="SOFTWARE\\SourceGear\\Vault Client"
2. Restart Visual Studio and check the Source Control item Under Tools\Options
