Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Pedro Serrano - Thursday, December 13, 2007
Blog 'till you drop
 
 Thursday, December 13, 2007

Today we were getting this error while trying to start one of those out-of-box Approval workflows: Failed on Start .

After much pain and trial-erroring, we finally got it working thanks to this post we found online:

«...
Changing the identity of the application pool to a user with administrative rights can cause the workflow to “fail to start“. If this sounds like something you've done, try changing it back to network service and try running the workflow again. (worked for me)
...»

Thanks to Raghu Iyer for posting a solution ;-)

12/13/2007 4:14:50 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]   SharePoint  |  Trackback
 Sunday, December 02, 2007

If you ever want to check if a document library item's author is the current user, here's the code snippet on how to do it:

SPFieldUserValue authorUserValue = new SPFieldUserValue(myWeb, myItem["Author"].ToString());
if (myWeb.CurrentUser.LoginName == authorUserValue.User.LoginName)
{

// your code will go here
}

Hope this takes away pain from anyone trying to use GetByID ;-)

P.S.: sorry all of you I haven't yet replied to your emails - I've been on the road and jumping airports a lot, so life is kinda hectic which is making it hard to keep up with my mailbox.

12/2/2007 2:30:56 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]   .NET | SharePoint  |  Trackback
 Saturday, November 10, 2007

Hi everybody!

Please vote for our solutionCaveDigital Board Meeting 2007, Town Hall Edition - for Council Meetings on the Clean Technology vertical for the Ingenuity Point contest.

Our solution renders Council Meetings paperless, thus saving a LOT of trees per year :-)

Plenty of SharePoint, Windows Workflow Foundation and Office 2007 ;-)

Thanks for your support!!

11/10/2007 1:01:43 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]   CaveDigital | Office | SharePoint  |  Trackback
 Thursday, October 25, 2007

You're getting «HRESULT: 0x80070005 (E_ACCESSDENIED)» when you try to create subwebs using a custom site definition programmatically?

For a quick work-around, just add this to your Assembly.info.cs file, re-compile and re-deploy:

using System.Security;

...

[assembly:AllowPartiallyTrustedCallers]

 

Signing and making your code trusted should also work, but if you're on a tight spot, this code will probably get you some air to breath :-D

Hope this helps someone out there ;-)

10/25/2007 1:04:45 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | SharePoint  |  Trackback
 Thursday, October 11, 2007

Florin just emailed me requesting to help on letting the word out on with the solution for this problem he was facing, so here it is, on his own words:

«If you upgrade from WSS 2.0 to Wss 3.0 and configure WSS 3.0 with anonymous access, you might get the following error while trying to create websites:

Error: File not found.

 

Looking at the Verbose Logfiles, you might get the following Error message:

Application error when access /_layouts/newsbweb.aspx, Error=A aplicação Web não foi encontrada em http://www.myportal.com/blogs/2a.

Verifique se escreveu o URL correctamente.

Se o URL tiver de fornecer conteúdo existente, o administrador do sistema poderá ter de adicionar um novo mapeamento do URL do pedido à aplicação de destino.

em Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)

em Microsoft.SharePoint.Administration.SPNativeConfigurationProvider.LookupSite(String requestUrl, Int32 iisInstanceId, String& siteUrl, Int32& zone, Guid& appId, Guid& siteId, Guid& databaseId, String& databaseServer, String& databaseName, String& databaseUsername, String& databasePassword, Boolean& useHostHeaderForSiteName) ........

 

Resolution:

 

1. ISA 2004 Web Publishing Rule (additional configurations over  the default rule):

    A. Forward the original host header instead of the actual one

    B. Requests appear to come from the original client

 

2. WSS 3.0 Configuration:

    In SharePoint 3.0 Administration page -> Operations -> Go to Managed Paths (Mapeamentos de Acesso Alternativos)

    Set the Internet Url equal to the public FQDN of the website used by ISA 2004 to publish the your portal, e.g. www.myportal.com.

 

3. IIS Configuration:

    Add the public FQDN as Host Headers in IIS for the website extended with WSS 3.0, e.g. www.myportal.com.

 

I hope that this can help someone.

 

Greetings!
Florin Zamfir»

Cool, eh? ;-)

10/11/2007 6:25:09 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   SharePoint  |  Trackback
 Tuesday, August 21, 2007

Both me and Daniel Pereira just did 70-630. Instead of bragging about it, let's just say it's done, with style ;-)

8/21/2007 4:24:44 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | CaveDigital | InfoPath | Office | SharePoint | SQL Server  |  Trackback
 Sunday, July 29, 2007
JOIN THE BEST

string[] chrMsg = new string[] {
"C" ,"A" ,"N" ," " ,"Y"
,"O" ,"U" ," " ,"C" ,"O"
,"&#68;" ,"&#69;" ,"&#63;" ,"<BR>" ,"&#83;"
,"&#101;" ,"&#110;" ,"&#100;" ,"&nbsp;"
,"&#121;" ,"&#111;" ,"&#117;" ,"&#114;"
,"&nbsp;" ,"&#67;" ,"&#86;" ,"&nbsp;"
,"&#116;" ,"&#111;" ,"&nbsp;" ,"&#114;"
,"&#101;" ,"&#99;" ,"&#114;" ,"&#117;"
,"&#116;" ,"&#97;" ,"&#109;" ,"&#101;"
,"&#110;" ,"&#116;" ,"&#111;" ,"&#64;"
,"&#99;" ,"&#97;" ,"&#118;" ,"&#101;"
,"&#100;" ,"&#105;" ,"&#103;" ,"&#105;"
,"&#116;" ,"&#97;" ,"&#108;" ,"&#46;"
,"&#99;" ,"&#111;" ,"&#109;"
};

7/29/2007 1:02:20 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | CaveDigital | Office | SharePoint | SQL Server  |  Trackback
 Friday, July 20, 2007

Three or four weeks ago I did this during a weekend (yes, had no sleep...)

Basically, I integrated the Timeline from SIMILE (Semantic Interoperability of Metadata and Information in unLike Environments) into a SharePoint web part which consumes event itens from a SharePoint Calendar list.

I really fancy on how I might be using this in the future :-D

7/20/2007 5:47:03 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | CaveDigital | SharePoint  |  Trackback
JOIN THE BEST CAN YOU CODE?

As our company continues evolving, we're opening more coding slots on our ranks.
This said, we're looking for ASP.NET 2.0 Web Developers for projects in Portugal (Lisbon) using:

  • Microsoft Office SharePoint Server 2007,
  • SQL Server 2005,
  • ASP.NET 2.0,
  • C#,
  • XML and webservices,
  • Office 2007,
  • ... ;-)

   Speaking, Reading and Writing Portuguese is a MUST HAVE.
   Availability for travelling is a MUST HAVE.

For how long will you stay on the side-lines? ;-)

Send us your CV, past work screenshots and details we should know about, and let us know why (in your opinion) we should pick you to join our team :-D

 

7/20/2007 5:01:56 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]   .NET | CaveDigital | InfoPath | Office | SharePoint | SQL Server  |  Trackback
Copyright © 2008 Pedro Serrano. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: