desk tag

14 01 2009

Just realized that I was tagged by sentinel in his post about desk tag. Basically what the tagged person has to do is tell something about what his or hers desk at the office like.
Well, there’s nothing fancy on my desk (it’s called cubicle here and soon if you know the exact meaning of it, you’ll know why you will most likely be sleepy anywhere near it)…really messy even though I just got a new PC. Quad Core, 4 Ghz of RAM, Vista, Dual monitor 19 inch (although I only use one :P).
Neat one ain’t it. Once the project is done and let just see who gets this power house!

desktop left

desktop left

desktop right

desktop right

more on my desk!





could not load type ‘projectname.assemblyname.pagename’

22 09 2008

When doing ASP.Net development hosted in SharePoint, I occasionally found the following error when opening certain page, and the page that showed this error changes, one day it could be page A, another day it could be page B and this appears at random times. By turning off custom errors and showing stack trace I got the following error:

Server Error in ‘/’ Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type ‘projectname.assemblyname’.

Source Error:

Line 1: <%@ Page Language=”C#” MasterPageFile=”~masterurl/default.master”

Line 2: CodeBehind=”MyPage.aspx.cs” Inherits=”projectname.assemblyname.MyPage”

Line 3: meta:progid=”SharePoint.WebPartPage.Document” %>


Source File: /subsite/MyPage.aspx Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

I didn’t have this error in development server but constantly having this error at random times in client’s server. Doing IIS Reset or Recycle the Application Pool seems to get rid of the issue only for temporary. My guess is the assembly is not being “linked” properly after some process running in the server. I’ve placed the assembly in the bin folder of the web application but the issue always appear again and again at random time. I’ve added the assemby in web.config as well in the safe control section.

When googling about the issue I found a post that’s indirectly linked to this issue. I’m not sure if this has to do with using AAM (Alternate Access Mapping) or not but somehow the assembly at certain time “looses” the “mapping” to the location of the assembly.

So, from the post, I forgot the link to it, but it’s an old post about ASP, will post it here once I found it (it was burried deep inside google search result), I tried adding below section into web.config file of the SharePoint web application right inside the <assemblies> tag:

<compilation batch=”false” debug=”false”>
<assemblies>
<add assembly=”Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” />
<add assembly=”projectname.assemblyname, Version=1.0.0.0, Culture=neutral, PublicKeyToken=uniqueassemblytoken” />
</assemblies>

This has resolved the issue for me.

If there’s any one know why is this happening at random time and the cause please let me know. I’ll updated the post.





How to show icon for PDF documents in SharePoint 2007

31 07 2008

I was recently given a task to upload a PDF documents in MOSS’ document library for the Web App we (me and team) created for a client. Uploading it should be the easy part, but to see that SharePoint, by default, doesn’t recognize or show the PDF icon next to it really bothers me. Obviously, Microsoft office file extensions or file extensions “created” by Microsoft are the ones recognized by MOSS.

After googling around a bit and found very littlt information about it, I found this blog by Chad. Unfortunately, it was for WSS. Fortunately, only a little modification is needed for MOSS. Here are the steps:

  1. In your 12 hive directory, find the TEMPLATE\XML folder. The full path usually is C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML. Open the DOCICON.XML using your favourite text editor.
  2. Add an entry inside ByExtension tag as follows:
    <Mapping Key="pdf" Value="pdf16.gif"/>
    pdf16.gif is a 16 x 16 gif image file name of the PDF icon, find one and copy it into TEMPLATE\IMAGES folder in the 12 hive.
  3. Save your DOCICON.XML file and do IIS reset.

You might want to do backup on DOCICON.XML before and after you modified it because future updates/patches might overwrite your XML files. Chad’s blog already provide the resources and the modified XML file and he even wrote a batch file that do this automatically, but do modify the source first if you are going to do this on MOSS.

You can get the official PDF icon in here along with its Ts & Cs. This is the 16 x 16 gif (just save the picture):PDF icon

Happy SharePoint-ing…





Breaking the Record…

27 06 2008

After a long day at the office, breaking the company’s record for the longest coding time at the office I’m finally able to breathe a bit in this weekend.

Last weekend the client came to the office and was working side by side with me & the other 4 software engineers for 2 projects the client gave us. We were doing side by side, if not agile, development with the client revising us for what we have done, all the tiny bits and pieces which was not that easily done since the web application meant to be hosted on SharePoint 2007, one point intented for external user (facing the internet, custom membership provider) and the other one is intended for internal user (intranet, windows authentication). It was all in ASP.NET, that’s it.

When we were doing the bits & pieces, the client wanted to test on the internal user side. It was working, but then something showed up which was not supposed to show up. The client then wanted to look for the coding and that’s when all the record about to be set.  We were working on the wrong queries into the wrong database!! Well, not all but we got some of it & the logic right. The client then jumped on one of the developer’s PC and did some coding & debug things out since something was apparently wrong on the page.

That’s when he said we’ve down to 3 days’ work and that was the last day the client worked at our office. So we’ve stayed up all night fixing the queries, testing everything worked until the next day when some of us fell asleep sometimes. We had to do it because the client needed to do a demo on Saturday and that day was Wednesday already.

We were at the office from Wednesday and finally finished our work, well most of it, on Thursday night which was a stunning 36, almost 40, hours of work non stop. That made us attraction of the day at the office for breaking the previous record, working until 4 am.

We’ll on Saturday (today) we managed to do the deployment to the client’s server, which was very very very different environment to our staging server. Not to mention the permission issues, SharePoint setup, IIS setting… almost everyone is involved in this thing. We also did very last second changes when the client already left off from his office to do the demo and then kept our fingers crossed.

No emails coming in for almost 2-3 hours…but then at around 3:30pm my time, there’s an email coming in saying that the demo was a success and his client was impressed.

That all hard work pays and we did break the company’s record, which I would never ever want to repeat, try to break it, or even close to that working hours!!

At the end of the day, everyone was happy. The developers, our boss, and the clients.

Thank God to that and keep your fingers crossed.

To the team & supporters: Thank you very much…it did feel great to finally give something that works 😉





Firefox Download Day!!

17 06 2008

Have you heard about Firefox Download day?

Download Day 2008

I know it’s almost late to post this one but it is still awaited by most people in the place I work for.

I’m not sure if the date is correct but in the website it stated that 17 June 2008 is the date for Firefox Download day. I’ve been waiting all day for the link to appear but then again I think that probably it is US time so I probably have to wait tomorrow ( 18 June 2008 ) for download day.

What’s cool about it?

We can directly involved as one of the person amongst 1 million people something who breaks the world record!!

Ain’t that cool enough to get you motivated to pledge?

Click here to Pledge

If you haven’t had Firefox 3 you should at least try it, even if you’re a huge fan of IE (I’m not sure that many people are IE fans 😛 eventhough I do use IE sometime). Personally, I feel that its response speed is a little bit faster and the most important thing is it consumes less computing resources than previous version and you can drag & drop image from your browser into whatever folder you want in you PC.

Update:
I just came to the office this morning and yup, it has started as I’ve expected.
Done downloading Firefox 3 at 8:03am UTC+8!