Are you a .NET Developer or Contractor interested in working with Sitecore or Dynamics CRM?

Apply for our Mentorship Program. If accepted, we will mentor you on Sitecore and provide you with project to help you build your skills and make some money at the same time. If you are interested send your resume with details on why you want to work with Sitecore or Dynamics CRM to: Chris Williams - chris.williams@techguilds.com or Dennis Augustine - dennis.augustine@techguilds.com We look forward to working with you to achieve your goals.

Wednesday, April 29, 2009

System.IO.FileNotFoundException error when opening SPSite outside IIS

PROBLEM:

When developing against the SharePoint object model in an application outside of IIS (service, console, Winforms etc..) you receive the error “FileNotFoundException” when creating an instance of the SPSite object.

ERROR MESSAGE:

System.IO.FileNotFoundException: The Web application at http:// could not be found. Verify that you have typed the URL correctly.
If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.\n
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)\n at Microsoft.SharePoint.SPSite..ctor(String requestUrl)\n

SOLUTION:

The user running the application needs to have the following permissions and group membership set:

· The user is a server farm administrator.

· The user has Read and Write permissions on the content database.

· The user is a site collection administrator.

· The user has permissions to access the Windows SharePoint Services site or the SharePoint Server 2007 site through which the code iterates.

REFERENCE LINK:

http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/5834679b-482b-4924-b881-fa2146840d05/

Monday, April 13, 2009

Sharepoint Custom Timer Jobs

For those working with Custom Timer Jobs here are a few links to help you out.The first two are right from Andrew Connell so you know they have what you need.

Creating Custom Timer Jobs in Windows SharePoint Services 3.0http://msdn.microsoft.com/en-us/library/cc406686.aspx#WSSCustomTimerJobs_DebuggingCustomTimerJobs

Creating Custom Sharepoint Timer Jobshttp://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx

Debugging Sharepoint Timer Jobs
http://sharethelearning.blogspot.com/2007/12/debugging-sharepoint-timer-jobs.html

If you have any tips, tricks, resources you would like to share with the guild please email them to Susan Fischer at susan@clinchportal.com and we will post them here.