Enabling anonymous access in SharePoint 2007

Even though Microsoft has done a great job on improving the user interface in SharePoint 2007, some things are still buried and require a little “black magic” to get done. In this entry I’ll show you how to enable anonymous access on your site.

First, you need to enable anonymous on the IIS web site (called a Web Application in SharePoint land). This can be done by:

  • Launching Internet Information Services Manager from the Start -> Administration Tools menu
  • Select the web site, right click and select Properties
  • Click on the Directory Security tab
  • Click on Edit in the Authentication and access control section

Instead we’ll do it SharePoint style using the Central Administration section:

  • First get to your portal. Then under “My Links” look for “Central Administration” and select it.
  • In the Central Administration site select “Application Management” either in the Quick Launch or across the top tabs
  • Select “Authentication Providers” in the “Application Security” section
  • Click on the “Default” zone (or whatever zone you want to enable anonymous access for)
  • Under “Anonymous Access” click the check box to enable it and click “Save”

NOTE: Make sure the “Web Application” in the menu at the top right is your portal/site and not the admin site.

You can confirm that anonymous access is enabled by going back into the IIS console and checking the Directory Security properties.

Now the second part is to enable anonymous access in the site.

  • Return to your sites home page and navigate to the site settings page. In MOSS, this is under Site ActionsSite SettingsModify All Site Settings. In WSS it’s under Site ActionsSite Settings.
  • Under the “Users and Permissions” section click on “Advanced permissions”
  • On the “Settings” drop down menu (on the toolbar) select “Anonymous Access”
  • Select the option you want anonymous users to have (full access or documents and lists only)

Now users without logging in will get whatever option you allowed them.

A couple of notes about anonymous access:

  • You will need to set up the 2nd part for all sites unless you have permission inheritance turned on
  • If you don’t see the “Anonymous Access” menu option in the “Settings” menu, it might not be turned on in Central Admin/IIS. You can manually navigate to “_layouts/setanon.aspx” if you want, but the options will be grayed out if it hasn’t been enabled in IIS
  • You must do both setups to enable anonymous access for users, one in IIS and the other in each site

Hope that helps!

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 1 Comments
Filed under:

How the web could be

The phrase always comes up. “Blame Hanselman”. Scott Hanselman is the bane of new technology, gadgets, and tools for me. Like a lemming, he mentions something cool and we all flock to it. Today he was rambling on about a new reader from the NY Times (written using WPF) that is the cat’s meow. I’m not one to normally read the times as I find it bloated and boring, but figured it was WPF and Scott’s blog entry on it looked interesting.

nytimes

This really is the killer app for WPF, as it not only has everything but it’s brilliantly done. So many times paper publications have tried to make electronic versions of themselves and just basically failed. Others will convert their paper copies to something like a PDF file, but for whatever reason, the fonts/images just don’t look that great. Take a look at the image above. Even in the size the image is now (500px wide) you can still read the text (and that’s at the second lowest setting).

