Janne Mattila's blog

From programmer to programmer -- Programming just for the fun of it

Browse by Tags

Tagged Content List
  • Blog Post: Story of wrong content type and InfoPath publishing location

    I found myself troubleshooting on issue that I thought shouldn’t be issue anymore. I have created InfoPath form and published it to the SharePoint. However when I created new form using that template it ended up using wrong content type at my library. And this happens even with the SP2 installed (both...
  • Blog Post: SQL Server Profiler and SPQuery

    Question: I’m using SPQuery to retrieve items from my SharePoint list and now I want to know little bit more about SPQuery properties. Actually I’m interested about performance related things since I’m not sure about my query currently. I currently have following code to retrieve my data: 1 2 3 4...
  • Blog Post: Link: SharePoint slow spin-up times…

    I accidently found myself on this page: SharePoint 2007 Quirks - Solving painfully slow spin-up times . After reading that article I was forced to test that. And my stsadm experience was really fast after that! So this link deserves a link post even if I don’t do those normally :-) Anyways... Happy hacking...
  • Blog Post: CRM 4.0 (or SharePoint or custom application) and DebugView

    Every now and then I’m find myself trying to solve same issues over and over again :-) That’s why I found myself (again) using DebugView as my debugging assistant at remote box. If you don’t know what DebugView is then you should definitely try it out. I’m going to give you few ideas how you could use...
  • Blog Post: Custom SharePoint application and System.IO.FileNotFoundException

    Question: I have normal user access rights at SharePoint but I'm administrator of the physical SharePoint box. I don't have access rights to SharePoint databases but I still need to run few lines of code against SharePoint. I have created small console application but when I run it I get nasty System...
  • Blog Post: CRM 4.0, SharePoint and ASP.NET Trace

    Sometimes I tend to forget how much stuff is built into .NET Framework. Framework gives you nice set of features that you can use without writing a single line of code. ASP.NET Trace is one of them. I know that it's nothing new but I think that it's still used mainly in custom ASP.NET applications. But...
  • Blog Post: Catching unhandled exceptions in SharePoint

    If you have done some dev stuff with MOSS you have most likely seen this: " An unexpected error has occurred. " is something that you probably don't want to see at your browser.... you want to have customized error page. In ASP.NET application you normally put Application_Error into you global.asax file...
  • Blog Post: Create Silverlight 1.1 applications for SharePoint with VS2008

    Title says it all :-) My plan is to create small walkthrough how you can create your own Silverlight 1.1 application with Visual Studio 2008 and then run it in SharePoint. And I don't want to install a lot of stuff to my SharePoint environment so I'll just create simple web part to host the Silverlight...
  • Blog Post: External datasource (SharePoint list) and Forms Server

    If you have following setup... You need to create InfoPath Form that you're going to use in Forms Server (=Browser compatible) Your form contains external data source to SharePoint list Data from the list needs to be in certain order in your form (in drop-down list box) ...you'll have issue because your...
  • Blog Post: Use dynamically created InfoPath form instance to pre-fill form

    If you want to pre-fill InfoPath form before user gets his/her hands to it... you have two ways to do that: Call Web Services from InfoPath It normally takes quite long Dynamically create InfoPath form instance Fast and there isn't any limitations where to get data Both methods have been mentioned many...
  • Blog Post: Dynamically create static Excel files for Excel Service

    Excel Services is pretty nice for displaying Excel files over the network. But if you're developing Excel Services solution for the first time you might first think of the limitations or something that forces you to build your overall solution in certain way. So I thought I'll write little bit about...
  • Blog Post: Adding own custom web service to SharePoint

    I posted awhile back about InfoPath and Web Service data connection and I got question about using own web services in SharePoint (or at least I interpreted it that way :-). I tried to describe idea to have own custom "proxy" web service that would do all the necessary stuff inside SharePoint so that...
  • Blog Post: MOSS: Backup and restore and missing Timer job definitions

    If you have your SharePoint application running on Server1 and you decide to move it to Server2 with backup and restore... you'll (may) end up having application at the Server2 that doesn't have all the necessary timer job definitions. There is however way to get those timer job definitions back but...
  • Blog Post: Failed to determine definition for Feature...

    I was working on SharePoint case and found myself staring at the logs... again :-) I found 11 lines with " Failed to determine definition for Feature with ID ..." and it was repeating quite often. And that error is something new for me... And if you have stared SharePoint logs for an year that's really...
  • Blog Post: How to install Windows SharePoint Services 3.0 Tools to XP or Vista

    I got email from Philip Edney with a hint that how you can install Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions (VSeWSS) for none-Windows 2003 server OS. Of course since that's not supported you'll have to do small registry hack (but that's what developers do :-): [HKEY_LOCAL_MACHINE...
  • Blog Post: ISA + MOSS: makes life a lot easier for FBA

    I have explained this same story couple of times so I thought that I'll write shortly this to my blog and refer to it whenever needed :-) ( Side note: I have discussed this topic with my colleagues and I think that we share thoughts on this one) Web is full of instructions how to set up Forms Based Authentication...
  • Blog Post: Free the SPWeb!

    Every SharePoint developer knows that you need to free resources that you have used... like SPWeb (and others too!). Most often freeing up the resources are easily managed with the nice using -statement like this: 1 2 3 4 5 6 7 using ( SPSite site = new SPSite ( "http://localhost/" )) { ...
  • Blog Post: Adding users to SharePoint dynamically at first request after authentication

    That title says it all! Well I was working on case where SharePoint was configured to use external authentication. This external authentication was hosted outside SharePoint and it could be used by many other services too. End users of SharePoint would notice redirection to this external service when...
  • Blog Post: Starting workflow from eventhandler

    I just wanted to make quick post about starting the workflow from code. You might want to use this stuff in your eventhandlers for starting workflows automatically in some weird scenarios. But no more explaining since this is pretty straightforward. Here's the code: 1 2 3 4 5 6 7 8 9 10 11...
  • Blog Post: Feedback web part

    A while back I got a question that how would I solve "feedback feature request" for my customers case (platform was MOSS 2007). Idea is that from every page of the portal you could go and give feedback. And if you do give feedback it would be important to know that what was the page that "initiated"...
  • Blog Post: Adding functionalities to pages by inheriting PublishingLayoutPage

    If you have worked a lot with MOSS you probably know how to make new page layouts. But if you create new page layouts you might sometimes wonder that how could I add some common functionalities to my page layout pages. One example could be localization. You have decided that Variations isn't the way...
  • Blog Post: MOSS and Solution deployment: Your Features folder is missing some files

    Have you done nice Feature (or set of Features) that you want to deploy using SharePoint Solution deployment? Great. Have you already deployed your newly created solution? Great. Are you missing files from your features folder: TEMPLATES\FEATURES\ YourCompany.YourFeatureName ? You only have two xml files...
  • Blog Post: MOSS and EventHandler deployment with features + Cannot insert the value NULL into column...

    I posted earlier about my nasty experiences with site column deployment. This time I was working with eventhandlers and had interesting error message that I thought I'd share to you. I had created a pretty simple eventhandler and it was working fine. But then I needed to make few modifications and needed...
  • Blog Post: MOSS and Solution deployment: Problems with the cab file

    Solution deployment is really powerful way to deploy your customization to the customer environment. However I encountered small issue that you need to be aware. Again I had working solution that I have installed and upgraded few times. But when I added a lot of new files to my solution I ran into problems...
  • Blog Post: MOSS and Site column deployment with features + missing curly brackets in guids

    I had nasty expience with Site column deployment this week and I thought I share it with you. I was doing normal Site column deployment with Features. It's nothing new and it's well documented in many places. I have done it before and I thought that it would be piece of cake. So I did my Feature.xml...
Page 1 of 1 (25 items)