Questions tagged [visual-studio]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
107 views

Deploying add-in to SharePoint 2016

I am trying to deploy an add in to SharePoint Server but keep getting this error: "A timeout has occured while invoking commands in Sharepoint host procecss" Note: I am using vs2017 and window ...
4
votes
2answers
77 views

Connecting to sharepoint server error

I am currently developing a sharepoint webpart and I need to be connected to our remote Sharepoint site for access to certain variables and functions All is fine and well for some time, I would ...
4
votes
2answers
126 views

Is SharePoint throttling my load test?

I have a Visual Studio 2015 load test that I am running against SharePoint 2013. Once the test increases to around 100 users, page response times increase dramatically. Once the load test hits 1000 ...
4
votes
1answer
136 views

SharePoint 2013 Load Testing

All I am sure this topic has been discussed in a few occasions, but I am still unsure what route I should take. I need to prove that our sharepoint farm is performant enough for x users. I started ...
4
votes
1answer
3k views

How to add ribbon to application page by visual studio?

I have created one application page and deployed that.But ribbon is not appearing at the same page? Any guesses or solution for this?
4
votes
2answers
2k 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 ...
4
votes
1answer
2k views

How to create a lookup field that has a list column picker

How would I be able to create a list field in VS that would be a lookup to select columns from any list? I would preferably like to have something like the PickerTreeView.aspx, but instead of ...
4
votes
1answer
3k views

Why won't my site column deploy from an elements file?

See Can site columns be deployed in sandboxed solutions? for background on this. I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
4
votes
1answer
697 views

Use Visual Studio 2010 To Create SandBoxed Site with Content

I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files. My ...
4
votes
1answer
3k views

Unable to Edit Web Part Properties in Web Part Zone in 2013

I have a custom page layout that I have designed using Visual Studio. Within it I have several web part zones and I have a zone where I would like users to be able to edit the properties of the web ...
4
votes
1answer
2k views

Creating an Approval workflow based on the list values using visual studio 2010

I have a list with the company name, business process and workflow initiation. The Business Process could be Purchase Order/ Leave Request. Workflow Initiation is a radio button which could be ...
4
votes
1answer
651 views

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

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 ...
3
votes
5answers
18k views

How to read a file from a folder in _Layouts?

I have a file that is in a the mapped folder "Layouts" in my Visual Studio project. I would like to read the contents of this file but I have been having some trouble accessing it. What I have tried:...
3
votes
2answers
5k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
3
votes
3answers
9k views

How to change default VisualWebPart name

I am new to SharePoint 2010 development and just created a VisualWebPart in Visual Studio 2010 but it added the webpart as "VisualWebPart1". How do I change the default name of it and make it "...
3
votes
2answers
834 views

Setting up a development environment

I am trying to learn how to develop web parts and custom solutions for SharePoint 2013. I am running into issues in building an environment suitable for development. I have installed VS2015 along ...
3
votes
4answers
569 views

Improving SharePoint 2010 performance in a VM

I have created a virtual machine with windows server 2008, Visual Studio 2010, and SharePoint 2010 for development and testing. The machine is configured in VMWare with 40gb hdd, 2gb ram, and 4 ...
3
votes
2answers
130 views

SharePoint Visual Studio Development

I need to understand the best practice for developing SharePoint solutions for sites that exist already on the production server. I am currently trying to create a visual webpart for a list that ...
3
votes
3answers
245 views

Possible to have an administration page for a custom type?

I've created a custom type and I would like to have a custom administration sight where a few global settings can be defined. I've done a bit of looking around but haven't found anything that shows ...
3
votes
1answer
4k views

How do I retrieve a user's LogIn name through the Created By column of a specific item in a document library

Created By Field Returns the following: 1073741823;#System Account I want the following without string manipulation (i.e. without using substring to remove all of the characters before ";#"): ...
3
votes
3answers
4k views

The <today/> tag not working in my CAML Query?

I am trying to retrieve the 5 most upcoming (with respect to expiry date) announcement list item "Title's".The query partly works but what it fails to do is include and display todays announcements as ...
3
votes
2answers
3k views

PowerShell Scripts

Does anybody know if there's some way to delete items from an SPList using PowerShell scripting? If is this possible, has anybody any good tutorial? Thanks!!!
3
votes
2answers
334 views

Visual studio retracts and reinstalls my features, can I tell it to just update?

It appears Visual Studio 2010's out of the box functionality for Deploy retracts and installs my features. Can I tell it instead to perform an update-spsolution instead of removing the entire thing? ...
3
votes
3answers
4k views

Unknown server tag 'asp:ListView' error with Sharepoint 2010 / .Net 3.5

I'm developing a visual web part in Visual Studio 2010 for sharepoint and i have a listview control embedded. I keep getting this error message in runtime even though I made sure it's namespaces are ...
3
votes
2answers
766 views

Visual studio 2015 debugging sharepoint 2013 webpart extreme slow and will hang always

I'm trying to create a webpart for sharepoint 2013 using visual studio in C# language. I'm developing the webpart on the sharepoint server cause I don't have office development kit on my local ...
3
votes
2answers
5k views

Retrieve data from Sharepoint list to ASPX page

I have a sharepoint list named Products with the following columns: ProductID Name Price. In ASPX page there are 3 text boxes that will hold the data for each corresponding column as shown below: ...
3
votes
1answer
872 views

WebPart do not load a reference dll (RazorEngine.dll)

I have created a sp 2013 webpart. Inside this webpart I am using the RazorEngine.dll. It is included by NuGet and the solution builds. when I deploy and add the webpart to the page I got this error: ...
3
votes
3answers
2k views