The layout is simple yet functional. The designers didn’t take the “one-resolution-fits-all” approach. As you resize the reader window, it moves elements around and fits them in smartly (for example, the newspaper sections wrap as the window changes size. However, everything stays relative so you’re not hunting around for a button or function that vanished off the page because you sized the screen too small. Too many developers omit little things like this when they build software. The NY Times guys got it right.

As for the features, you can search, change the font size, save the article (only in Times Reader format), email an excerpt (with links to the reader for those that don’t have it), and even create ink notes (if you have a tablet). Very slick.

The app is updating and you can just click on the update icon to download newer content. Like I said, I don’t read the Times so not sure if they post multiple issues during the day or if this app is fast becoming a more “live” version of the newspaper. People always say newspapers and magazines are so outdated because they report the news but then have to print and distribute. This removes that problem.

Okay, it’s not the first time a newspaper or magazine put their content into a reader (like I said, some have tried and failed) but I think it’s the first in using the Windows Presentation Foundation so there’s a cool factor here. And it’s well done. That says a lot.

However, just imagine if your favourite RSS reader delivered it’s content this way? Some newsreaders offer a “newspaper-like” view (Omea reader can do this, and I think FeedDemon can) which reformats RSS feeds into this style (and sucks in any photos in a blog entry to supplement the article). I don’t see why an RSS reader can’t be like this all the time as it’s a very user-friendly experience and would make reading feeds that much more fun everyday.

While I know the WPF is not for the web, with the advent of Atlas coming and web apps getting all AJAXy on us, why not have a web like this? Why can’t we have rich-web apps like the New York Times reader online? Sure this implementation is a client application, but the UI is so thin it could easily be done as an AJAX/Atlas website. The next step is to have the choice or a seamless transition from one to the other. Why can’t your browser be a shell for rich-client ClickOnce apps instead of a HTML rendering engine. I would like to see more apps built this way (both web and client) where appropriate.

I agree with Scott that the NY Times should have made this a ClickOnce app so it would always be current but other than that, this is a freakin’ cool demonstration of the Windows Presentation Foundation and how it can deliver a simple, yet effective solution.

You can download the NY Times Reader application from here (registration required, free to those who are breathing with an email address)

 

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 0 Comments
Filed under:

Buying a laptop that doesn't explode

I guess I have one rule when I’m buying hardware. It shouldn’t explode on me (unless it was designed to).

I’m struggling with buying a new laptop. I have a nice Compaq Presario R4000 that I’ve enjoyed for a year or so and it’s okay spec wise. AMD Athlon 64 processor (3500+), 2.2Ghz, 2GB of RAM. However it’s a big of a dog for doing daily development. I tried doing development on a desktop and sync up things via an external USB drive but it’s just too painful. Paths are wrong, sometimes things don’t work, software not the same, websites or services are not all there, VMs have to be reconfigured, etc.

So now I’m looking at a dual-core system. Dell and Toshiba have some okay laptops but lately everything is just blowing up on people. I mean Apple, Dell, Panasonic, and Toshiba have all done recalls on their systems. There are also reports of ThinkPads blowing sky high. Doesn’t give me a warm fuzzy. The one option that I saw via a review by someone was an ASUS A6Jc-. Looks nice and at least they haven’t started turning into ash piles.

Any suggestions?

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 4 Comments
Filed under:

Presentation of BDC to NYC SharePoint Group online

Matt sent me a note saying that they’ve posted the web cast I did for the New York City SharePoint Users Group a couple of weeks ago on the BDC on their site. You can watch the 30 minute session here. It covers walking through some of Todd Baginski’s BDC generator tool, and showing results in SharePoint. With only 30 minutes, its hard to get into things like building custom search tabs, sucking in data from a web service, and other BDC goodness. I’ll get into all that at DevConnections in November as I have a 75 minute session I’m presenting on the BDC.

You know, I really have to improve my speaking skills. Either I was nervous, on drugs grown in my homemade crystal meth lab, or really need to listen to myself more often. Lots of “ums” thrown in as I was speaking so I apologize to listeners. I really do know what I’m talking about (at least I hope I do) and have done enough of these that I should know better. Although I’m doing these web casts with a cell phone on one ear with one hand and typing with the another. I probably should invest in a headset.

And no, I wasn’t wearing any pants during the web cast.

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 1 Comments
Filed under:

WSSv3 setup this weekend

Now that my web hosting company, Webhost4life, has got their act together I’m going to be upgrading some of my sites to WSSv3. This will include my SharePoint dev site with all the application templates. Not sure if I’ll spin up an extra site or what I’ll do, but my main vanity site (currently running on DotNetNuke 4) will get a SharePoint facelift along with a few others. If you’re trying to access them this weekend, they may go offline as domain and sub-domain names swap around. Then it’ll be time to start uploading custom web parts and really going to town.

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 3 Comments
Filed under:

First iteration done as in dinner

Well, 30 days later and our first sprint is done. We finished ahead of schedule at about 2pm the day before the sprint “officially” ended with one task remaining that the QA guy had to do. It was a fun ride and challenging. The entire team (sans me) had to deal with the following new technologies:

As well as adapt to the Scrum process as they were mostly used to waterfall-esqe approaches (BDUF, highly detailed specs, etc.). I think everyone adapted pretty well. We had some churn the first couple of weeks as the plumbing got settled, we got used to using Team System (as a team) without clobbering each others work. Here’s the burndown from the iteration:

sprint1burndown

Things were a little goofy. First off I entered all the features into the Product Backlog, but then another guy (while I was enjoying the backwoods of B.C.) entered the same set and deleted my initial ones. Then we forgot to enter the initial estimates for the sprint. Finally we had entered the estimates but then had entered them in hours and Scrum for Team System uses days for the product backlog items. So that explains the false start (I’m still trying to manipulate the original warehouse database to correct that).

The other three gaps were caused by over estimation. On the 28th of August, we introduced a data layer using NetTiers and a few simple tables. That knocked two tasks that were pegged at 14 hours each down to nothing in a day. On the 11th of September we did the same thing for the next set of data we needed to store. Finally on the 18th of September we realized there were 3 or 4 tasks that were estimated at about 8–10 hours but they were really just rolled up in another screen, so that was knocked off in a day.

Not the prettiest sprint burndown chart out there, but it’s real numbers.

As for our Sprint Review, that was almost a huge guffaw. Our review with the customers was yesterday at 10am. We had stopped development and put out a release for final QA testing by noon the day before. Everything worked fine. The QA guy and some devs were working until about 9pm that night either just admiring what we did or were adding little things we wanted to put into the system (but we weren’t going to show this) and all was well. Then at 7:30 the next morning, our QA came in and couldn’t run the app. By the time 9am rolled around and we were checking the release to go over the demo, nothing worked. We tried on every machine and still no dice.

At 9:30 we reset the database and I thought we had done something horrible because the app wouldn’t even launch. Man, we were sweating bullets. Finally we determined that something happened with the proxy server on the network, so launching our ClickOnce app was failing and the exception handler couldn’t deal with it (for whatever reason). The network guys push stuff out all the time but apps for this customer never were this complicated, so nothing ever was affected. Anyways, to get the demo up and running we commented out some handling and it ran fine.

As we were really cramped for time and didn’t have time to start up the laptop to demo the system, I didn’t want to chance having that fail so we grabbed the one dev’s desktop (a Dell Dimension E521), his keyboard and mouse and screen (luckily it was a LCD and not a CRT) and hauled ass across the street to the building where we did the review.

At the end of the day, the customer was happy with what we did. There were a few suggestions and ideas that we’ll add to the next sprint. We spent an hour and a half going over the backlog items for the next sprint and ended up with a nice list to deliver the first release at the end of October. That burndown will be more of a slope than a bumpy ride, but the team had fun and we delivered working software which was the key thing.

One more note. We couldn’t figure out why when we were going through the product that a list of values were not coming back from a corporate web service. A different list we used was being populated from that same service, but the one list of numbers we wanted wasn’t. Later that day I found out that one of the devs in the other building had deleted that web service method because he thought it was a duplicate. Luckily, our system was built using Smart Web References (part of the Smart Client Software Factory) and will simply return us the list of values and a success/failure value of the web service call. This isn’t exposed to the user, but at least the app didn’t hit and unhandled exception during the demo. Thanks Les!

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 2 Comments
Filed under:

Ahoy! You scurvy SharePointers

Yes, just like your favorite MVP, International Talk Like a Pirate Day comes but once a year and it's today, September 19th. So go ahead, wander around your offices like a blubbering peg-leg idiot and feel free to slip in a few "argghhs,"  "mateys," and "shiver me source code" comments to anyone who looks like a land-lubber.
Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 0 Comments
Filed under:

Spend an hour searching with SharePoint and Robert Bogue

Robert Bogue has been around in the SharePoint sphere for sometime now and is just starting to put together screen casts (web casts, whatever you want to call them) for SharePoint.

The first in his screen casts is based on a live presentation he’s been giving for the past year and a half. It explains all the ins and outs of SharePoint search. It’s based on 2003 but the principles apply to 2007 (and I’m sure he’ll update it for 2007 hint, hint). So he’s offering up his SharePoint Advisor presentation, repackaged into a web cast. All free as in beer, which is always good.

You can check out his blog entry here and watch the screen cast here.

Watch for more screen casts from the entire SharePoint MVP community (and other SharePointHeads out there) over the next few months (including yours truly) as we discover what we can do with this wonderful technology ;)

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 0 Comments
Filed under:

