Monthly Archives: January 2010

God mode on Windows 7

This article details a neat little (trivial) undocumented feature of Windows you may find useful. Continue reading

Posted in Miscellaneous | Tagged , | Leave a comment

Protected: Windows Registry interaction with 64 and 32 bit applications

There is no excerpt because this is a protected post.

Posted in Development | Tagged , , , , | Enter your password to view comments.

Retrieving COM class factory failed due to the following error: 80040154

When installing a new version of Windows 7 (64 bit), I came across this error when attempting to run one of my web services:

Retrieving COM class factory failed due to the following error: 80040154

No real explaination on what component was causing the problem, but stepping into the code, there is a dependency on a third party COM DLL to communicate with a remote server. The COM component is 32 bit – getting it to run in the 64 bit environment is the issue.
Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment

Integrated security with IIS and .NET

Setting up a new Windows 7 machine had me challenged remembering all of the things that need to be done to get my .NET applications all working again, especially ones that use any kind of integrated windows security with IIS, and connect to a database and web services.

The main one that gets me thinking everytime is the impersonation account if a Windows’ account is setup to connect to a database. This would typical be needed when connecting to a web service that connects to a database. One way to achieve this is to use SQL security to maintain the account and store the user/password in the web.config but this has some security concerns in that the password is stored in clear text. This also requires the password to maintained in multiple places, which is not desirable.
Continue reading

Posted in Development | Tagged , , | Leave a comment

IIS Hosted WCF Service Fails

When attempting to get a new machine running, I have come across an issue getting IIS hosted WCF services to instantiate.

The error is typically something like the following:

Unhandled Exception: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (405) Method not allowed.

This can occur if ASP.NET isn’t installed or the .svc file is not mapped to the aspnet_isapi.dll
Continue reading

Posted in Development | Tagged , , | Leave a comment

Getting IIS Debugging and WCF working under Vista and Windows 7 with VS2008

After installing VS2008 on Vista and attempting to fire up a WCF application built with a .NET framework I built a couple of years ago now, I found the WCF channel was failing with no hint as to the problem. This issue also applies for running on Windows 7.

The framework architecture hosts the WCF service in IIS. When opening the solution with VS2008, I was presented with the need to run VS as an administrator. That problem is sorted easily enough, but is a bit intrusive.

Continue reading

Posted in Development | Tagged , , , , | Leave a comment

WinForms applications – No Touch Deployment (NTD) and gotchas

Often when .NET WinForms applications are created, developers do not consider the various deployment options available and panic when it comes time for deployment and default to using ClickOnce. This is not a good strategy as the architecture of the application is not well considered with this in mind and limits the deployment options.

Continue reading

Posted in Development | Tagged , , , | Leave a comment

First post

I’ve been meaning to setup a technical blog for sometime now to write my technical thoughts and share my learnings with fellow developers.

Some of the first posts will be based on info I have put away some time ago but have now finally put it up.

I hope you get some value from my posts. If you do, please dig it or add a comment
Continue reading

Posted in Miscellaneous | Tagged | Leave a comment