Archive for the ‘.NET Programming’ Category

Eric Hexter’s Current .NET Application and Tooling Stack

without comments

Written by grantmcinnes

May 20th, 2009 at 3:01 pm

Posted in .NET Programming

WCF Service Project configuration for https

without comments

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>

Written by grantmcinnes

April 24th, 2009 at 1:57 pm

Posted in .NET Programming

Remove and Add handler programmatically in C#

without comments

 

this.ControlName.PropertyChanged -= new PropertyChangedEventHandler(ControlName_PropertyChanged);

this.ControlName.PropertyChanged += new PropertyChangedEventHandler(ControlName_PropertyChanged);

Written by grantmcinnes

April 8th, 2009 at 9:42 am

Posted in .NET Programming

Getting Silverlight Tools Installed on VS2008

without comments

 

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

Written by grantmcinnes

March 16th, 2009 at 10:55 am

Posted in .NET Programming

Getting Vault to run on a 64bit machine with VS2003

without comments

 

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

Written by grantmcinnes

March 11th, 2009 at 1:04 pm

Posted in .NET Programming