0
votes
1answer
48 views

Cleanest way to do multiple response.redirects without page refresh?

I am trying to develop a simple web part in VS that will pull data from a text box, construct a URL with the data and open a new tab using OnClientClick="aspnetForm.target ='_blank';" and using this ...
0
votes
1answer
40 views

Distinct values of SPFieldUserValue List

I'm working with visual studio 2010 and I have this list: List<SPFieldUserValue> directeursDelegues = (from SPListItem agence in webSite.Lists[agenceGuid].Items ...
0
votes
0answers
7 views

Change the Type of a deployed ListTemplate

We need to change the Type attribute of some deployed and in use ListTemplates because of the problem discussed here. What is the correct way to do this without losing data?
0
votes
1answer
41 views

'Alert Me' does not work on custom lists

We have several custom lists which are all deployed using WSPs along with some web parts to a SharePoint 2010 installation. Every time a user clicks on the 'Alert Me' button on a custom list or an ...
0
votes
0answers
26 views

Timer Job - Deploy WSP from VS2010 Vs Management shell

Help me to understand about deployment of Timer job from Visual studio 2010 and management shell . Software: Sharepoint2010 Visual Studio 2010 .NET 4.5 My Experience: I wrote timer job with ...
1
vote
0answers
22 views

SharePoint 2007 solution in Visual Studio 2010

I have a question regarding building a solution in visual studio 2010 for SharePoint 2007. So basically I have a SharePoint 2007 and to maintain it from central location, I would like to move the ...
0
votes
0answers
42 views

Getting error of Object reference not set to an instance of an object while trying to Package

I am using Visual Studio 2010 Ultimate and I have a solution with two SharePoint projects. These projects are dependent on two SP DLLs - Microsoft.SharePoint.dll and Microsoft.SharePoint.Security.dll. ...
1
vote
2answers
77 views

Debugging sandboxed solution?

I know this is a novice question, but my sandboxed solution works on one site and not the other. How/where can I actually see the errors generated by some sort of report? Debugging simply takes me to ...
0
votes
1answer
80 views

Pass data from custom asp.net form to workflow (SharePoint 2010)

I've got a state-machine workflow with custom instantiation and task asp.net forms. My custom task form is pretty easy, it just shows the instantiation data and let the user approve or reject it. If ...
0
votes
3answers
163 views

Collapsible asp.net control for SharePoint2010

I have a custom Instantiation form with a lot of CheckBoxes in SP2010. Now I've to put the CheckBoxes into different categories which should be collapsible, like you can see in the picture below. Is ...
0
votes
1answer
36 views

Deploy a Workflow without changing the Content Type ID everytime

I have a SharePoint 2010 State-Machine-Workflow with a custom Content Type. Everytime I want to deploy the Workflow to my test SharePoint Server I've to change the Content Type ID because it throws me ...
1
vote
1answer
77 views

How can I create a custom task form in Sharepoint 2010?

Is there an easy way to create a custom task form with asp.net/Visual Studio for Sharepoint 2010? I worked with WSS3 before, where you can easily add the form URL to the workflow.xml file but in ...
0
votes
2answers
77 views

How to determine custom application page URL independently of the environment/farm?

I have deployed a custom ribbon button and when a user clicks it, I open a custom application page - I have deployed the page to _layouts mapped folder. To open the page (with JavaScript), so far I'm ...
0
votes
1answer
36 views

how to create a visual web part in the following format [duplicate]

I am a newbie to Visual Studio, it would be great if someone could provide me with an idea how to create the webpart in the following format Thanks
0
votes
0answers
12 views

How to create web setup

I have a multiple of import SharePoint Solution Package (.wsp). After I importing the .wsp file into vs2010, how can i create a web setup in vs2010? May I know what is the step how to create web ...
0
votes
0answers
14 views

Workflow with EF Does not Execute Properly When Called Programatically. The specified named connection is either not found in the configuration

I have a WF that is using EF 6.0 that needs to be started by another workflow. If I call the WF manually, it runs without any problems and an entry is added in the database. The problem is when the ...
0
votes
0answers
57 views

Sharepoint 2010 Mobile Adapter - Type cannot be found in the assembly

I am attempting to create a mobile adapter for a custom web part by following the MSDN instructions. I've created the web part, which displays a certain list in a branded view. Now I would like this ...
0
votes
0answers
101 views

Save Conflict error on task when saving task

The idea of the task lifecycle is this: CreateTaskWithContentType: Set all the task properties OnTaskCreated: Set unique permissions for the task OnTaskChanged: Complete task and continue workflow ...
0
votes
1answer
394 views

Create a SharePoint 2010 BCS connection to Web Service with Visual Studio only

While I have been using SharePoint for quite some time I have not used BCS at all (except way back when I took some training). What I am looking for are steps to create a BCS connector to an external ...
1
vote
1answer
602 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
0
votes
4answers
2k views

How to get count of list items in SharePoint 2010 if count is more than List View Threshold value?

I have more than 10000 items in my list. I have default List View Threshold value as 5000.I want to get the count of items programmatically. How can I get the count? I think here ...
1
vote
1answer
826 views

Correct Way to Reassign Workflow Tasks in Visual Studio WF

What is the correct way to programmatically reassign a task to another individual in a SharePoint 2010 custom workflow? We do not want to simply change the person to whom the task is assigned although ...
0
votes
0answers
39 views

Custom Action works fine on default view but not other?

I have a list. Over in Visual Studio 2010, I have a customized replacement for the "Delete Item" button in the Ribbon, my customized version fires off a workflow, and some other stuff. In order to get ...
0
votes
1answer
89 views

How do I get a current content from URL field (or title field) in a workflow programmatically and convert to string?

