You can open the document as an XDocument and go from there: var streamInfo = Application.GetResourceStream(new Uri("ServiceReferences.ClientConfig", UriKind.Relative));var config = XDocument.Load(streamInfo.Stream);var endpoints = from endpoint in config.Descendants("endpoint")where endpoint.Attribute("name").Value == endPointNameselect new { Address = endpoint.Attribute("address").Value };foreach (var endpoint in endpoints){if (_binding.Security.Mode == BasicHttpSecurityMode.Transport){String address = endpoint.Address.Replace("http://", "https://");//address = string.Concat(address, "/secure/");result = new EndpointAddress(address);}else{result = new... Continue Reading →
Invalid or malformed application: Check manifest
When changing the namespace of a SL application, the startup object information must also be changed
Using ASPNET_RegSQL.exe with SQL Express databases in APP_DATA
As discussed at Lance's Whiteboard, a really easy way to hook up an ASPNET membership provider database to an application ... perfect for rapid prototyping... "Creating a new DB in VisualStudio.NET 2005 is as simple as "Select APP_DATA node -> Add New Item -> Sql Database" and wah-lah you have a new aspnet.mdf file located... Continue Reading →
blacklight.silverlight showcase
Now this is the good shiz!! It is people like Martin, Dave, Neil and Mike that make the rest of our lives so easy! Great work guys, these controls are AWESOME!! :: blacklight.silverlight showcase ::
Self-signed SSL Certificate on Development PC
Creating SSL based WCF services requires a SSL certificate. Adam Nofsinger's blog gives a really easy way to do this using SelfSSL from the IIS Toolkit... Adam_Nofsinger.Tech: Self-signed SSL Certificate on Development PC ...Unfortunately self signed SSL certs will not work from SilverLight ... (e.g. HTTPS WCF service called from SL) ... :-(...
Edit WCF Configuration context menu missing
When the Edit WCF Configuration menu option goes missing.... I hear C#, I see C#, I do .NET - Edit WCF Configuration context menu missing
Accessing the ASP.NET Authentication, Profile and Role Services
Creating service to control Authentication, Profiles and Roles makes a lot of sense. It allows the abstraction of these commonly reused elements into a Service Oriented Architecture. It would also allow easy repositioning of these features into a centralised source (for common applications) or to be embedded into a standalone application, with zero code rewritting.... Continue Reading →
Code Standards Enforcement
To help with the enforcement of code standards within C# the following tool may be of use: Blog by Joel Fjordén a.k.a. Will o Wisp - Code Style Enforcer
Using ADO.NET Data Services
Good work from Beth Massi on ADO.NET Data Services - this is simplicity incarnate! I reckon that you could have prototype code up and running within half-an-hour... Beth Massi - Sharing the goodness that is VB : Using ADO.NET Data Services
SilverLight Hosting
MS are offering free SL hosting at http://silverlight.live.com. All you need is a windows live ID. You can then access you uploaded applications using one of the following methods: See my first upload at http://silverlight.services.live.com/invoke/88256/Test/iframe.html NOTE: the .../88256/Test/... reference, refers to your ID and application name. Method 1: Embed the application as a frame. 1)... Continue Reading →