Omea is the new FeedDemon

I seem to be doing software service announcements lately, but I’m just levelling out my 3rd party tools and whatnot on my laptop as I spend a Sunday afternoon catching up on podcasts and coding stuff in the background (I’m just too A.D.D. to be doing one thing at a time).

Recently I’ve been struggling with my RSS feeds, newsgroups, and email. Basically I’ve been trying to find a good set of tools/add-ins to manage email, RSS feeds, newsgroup postings, and (to a lesser extent) bookmarks). I mean here we are in the information age, but there’s so much information out there. So many inputs coming in, and trying to sort it all out with tools. I’ve installed and tried out various tools and tool combos which went through a folly of tools:

  • RSS Bandit for RSS feeds
  • RSS Bandit for newsgroup posts
  • Outlook 2003 + Newshound for newsgroup posts
  • Outlook 2003 + IntraVnews for RSS feeds
  • FeedDemon for RSS feeds
  • Outlook 2007 for RSS feeds
  • Outlook 2007 + Newshound for newsgroup posts

I think I’ve finally found the sweet spot. Thanks to Andrew Connell who uses Omea reader, I decided to give it a try. It’s by the guys from JetBrains who make ReSharper, IntelliJ, and a whole bunch of cool tools. AC uses the notify feature of it to read newsgroups, and be notified when someone replies to a thread (usually one he replies to). This is a great feature of the tool because in this day, we’re trying to sift through hundreds of posts a day in a half dozen SharePoint newsgroups. No easy feat even for a super-human MVP like myself.

