2007-10-26

Using a custom database for ASP.NET Membership

I needed to use a custom database for my membership and roles in an ASP.NET service it took me a little while to sort out in the web.config so I thought that I would post my web.config here just in case anyone wants to copy it. just replace the words in square brackets with the correct values.
<?xml version="1.0"?>
<configuration >

 <appSettings/ >
 <connectionStrings >
  <add  name="ApplicationConnectionString"
   connectionString="[ConnectionString]"
           providerName="System.Data.SqlClient" / >
  <add name="MembershipConnectionString"
  connectionString="[ConnectionString]"
  providerName="System.Data.SqlClient" / >
 </connectionStrings >

 <system.web >

  <compilation debug="true" / >

  <authentication mode="Forms" / >

  <membership defaultProvider="SqlMembershipProvider"  >
   <providers >
    <clear / >
    <add name="SqlMembershipProvider"
     connectionStringName="MembershipConnectionString"
    applicationName="AssetManagement"
    type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" / >
   </providers >
  </membership >
  <roleManager enabled="true" >
   <providers >
    <clear / >
    <add connectionStringName="MembershipConnectionString"
    applicationName="AssetManagement"
    name="AspNetSqlRoleProvider"
    type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" / >
   </providers >
  </roleManager >
 </system.web >
</configuration >
Oh and to add the tables you need to your database use the following command from the command line replacing the words in square brackets with the correct values;
C:\WINDOWS\Microsoft.NET\Framework\[Framework]\aspnet_regsql.exe –E -S [Server] -d [DatabaseName] -A mr
Here is some more info on aspnet_regsql.exe.

CTRL + ALT + DEL on Remote Desktop

I was having trouble today drying to can a servers password when I remembered the reason it was not working was because I was using the wrong command(this may have taken half an hour). So kids remember when you want to use "CTRL + ALT + DEL" on a Remote desktop it is actually "CTRL + ALT + END".

2007-10-25

Watch out for Zombies

Keep an eye out for zombies this summer.

2007-07-23

Good Bye Paid Hosting


I have been paying for web hosting for over 3 years and as of this post I will be paying for hosting no more.

It occured to me a little while ago that the only thing I am really using my paid hosting for is my blog and email. While there are plenty of good blog hosting solutions (blogger.com, wordpress.com), I hadn't however found anyway to manage my email with the same control as paid hosting, that was until I found Google Apps.

What is Google Apps you may ask, well Apps is basically a way to assign google services to your domain name. The services that Apps currently supports are:
Why may you ask should I use google apps when I can just set up a gmail account and have all that anyway?
The answer is pretty simple- all these services are run under your domain name. This means that you can set up users and they will have an email address at your domain (ie pete@yourdomain.com) and a document store at your domain as well.

You can even host your own webpage with Google Pages.

2007-04-02

Gremlin in the System

Gremlin in the SystemThe site is back, I got a really large amount of traffic and my webhost shut down my site so that the rest of the websites on the Server still worked
I have moved the gallery to flickr to make the site work faster lets hope it works.
It would of been nice fot them to tell me that they were planning to shut down the site tho.

2007-03-08

George w Bush is Naughty

I got worms as soon as it came out on live and it is a great game, but I noticed something a little weird after I created my team (Liberty Fiends) and went to play on Live.

One of my worms had his name changed to naughty.  Normally I guess that this would be because someone used a dirty word but I hadn't, the worm's name is George w Bush. It seems that Team 17 agrees with the rest of the world when it come to the US president. This is diffidently one of the best Easter eggs I have seen in a long time.

And just incase anyone cares Tony Blair shows up just fine.

2007-02-16

Moved to .Net

I recently moved jobs from PHP development to C# .net and that being so decided it was worth completely giving in and changing my webhost to an ASP.NET host.

I have to say that I am very happy with it I am using community server and it is great I can store file, photos all in one program, I will put some more stuff up about community server at a later date.