Category Archives: Software Development

StopWatch

http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-performance-timers Every once in a while, there comes a time when some chunk of code that you have written isn’t performing quite as well as you think it should. And when that time comes, you need to have a way … Continue reading

Posted in Software Development | Leave a comment

Uninstalling VS 2008

Uninstalling Visual Studio 2008 can be a real pain.  You can get errors such as "A problem has been encountered while loading the setup components. Canceling setup."   Turns out, there is a "magic trick" to solve this: http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/588c15f1-8a4d-48f6-87db-faeee1219bb2   … Continue reading

Posted in Software Development | Leave a comment

ASP.NET Web.config Inheritance

By default, virtual directories inherit the web.config of their parent web sites.  That is why "clear" is so important.  There is a way to stop it though (and treat each virtual directory like a separate app): inheritInChildApplications   "Set InheritInChildApplications … Continue reading

Posted in Software Development | Leave a comment

Calling WCF from SQL Server

Here are a couple of good articles on the subject:   http://www.codeproject.com/KB/database/WCFFromSQL.aspx by Sam Shiles http://blogs.msdn.com/saradhic/archive/2007/09/12/invoke-wcf-service-via-sql.aspx    

Posted in Software Development | Leave a comment

A “WCF pattern” for updating client URLs to a Web Service

protected Configuration _appConfig = null; protected ServiceModelSectionGroup _appConfigServiceModelSection = null; public const string MyEndPoint = "contractType:myNamespace.ImyInterface;name:myEndpointName"; private void URISettingsForm_Load(object sender, EventArgs e) { Uri myTextBox= _appConfigServiceModelSection.Client.Endpoints[MyEndPoint].Address; myServiceAddressTextBox.Text = myServiceUri.ToString(); }     private void myButton_Click(object sender, EventArgs e) { Uri … Continue reading

Posted in Software Development | Leave a comment

Nice and easy aspx popup error

Response.Write("<script language=\"javascript\"> alert(‘This is an error’); window.open( \"page name\",\"window name\");</script>");Response.Flush();

Posted in Software Development | Leave a comment

WCF Web Services, HTTPS, Message Security, Transport Security, Certificates

This is more complex than it should be, but we as developers work with what we got.  There are a lot of moving parts, and this is a collection of links and notes to help one navigate the minefield of … Continue reading

Posted in Software Development | Leave a comment