omega

I downloaded the tool, imported my OPML and found it to be slick. It lets me categorize the content as there are many blog entries I keep as a knowledge base. It’s fast and downloads/updates in the background and doesn’t require a gob of memory (one of the problems with RSS Bandit). And the notify feature just rocks.

So I’m now hooked on JetBrains Omea Reader for RSS feeds and newsgroups and Outlook will just be fine for email. Omea can handle your mail as well, but I think I’ll stick with Outlook for now.

Anyways, enough with the tools. Time to get back to writing tests. Red. Green. Refactor. It’s a great Sunday!

Share this post: Email it! | bookmark it! | digg it! | reddit!
Posted by bsimser | 0 Comments
Filed under:

Joel on Team System

Just listening to Joel Semeniuk on the latest podcast of .NET Rocks! as they talk about Team System. As a Scrum-junkie, I really love the fact that Microsoft did something right with Team System when they left the system open. It opened the door for people like Conchango to put out their very excellent Scrum for Team System set of process templates. As Joel mentions in the podcast, for a developer who’s savvy with Team System but doensn’t know about Scrum the plugin lets you understand Scrum a little better, and vice-versa for the Scrum guy who doesn’t know Team System. It works for both types of developers which is nice. If you’re trying to struggle with Team System, or you’re trying to get Scrum working with the MSF Agile template MS ships then you might want to take a look at Scrum for Team System. It’s very slick (and free!).
Share this post: Email it! | bookmark it! | digg it! | reddit!
More Posts Next page »