Update Feature automatically

I have developed an update for a SharePoint 2010 solution. This update defines some upgrades for some of the included features (the upgrade are managed via the new FeatureUpgraded receiver event). I ...
3
votes
2answers
5k views

How to delete site columns, deployed via feature (not visible in Sharepoint UI)?

Well it seems like this is a problem some people are having, but I can't seem to find the definite solution. I deployed some Site Columns to Sharepoint using a feature, let's go with the following ...
3
votes
1answer
436 views

How to display a RDLC report to SharePoint 2013?

I have created an RDLC report with visual studio and it looks like this: But the problem is that I don't know how to publish it in SharePoint page. So how can I display this report to SharePoint Home....
3
votes
2answers
193 views

Error in CAML query

Have I written the below CAML query correctly? Am I missing anything? I am encountering an error on below line of code. SPQuery spQuery = new SPQuery(); spQuery.Query = "<Where><And><...
3
votes
1answer
3k views

SharePoint Web Part Development - Server Side vs Client Side

I am developing a web part in SharePoint 2010. I consulted with someone well versed in SharePoint development who told me that, beginning with SP2010, server-side code is discouraged. The problem is ...
3
votes
3answers
3k views

How do I enable Intellisense sp.js in VS 2012. TILT

No matter what I try, I keep on getting the yellow triangles with the message "Intellisense was unable to colmplete an accurate...". For example when I type "SP." then among others ClientConetext does ...
3
votes
1answer
2k views

Customize Form (new wiki page)

Firstly, I would like to create a section for news in SharePoint, for this I use a wiki library, so far, it's good. Everything works fine, but I'd like to change is some point for my needs. when a ...
3
votes
2answers
977 views

SharePoint 2010 — Visual Studio Project Structure

What are your project structures for sharepoint projects. For example my simple structure is: Think of a project named MyPortal MyPortal.sln --MyPortal.Branding (Custom master pages, page layouts, ...
3
votes
1answer
191 views

Is there a way to us CKS Dev Tools to find undisposed of objects?

I thought I had used CKS Dev tools to display warnings about undisposed of objects in Visual Studio in the past, but we just stood up a new server and I can't seem to find a way to do it. Can it be ...
3
votes
1answer
513 views

Why Is My Content Type Replaced With a List Instance Detail When I Deploy My Project in Visual Studio, but Not When I Deploy it Manually?

I'm doing something that I think is pretty typical. I've created a content type, descended from Document, to go into a document library, like so: <?xml version="1.0" encoding="utf-8"?> <...
3
votes
4answers
634 views

Possible to modify the contents of a WSP through code?

I have a base WSP and I would like to create an automated process to update one of the files that it contains (an XML file). Is there anything in the Object Model that would allow me to do this? ...
3
votes
1answer
359 views

Structure of a WSP file

After you save a site as template you get a WSP file that you can then import in VS and tweak it as you want. I did this for a site today and had a lot of things in the WSP after I decompressed it, ...
3
votes
1answer
216 views

Removing page from content database via feature deactivation

I deployed page via module. Module is deployed via feature (method FeatureActivated). After that process page is deployed in content database. What I need is to be able to delete (remove) page from ...
3
votes
2answers
7k views

Updating a List Instance

I have a List Instance in Visual Studio. However, every time I deploy the solution, Visual Studio says there is already a list instance with the same URL on the site collection and it needs to delete ...
3
votes
1answer
889 views

Time conversion via ClientContext

In native SP list I have item with datetime field which shows 24.1.2010. 00:00:00. When I try get it with ClientContext, I got that item field with the time 23.1.2010. 23:00:00. I understand that ...
3
votes
2answers
715 views

Best Practices for updating Content Types in SharePoint

Recently, we came across a severe problem in production farm with the Content Types. I would like to explain the background of this problem first. We have nice working feature for Content Types ...
3
votes
4answers
12k views

Error message: “A sharepoint server is not installed…”

Im trying to develop a Visual Web Part using Visual Studio 2010 RC. I have not installed SharePoint 2010 locally on my developer box, but I have installed it on my Windows 2008 Server VPC. When I try ...
3
votes
1answer
1k views

Error occurred in deployment step 'Activate Features': Failed to load receiver assembly

I get frequently this error when i try to update my solution using VS deployment method in the same environment , at first itry with recycling pool , retract solution from GAC and other cleaning ...
3
votes
2answers
3k views

Getting a file not found error when I try to check in file using web services?

I am using the following code to create a file and then check it in: //Some other code above. The following line works fine. createdItem = ceoList.UpdateListItems("Pages", newItem); //But this line ...
3
votes
3answers
587 views

jquery projects and visual studio best practices?

Just curious how others are handling their jquery related solutions. It's obviously very easy to add a Content Editor web part with a content link to a source file. That file could have your Jquery/...
3
votes
2answers
1k views

Event Reciever on specific list in SharePoint 2010 working in dev environment but not in production

I have created an event receiver (on item adding) using VS2010 in SharePoint 2010 targeted to specific custom list which is a globally deployed in the production environment. This event receiver ...
3
votes
1answer
132 views

Move an Application Page from WebApplication to Central Administration

I've made an Application Page (derived from LayoutsPageBase) and it's showing in the WebApplication Settings correctly. Now, I need to move it to the Central Administration level. Must I change my ...
3
votes
1answer
162 views

Custom Interface vs SharePoint Interface

I am not a SharePoint Developer, but I have been assigned some tasks. Therefore, I have had to put my hands on it unfortunately(?). :) We are currently evaluating SharePoint to retire 5-6 tools which ...