Visual Studio is an integrated development environment (IDE) from Microsoft.

learn more… | top users | synonyms (1)

0
votes
0answers
304 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
46 views

I can't find the markup for webpart properties in visual studio

I've created a custom web part editor but I don't know where to look if I want to find the markup for all the properties of my webpart inside visual studio. I mean I can create new controls on ...
1
vote
1answer
452 views

How do I create a Sharepoint hosted app for office 365 in Visual Studio 2013?

I've setup Visual Studio 2013 RC and a Office 365 developer site. I can create an app using Nappa and open it in VS from there. But if I create a Sharepoint hosted app project in VS and point it to ...
1
vote
1answer
1k views

How to solve "Type 'System.Web.UI.UpdatePanel' is not defined?

I'm using an update panel on a form to stop the page jumping and flickering when drop down lists etc are selected, I have enclosed the table which holds this inside of an update panel and a content ...
0
votes
1answer
338 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
1answer
75 views

wsp activation does nothing

I have created a site template, downloaded and imported my WSP into Visual Studio 2012, selected the needed lists and dependent columns. When I deploy to a new site collection from Visual Studio ...
0
votes
3answers
508 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
0answers
127 views

An object reference is required for the non-static field, method, or property 'System.Web.UI.Control.Controls.get'

I have created a farm solution inside Visual studio 2012, and i added the following code inside my user control :- namespace CustomSuiteLinksDelegate.ControlTemplates.CustomSuiteLinksDelegate { ...
0
votes
0answers
104 views

CreateTaskWithContentType Specialpermissions are set wrong

Okay, I'm using a statemachine workflow, and this type of task is used to reassign an item to a user, this can be done as many times as needed. So in the end, after the onTaskChanged, the workflow may ...
1
vote
4answers
1k views

How to enable site collection feature by default when deploying a visual webpart from visual studio?

I am making a visual web part in SP 2010 using visual studio 2010. I want it so that when I add and deploy my wsp file, it should by default keep the site collection feature activated for the web ...
0
votes
0answers
349 views

Custom Note Board or News Feed Web Part in SharePoint 2013

I have been Searching a lot on this particular topic but not able to find anything relevant. Can We Create a custom Note Board(Using C#) just like news Feed which can understand #Tags and "@" Just ...
1
vote
0answers
291 views

Create list/app on SharePoint 2013 Online using Visual Studio 2013 [closed]

I'm working on sharePoint 2013 Online. I try to create list using Visual Studio 2013. Only way that I have found is to create an app. But how I can build app without this address: and how to display ...
1
vote
1answer
867 views

SharePoint app get path of selected document

In a SharePoint app i have a custom action in a document library that navigates to an .aspx page. How do I get the full path of a selected document in that .aspx page? <CommandUIHandlers> ...
0
votes
0answers
39 views

Cannot modify page layouts in SharePoint designer

We have a SharePoint solution developed by a vendor that does not allow me to make open and save a page layout with SharePoint Designer with out the thing blowing up. What would cause this type of ...
5
votes
1answer
1k views

Importing a SharePoint 2013 workflow in Visual Studio

I'm creating a simple workflow in Visual Studio: I can deploy it, and it works. I then try to open it with SharePoint designer: However, the steps/activities/stages are missing. How come I'm not ...
1
vote
2answers
220 views

Access SharePoint 2010 List remotely from a WPF Client using Lists Web Service

I recently developed a WPF client application from my local machine to access a SharePoint 2010 List from a remote SharePoint Server. I thought that I should use custom NetworkCredentials object to ...
0
votes
0answers
138 views

GetListItems method from SharePoint Lists Web Service fails with a Soap Server Exception

I'm developing a MS Office 2010 Excel AddIn from a client machine which doesn't have SharePoint installed in it. I imported a Lists web service reference from a remote SharePoint server. I developed a ...
0
votes
1answer
111 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
107 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 ...
1
vote
2answers
650 views

Custom Workflow in Visual Studio e-mail issue “The E-mail message cannot be sent”

I have a workflow that I have created in Visual Studio 2010 for publishing to my SharePoint 2010 site. It's for a list I created and the workflow itself is pretty simple. A while loop that contains ...
0
votes
1answer
290 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 ...
0
votes
0answers
26 views

Feature is not deploying

I have created a new BDCS model in Visual Studio. VS created a new feature for this item. Several times this feature worked fine.. But it didn`t deployed twice. First time I deleted feature and bdcs ...
2
votes
1answer
170 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
348 views

How do i send user back to edit item dialog when event receiver comes back with an error

I am creeting an event reciever that ensure that my list has unique items based on two columns. If I find a duplicate I wish to do one of the following: display a dialog which states a duplicate has ...
0
votes
1answer
19 views

How to find feature including a specific element

this migth be a really easy question, but I could not find any solution for that. I'm using VS 2012 and want to find which features are using a specific element. Since I got lots of Features in my ...
2
votes
2answers
186 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
0answers
20 views

SharePoint Customisations Tab Missing

While follwoing an example for creating a site definition in a development environment, something strange was noticed. The SharePoint Customisations Tab in the New SharePoint Site page was missing. ...
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
19 views

Storing usersettings in sharepoint

I develop a SharePoint Farm Solution. I want to save the settings (like sorting of each grid) for each User. Is there a possible best practise to do this? Or is there the only way to use a ...
0
votes
1answer
429 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
868 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 ...
1
vote
1answer
55 views

Dynamically deploying branding (SharePoint 2010)

I'm developing a portal for clients in SP2010. Each client will have their own copy of the portal (a site collection) branding for them. Currently I provision all the branding artifacts to the style ...
3
votes
0answers
208 views

Default Webparts not rendering in a RichHtmlField on a custom page layout built in Visual Studio

I have a bit of a conundrum.I've built a Visual Studio solution for SharePoint 2010. It comprises of a custom master page and a bunch of page layout templates. I'veAssembled a master pageAssembled a ...
2
votes
2answers
3k views

Add custom NewForm.aspx with code behind to existing list

I have an existing sharepoint list generated by the sharepoint UI. I want to add a custom NewForm to this list that uses its own code behind, because I need to do a lot of stuff in the logic. As far ...
0
votes
1answer
67 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 ...
0
votes
1answer
176 views

XSLT list view webpart is not displaying data after adding view dynamically

I am customizing xsltlist view webpart using c#. I am able to get the results properly till I give the view name to the code. As soon as I give it it's not rendering the data. It's only displaying the ...
0
votes
1answer
57 views

Attribute 'DisplayTitle' is not a valid attribute of element 'WebPartZone'

I have a Microsoft.SharePoint.WebPartPages.WebPartZone declared on an application page: <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" ...
2
votes
2answers
52 views

custom pagelayout not available in pagelayout-list

I want to deploy a new custom pagelayout, like I did always done it before too. It will be deployed without any errors. It appears on the 12-directory in the correct folder. The feature is availible ...
0
votes
1answer
47 views

Remove WorkFlow from List Instance

I have Created one Document Library Definition.I have Created two Document Library Instance from that Definition.I had created one workflow.I want to associate workflow for only one Document Library ...
0
votes
1answer
260 views

How to Programmatically load a SPList from an Generic List…?

After running the program... I check my site and only see city5. I also have a console app that undoes all below. The foreach loop only works for the last item. Tying to load all 5 cities... ...
3
votes
3answers
269 views

Should this be a App or Farm Solution

I am new to SP2013 development. I have been asked to create the following for a client timesheet system: 8 custom lists (some of these link to each other) each list has 3 or 4 different views 2 of ...
1
vote
0answers
143 views

How can i extend the rich text editor behavior?

I want to extend the behavior of RteUploadDialog.aspx. When inserting a image in Rich Text Editor, i would like to upload the image to another server Image Library. I guess i could create an ...
1
vote
0answers
288 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
36 views

Sharepoint not Installed

Hello I'm trying to create a sharepoint 2010 project. I have Sharepoint as well as Visual studio 2012 installed on a VM, but when i go to create a new sharepoint project it tells me "Sharepoint not ...
1
vote
1answer
433 views

Application Page VS Template Not Generating Designer Files

I've been banging my head on this one. I've never used the auto-generated designer files in Visual Studio before (it's the OCD...), but I'm trying to use them now and I don't know if this is a known ...
0
votes
2answers
316 views

create list definition under sub site in site definition

I want to Create List Definition & List Instance under particular Sub-site.It can not been seen under site Collection.
0
votes
0answers
55 views

Error in adding post to a blog programmatically

I used linq to insert post into blog programmatically but when i clicked button error is appeared
0
votes
3answers
251 views

Sandboxed Solution doesn't work on production server

I am new to SharePoint development and recently get stucked by a problem of deploying own Sandboxed Solution that do a event receiver job (ItemAdded). It create a subfolders in top folder in a ...
0
votes
1answer
21 views

Create addin for Sharepoint

I want to know if there's a way to create an addin for Sharepoint similar to the Outlook Plugins you can develop in Visual Studio. I've seen I can create a "Web Part" but I don't think that's the ...
0
votes
2answers
1k views

Prevent SharePoint 2010 custom timer job to run on all web application

I have successfully created the custom timer job to send status mails on daily basis. For testing I set the minute scheduler on the job and deployed as Web Application Scope. The timer job is running ...