Sunday, August 31, 2008

IIS7 folder rights when uploading files

IIS7 seems to create a new Application Pool for each web site. The app pool uses the "NetworkService" identity by default (right click on the application pool and select Advanced Settings to see the details). You therefore need to allow "Network Service" (Note space) to have write permission to any folders where you want to save uploaded files into when using Anonymous or Forms authentication.

IIS7 Membership provider

I've just installed Windows 2008 on one of my main web servers. I have an ASP.NET web site that uses the SQL Membership provider.

Originally I had this in my web.config file :-

< defaultprovider="MyMembershipProvider">
<>
< name="MyMembershipProvider" connectionstringname="MyMembershipConnectionString" type="System.Web.Security.SqlMembershipProvider" applicationname="MyAppName" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="true" requiresuniqueemail="true" passwordformat="Hashed">
< /add >
< /providers >
< /membership >

But I discovered that this works as a membership provider but does not allow IIS Manager to display the users when the .NET Users button is clicked. If you replace the type attribute above with :-

type="System.Web.Security.SqlMembershipProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"

it works.

Wednesday, August 27, 2008

iPhone 3G - Useless

Today I took a trip by train from Cambridge to London with my new iPhone 3G. What a waste of time the iPhone is. The main problem seems to be getting any sort of reliable connectivity. The phone is constantly switching from GPRS to Edge to 3G to WiFi and each time it does this it seems to freeze for a few seconds. If this is twice as fast as the old iPhone I'm glad I never had one. It makes working with a 56K modem seem like fun. I suppose I was playing with the phone for an hour on the train but by 11:53 am the phone was flat! I'd only managed a couple of hours - Totally useless!!! I'm almost tempted to send it straight back. I can understand connectivity on the train being a problem but it's no better in central London. I'll wait and see if V2.1 is any better.

It's also really annoying that the mail application cannot be rotated and where is the copy & paste functionality? I understand copy & paste is a security issue but surely it’s an essential feature.

Overall : not at all impressed.