.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

List Event Receiver in Visual Studio 2010 Received "Save Conflict"

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :SharePoint
 

Here is the code. ItemUpdated was looped multiple times that caused the error shown below the code.  I Google the error and one suggestion was adding "if (properties.AfterProperties["vti_sourcecontrolcheckedoutby"] == null && properties.BeforeProperties["vti_sourcecontrolcheckedoutby"] != null)" will prevent the loop. The problem was both properties.AfterProperties["vti_sourcecontrolcheckedoutby"] and properties.BeforeProperties["vti_sourcecontrolcheckedoutby"] were always null. Any ideas?



View Complete Post


More Related Resource Links

Creating SharePoint 2010 Event Receivers in Visual Studio 2010 (Visual How To)

  
Watch the video and explore code as you learn to create and deploy an event receiver in Visual Studio 2010.

Sample: Creating SharePoint 2010 Event Receivers in Visual Studio 2010

  
Explore the code in this visual how-to article as you learn to create and deploy an event receiver in Visual Studio 2010.

Creating SharePoint 2010 List Definitions in Visual Studio 2010 (Visual How to)

  
Watch the video and explore code as you learn to create list definitions and list instances for SharePoint 2010 by using Visual Studio 2010.

Video: Creating SharePoint 2010 List Definitions in Visual Studio 2010

  
Watch this visual how-to video and learn to create list definitions and list instances for SharePoint 2010 by using Visual Studio 2010.

Event Receiver works through Visual Studio, but not when manually installing solution

  

Hi,

I have developed a custom library list definition and also added a event receiver for the ItemUpdating event of the list.

When deploying through Visual Studio 2010 by going to "Build - Deploy", the event fires perfectly when I add a file to the library.

But when manually installing the .wsp (like the client will), the event does not fire at all when I add a document!  Here is what I do to install the .wsp:

  1. Package the solution by going to "Build - Package"
  2. Install the package by running the following command in the "SharePoint 2010 Management Shell": Add-SPSolution -LiteralPath "PATHTOWSP"
  3. In Central Administration, under "System Settings", then "Manage Farm Solutions" - I deploy the WSP

Is there something wrong here?  Could it be a permissions issue, and how do I check?

Thanks!


Creating a list with non-english field names in Sharepoint 2010 from visual studio

  

Hi experts,

I created a sharepoint list instance in visual studio 2010 with English field names and not-english display-names.

when I deploy the solution and browse to the list I get non-readable field names. I tried to add
"xml version="1.0" encoding="utf-8" "
to the schema.xml file but didn't change anything. any clue?


Search and Destroy,,,

Video: Creating SharePoint 2010 Event Receivers in Visual Studio 2010

  
Watch this visual how-to video as you learn how to create and deploy an event receiver in Visual Studio 2010.

Sample: Creating SharePoint 2010 List Definitions in Visual Studio 2010

  
Explore the code in this visual how-to article as you learn to create list definitions and list instances for SharePoint 2010 by using Visual Studio 2010.

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

  
Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

  
This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

  
There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

  
As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

Code spelling checker extension for visual studio 2010

  
Building a spelling checker for source code as an extension for visual studio 2010.

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p

  

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

 

my current project references

 

 

 

i have a very annoying iis problem

iis server stops working until app pool is recycled

 

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

 


About Dynamic Data in Visual Studio 2010 / .NET 4

  

Ref.http://aspnet.codeplex.com/wikipage?title=Dynamic%20Data&referringTitle=Home&ProjectName=aspnet

Does anybody here have any pointers to screencasts, demos, webcasts for the latest enhancements in Dynamic Data as listed in above link? I'm repeating them here for ready reference :

 

  • EnableDynamicData method which enables Dynamic Data features in existing ASP.NET applications and DataSource controls
  • A new QueryExtender control, contained in the sample projects to simplify common data filtering operations. It supports a rich ASP.NET declarative query syntax that makes it easy to do things like search data for text or have filters based on ranges
  • A new Dynamic Data filter model that enables the developers to apply templates to pages just like field templates (including user defined filters)
  • New field templates of Email, URL and Enum columns
  • Support for inheritance in Entity Framework and Linq to SQL
  • Support for many to many relationships in Entity Framework
  • New Entity Templates which allow fine control over how an object is displayed and edited
  • DynamicHyperLink control for building links to tables and actions
  • Declarative support for D

What is F# in Visual Studio 2010

  

what is visual F#. and what is use of F#??


Thread Performance: Resource Contention Concurrency Profiling in Visual Studio 2010

  

Visual Studio 2010 includes new resource contention profiling features that help detect concurrency contention among threads. We walk through a profiling investigation to demonstrate how you can pinpoint and fix resource contention problems in your code.

Maxim Goldin

MSDN Magazine June 2010


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend