TechFest Houston Slides and Source Code


Published Monday, September 28, 2009 | Comments (1)

TechFest Houston was a blast, and if you came out to my presentation on Simpliyfing Web Part Development or dropped by the Cogent booth, then I would like to say thank you! The presentation slides and demo source code can be downloaded below.

Simplifying Web Part Development.zip (2.35 mb)

Access Denied for "User Profile and My Sites" Links in an SSP


Published Friday, September 18, 2009 | Comments (0)

SharePoint is great about hiding permissions.  I was working on a Shared Service Provider (SSP) and was greeted with an access denied page when I went to edit some of the profile settings under the "User Profile and My Sites" section.  I was a little disturbed because I am a site collection admin, and I have access via the Web Application Policy in Central Admin.  Fortunately, I found the following link:

http://blog.tylerholmes.com/2008/09/access-denied-for-site-collection.html

Tyler Holmes was nice enough to post his findings and provide a nice walkthrough on how to get around the issue.  Basically, it involves clicking on the permissions link at the bottom of the "User Profile and My Sites" section and giving yourself access.

Bookmark this post: Dot Net Kicks
By Damon Armstrong | Permalink | Comments (0) | Comment on this Post
Filed Under: SharePoint

Fixing the 'Name ActiveX Control' Message on SharePoint Sites


Published Friday, September 04, 2009 | Comments (0)

SharePoint sites normally have a 'Name ActiveX Control' used to communicate you're online presence back to the Office system.  If you've ever seen a site where it shows you who is 'online' and who is 'offline' then know that this is the mechanism that marks someone as being 'online'.  That is all fine and well for internal application, but it kinda sucks for public facing sites because users are asked to install some weird ActiveX control that they know nothing about.  I find it particularly odd that it's included on the default publishing site.  Whatever.  Fixing it should be relatively easy because there is a knowledge base article outlining what to do:

Knowledge Base Article 931509

Unfortunately, that only gives you part of the solution.  It basically tells you to comment out two function headers in the init.js file.  If you follow the instructions in the Knowledge Base article exactly, you'll see a little JavaScript error notification when you refresh the page.  Probably because, now, let me guess . you commented out a function header without commenting out the rest of the function?  Also note that one of the functions you commented out gets called later, which is a bit of a syntactical no-no in just about every language of which I can think.

So, if you want to avoid the 'Name ActiveX Control' message on your SharePoint site AND have it work correctly (novel idea), you need to entirely comment out both functions, and comment out any references to those functions anywhere else in the JavaScript file.

Displaying Debugging Info for SharePoint Errors in Your Browser


Published Thursday, May 17, 2007 | Comments (0)

SharePoint does a good job of hiding errors from users.  Out of the box, unhandled errors in SharePoint result in a fairly non-descript page that says "An Error Occurred" (or something to that effect).  Although a good practice for your end-users, it's pretty annoying when you're trying to get a piece of code working or a configuration setting correct.  Here's how you can display debugging information in your browser:

  • Find the following line in your web.config:


  • Change the CallStack attribute to true
  • Change the AllowPageLevelTrace to true
  • Find the following line in your web.config:


  • Change the mode to "Off"

The next time you have an error, it displays the familiar ASP.NET error information page with exception details and the callstack information.  Much less frustrating than a blasé error message.

Bookmark this post: Dot Net Kicks
By Damon Armstrong | Permalink | Comments (0) | Comment on this Post
Filed Under: SharePoint