I get a wrong value from field. private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) { SSPFieldUrlValue fieldValue = new ...
1
vote
2answers
75 views

Best practice for taking SharePoint data and putting it into an SQL database?

I need to do some reporting across site collections. In order to do this I intend on writing a service layer that crawls SharePoint and puts information about document libraries and files into an SQL ...
0
votes
0answers
356 views

Exception has been thrown by the target of an invocation while adding web part

I am adding an XsltListViewWebPart from code behind and I am getting the above mentioned error. My code is: static void Main(string[] args) { SPSite site = new ...
0
votes
1answer
360 views

How to add CCQWP programmatically in SharePoint 2010?

I need to add the Content Query Web Part programmatically in SharePoint 2010. I exactly don't know how to do that. I searched over the internet but not find the exact post anywhere. I got this post. ...
0
votes
3answers
565 views

Error occurs while deploying cutom timer job SP 2010

I am creating timer job in which the list item is added every 5 minutes. My class file which inherits SPJobDefinition is : public class MyTimerJob : SPJobDefinition { public MyTimerJob() : ...
0
votes
1answer
129 views

Customize view of document library

I want to order the view of the document library in the descending order it was created. My code for doing such is: static void Main(string[] args) { string webApp = "http://bipc11:1234/sites/"; ...
1
vote
0answers
108 views

VS 2013 not deploying silverlight solution in sandboxed on stand alone dev: SPUCWorkerProcess not running error

I have a stand alone machine with SP2010 set up on Windows Server 2008 R2. Office, SPD, VS2013, Expression, etc. There is no AD or anything as it is stand alone installation using local accounts and ...
0
votes
1answer
326 views

Using custom SPRoleType

Environment: SP2010 Enterprise, VS2012, c# Server-Side, full control of environment I'm trying to assign unique permissions to an SPItem (a folder in a document library) through a console app on the ...
2
votes
1answer
177 views

Hiding Fields in Forms in List Instances Based on List Definitions

I have a list definition that I've created in XML, and multiple list instances based on that definition. On the base list definition I am hiding certain fields from the new item form in the list ...
2
votes
2answers
207 views

Deploying Site Solution

EDIT to add more detail about what I'm trying to do: This is the first SP project I've worked on, so I might be making a very basic mistake with how the project is set up. The project consists of a ...
0
votes
2answers
2k views

Custom Error Message for Event Receiver in SharePoint 2010

I want users to upload the .doc files only in the document library. To do so, I have developed an event receiver in Visual Studio 2010. My code is as follows: public override void ...
0
votes
1answer
480 views

Error occurred in deployment step 'Add Solution': A feature with ID xx already exists

I am getting this familiar error while trying to deploy my solution through visula studio. Earlier I used powershell scripts but this time I am little skeptical. Here is the scenario: I am Working on ...
0
votes
1answer
967 views

Create a WebPart Page in Visual Studio 2010

I have a project that will have a few components: Lists, WebParts, WebPart Pages and an Application Page. I know how to create and deploy all of the above using Visual Studio 2010 to a SharePoint ...
0
votes
1answer
71 views

Develop Custom List in VS2010 with checkboxes from another list

I am developing a custom list definition within Visual Studio 2010 for SharePoint 2010, I have ran into a problem with adding a field which will be choice and will use items from another list on the ...
1
vote
0answers
323 views

CreateChildControls() in Visual Web Part in SharePoint 2010 called twice

(x-post from http://stackoverflow.com/q/17065543/1943) I have a Custom SharePoint 2010 Visual Web Part which I've realized is calling the CreateChildControls() method twice. I've tried setting the ...
0
votes
1answer
92 views

Best way to update 200 items on a list [closed]

Situation in a VS2010/SP2010 site: List A with main items List B with subitems, having a lookup column that points to List A ID There are about 200 subitems for each item The Page where users edit ...
3
votes
1answer
468 views

Getting a “Content types that are available to this Document Set have been added or removed”

I am creating document sets through workflows. Edit: I just tested and I'm getting this message for manually created documents sets as well. Every new document set is showing the message: Content ...
0
votes
1answer
104 views

OnWorkflowItemChanged fire multiple times

I have been using a State Machine workflow (SharePoint 2010). Workflow design Main State: The Main State does not update the item. The Main State contains a OnWorkflowItemChanged. When the item ...
1
vote
1answer
117 views

Can not open the package designer in visual studio 2010

I can not open the package designer in a SharePoint project. When I double-click Package or when I right-click Package and then select "View designer" then the XML file Package.package is displayed. ...
0
votes
0answers
268 views

Not all changes apply after re-deploying solution (custom workflow action for SharePoint Designer)

currently I'm creating a custom workflow action for SharePoint Designer 2010. After the first deploy succeeded everything looked fine. But after that I changed several things and re-deployed the ...
1
vote
3answers
834 views

SharePoint 2010 development with Visual Studio 2012

What is the community recommendation regarding SharePoint 2010 development with Visual Studio 2010 vs. 2012? I am allowed to install 2010 Pro on my new machine or I may choose 2012 Pro. There may not ...
0
votes
1answer
109 views

How to create site collection by using feature?

I am trying to create a feature which creates a site collection using a custom/ootb template in a specified application pool. My question is is this possible if yes then how what i'm trying to do is ...
1
vote
2answers
334 views

How can the deployment of a feature (or element) be made dependent on the SharePoint version (2010/2013)?

I have a solution (deployed in the Sandbox) that declaratively creates CustomActions (menu items). It works fine in SharePoint 2010 and 2013, but we don't like the look in 2013 so I'd like to exclude ...
0
votes
1answer
63 views

Not working following code

webtemp file <?xml version="1.0" encoding="utf-8"?> <Templates xmlns:ows="Microsoft SharePoint"> <Template Name="MyReed" ID="10001"> <Configuration ID="0" Title="MyReed" ...
1
vote
1answer
657 views

How to deploy SharePoint 2010 Sandbox solution on SharePoint 2013 Office 365

I have developed a SharePoint 2010 Sandbox solution in Visual Studio 2012 which has been deployed on Office 365 SP2010. The solution contains custom lists, visual web parts and workflow activities. I ...
0
votes
1answer
435 views

Different View for Top-Level folder and folders of a Content Type (programmatically)

I have a Document Library where I add Folders of a specific Content Type. Inside these folders I can upload documents. I would like to have different Views for both. I found a manual solution as ...
2
votes
1answer
286 views

Overriding the Default Upload.apx form for a Document Library

I am a total newbie to SharePoint but I have been given the task of driving the roll out/Proof of Concept that SharePoint 2010 is capable of providing what our company wants. One of the main ...