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.

Friday, September 25, 2009

Microsoft.SharePoint.SPException: Save Conflict

Microsoft.SharePoint.SPException: Save Conflict Microsoft.SharePoint.SPException: Save ConflictYour changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.

If you get this error you will want to read this article on the solution:
http://www.theartofsharepoint.com/2007/05/microsoftsharepointspexception-save.html

Hopefully Microsoft fixes this issue in 2010. You shouldn't have to re-get the web pointer and list pointer and tell the list you want to allowunsafeupdates for every item you want to update.

If you have any tips, tricks or links to articles you would like shared with the guild please email them to susan@clinchportal.com or post them as a comment.

Tuesday, July 14, 2009

Interesting Article on using sharepoint webcontrols properly

I came across this article and found it extremely useful. It eliminated many lines of code
by using this simple method of rendering the proper control for a field.

http://www.hezser.de/blog/archive/2007/04/29/how-to-use-the-sharepoint-web-controls.aspx

If you have any tips, tricks, or resources you would like to share with the group either comment on a posting or email Susan Fischer at susan@clinchportal.com and we will post them.

Monday, June 8, 2009

Code blocks are not allowed in this file.

I got this error then came across this article to fix it. Sharepoint turns off code blocks by default.

This link explains the whole story:
http://blogs.msdn.com/kaevans/archive/2007/04/26/code-blocks-are-not-allowed-in-this-file-using-server-side-code-with-sharepoint.aspx

The fix is to add this web.config key. In the configuration/SharePoint/PageParserPaths configuration section add something like this:


VirtualPath="/pages/test.aspx" CompilationMode="Always"
AllowServerSideScript="true" />


WARNING: There is a reason why Sharepoint does this so only use it when you need it. It can be dangerous to give designers access to the file and accidentally have them edit your code.

Wednesday, May 27, 2009

Setting up Sharepoint for Silverlight web parts

When trying to install Silverlight on Sharepoint 2007 or wss 3.0 its not an easy task.
The first step is following the web.config tweeks in this article.

http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html

The second step is copying the System.web.silverlight.dll into either the bin folder for the site or registering it with the GAC.

The third step is making sure the scriptmanager is loaded properly. Here is an article that will help you place it in the right spot.

http://blogs.prexens.com/Lists/Posts/Post.aspx?List=7a299699%2Df8da%2D4559%2D920c%2Dbda481608691&ID=3

If you have any tips, tricks or resources you would like to share with the group either post them as comments or email them to Susan Fischer at susan@clinchportal.com and we will post them.

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.

Wednesday, March 18, 2009

Shared Service Providers Part 1

Shared Service Providers

I hear a lot of questions and comments about shared service providers which I hope to address in this 3 part blog. In this “mini series” we will cover everything you need to know to get started using the functionality provided by SSP (Shared service providers)

Today I will introduce you to SSP and the functionality they offer. Tomorrow I will cover the installation process and on Friday we will cover some common pit falls that might come up and how to fix them.

So what is a SSP?

Basically SSP hosts a combination of services that we would want to share across the server farm(s).

SSP itself is a independent component of MOSS 2007. It does not get installed automatically when you first install MOSS as it needs special planning and configuration. Each farm should have at least one SSP but can have many if the situation calls for it. In my 5 years of Sharepoint development I have never had the need to create more than one SSP for my installation but I have heard stories and situations where you would need multiple ones. (A good example of this is a global installation with many farms).

The services that SSP handles includes

· Search

· My Sites

· User profiles

· Audiences

· Excel Services

· Business data catalog

· Advanced usage analyst reports

You will need an SSP Installed and configured to take advantage of any of these services

In all honestly if you have MOSS and don’t Have a SSP installed: you might as well be using SharePoint services 3.0 for your installation because you are really missing out on the meat and potatoes of MOSS

I had a client a few months back that was using MOSS2007 and was not utilizing a SSP infact they did not know what an SSP was. They called me in to figure out why when they typed in a serach term, SharePoint would return errors. The simple answer was you cannot use search without an SSP.

Once I explained to their developers what a SSP was and how they could use it they really stared to take advantage of all the services MOSS can provide.

That just about does it for part one. Please see below a list of references regarding SSP.

Please feel free to email me at any time with any questions or comments on Sharepoint,

mccannblogs@gmail.com

McCann Out