Monday, August 30, 2010

WCF URL registration for users

If you are hosting a web service end point using a user (non administrative account), the url end point must be registered for that user. see http://go.microsoft.com/fwlink/?LinkId=70353.

Wednesday, August 25, 2010

Using 2 singnet's 2wire devices for WAP/switch and broadband access

If you are experiencing connection resets on the 2wire adsl modems like me, this could be a solution. I basically configure 1 of the 2wire device as a adsl modem by disabling it's wireless interface.
For the other 2wire device, i configure it as a WAP/switch by disabling routing and the broadband interface or putting the device in bridge mode. see this article on how to do this.
How to Put a 2Wire Into Bridge Mode | eHow.com

if you messed up, here;s how to reset your 2wire device to factory settinsg:
How do you reset a 2Wire 2700HG modem/router to its factory settings? - Yahoo! Answers

Monday, July 26, 2010

Runnning a 32-Bit Web Application on a 64 bit Windows

When you have a Web application that uses a 32 bit database driver to access a database , eg ms access. You have to
  1. Use the 32-bit ODBC Manager (%windir%\syswow64\odbcad32.exe) to create the DSN
  2. Run the WebApplication in a 32 bit Application Pool
Run IIS Admin, create a new Application Pool (use Classic). Advance settings - Enabled 32 bit application -TRUE

Tuesday, May 4, 2010

SQL 2008 Server Authentication using sa account issue

Cannot set a credential for principal 'sa'. (SQL Server 2005/2008) TechUrbia - A LearnItFirst Blog

Another issue when you are running in Windows7/Windows 2008 is that the dynamic ports used by the SQL Engine is blocked by the default firewall rules. Have to disable windows firewall in order to work.

Saturday, April 10, 2010

Programming on Microsoft Active Directory Using Microsoft .NET Framework

Programming AD system managment tasks is still a pain with .NET, you may do this if you are developing a sophisticaed customized management tool that is not available from the suite of native tool from Microsoft.

Querying Microsoft Active Directory Using Microsoft .NET Framework Library - CodeProject

Operations on AD using DotNet

Most administrators will simply script the tools. We have a choice of using
  1. VB/Java scipts
  2. PowerShell scripting with the AD module(only for Windows 2008 R2)
  3. DOS shell

Friday, April 9, 2010

REST resources

Yahoo REST Service - HOWTO

HTTP-Based Web Services with .NET

HTTP-Based Web Services with .NET

This is a very good and simple example of the cool stuff you can do with REST.

WCF REST Starter Kit White Paper

WCF REST Starter Kit White Paper

Learn REST: A Tutorial: 1. What is REST?

Learn REST: A Tutorial: 1. What is REST?: "1. What is REST?

REST stands for Representational State Transfer. (It is sometimes spelled 'ReST'.) It relies on a stateless, client-server, cacheable communications protocol -- and in virtually all cases, the HTTP protocol is used.
REST is an architecture style for designing networked applications. The idea is that, rather than using complex mechanisms such as CORBA, RPC or SOAP to connect between machines, simple HTTP is used to make calls between machines.
In many ways, the World Wide Web itself, based on HTTP, can be viewed as a REST-based architecture.
RESTful applications use HTTP requests to post data (create and/or update), read data (e.g., make queries), and delete data. Thus, REST uses HTTP for all four CRUD (Create/Read/Update/Delete) operations.
REST is a lightweight alternative to mechanisms like RPC (Remote Procedure Calls) and Web Services (SOAP, WSDL, et al.). Later, we will see how much more simple REST is.
Despite being simple, REST is fully-featured; there's basically nothing you can do in Web Services that can't be done with a RESTful architecture.
REST is not a 'standard'. There will never be a W3C recommendataion for REST, for example. And while there are REST programming frameworks, working with REST is so simple that you can often 'roll your own' with standard library features in languages like Perl, Java, or C#."