Questions tagged [visual-studio]

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

Filter by
Sorted by
Tagged with
2
votes
4answers
10k views

How to calculate 12 months from a start date

I am building an application about workers vocation and I need some help on calculating. Here is what I need: I have a column named startdate, after 12 months I want the SharePoint or c# to know ...
2
votes
2answers
2k views

FileNotFoundException from a Visual Web Part using an external class library

I have a solution and two projects in it: VisualWebPart and ProjectsLibrary VisualWebPart has a reference to ProjectsLibrary (tried to change Property for ProjectsLibrary Copy Local to false/true , ...
2
votes
4answers
6k views

Item added or item edited Sharepoint 2010 event receiver

I am working on Sharepoint list form with 10 fields. The first time when I add the new item I fill in 8 values and id is generated. Next time I edit the form I fill in the one of the two remaining ...
2
votes
3answers
2k views

Deploy WSP from Visual Studio 2010 to web application with set host header

I have a demo SharePoint server with multiple web applications created. Each of them has a host header that is entered into company's DNS. All the web applications are on port 80. I changed SiteURL ...
2
votes
1answer
5k views

How to change the “Parent Content Type”

I have requirement to create multiple content types to a single website in Sharepoint 2013, I have did it using the template files, but the problem in for all newly created content types the parent ...
2
votes
2answers
7k views

Create a new site collection c#

I'm trying to create a new site collection in Sharepoint Online tenant with Visual Studio. 1) I found http://msdn.microsoft.com/en-us/library/office/ms448720(v=office.14).aspx which says that the ...
2
votes
2answers
7k views

Visual Studio WebPart Not Showing Up in SharePoint

I created a simple WebPart in Visual Studio 2010 that I was using to test some functionality for a project. When the WebPart was built and deployed, the messages in the Output box in VS all state ...
2
votes
2answers
2k views

Programming without being at the SharePoint Server

From my understanding, if one need to use Visual Studio to do some programming (be it C# or VB) on the SharePoint Server, one need to be at the Server that have Visual Studio, SharePoint Server and ...
2
votes
3answers
4k views

Files not deleting on solution retraction

When i retract my solution several files are not deleted including my custom master. Probably something simple but i want it deleted so that visual studio doesn't complain every time i deploy about ...
2
votes
3answers
4k views

How can i edit master page in visual studio?

SPD is very uncomfortable for me. I try to open master page ny using the path "\portal\davwwwroot_catalogs\masterpage", but visual studio give the error Microsoft Visual Studio Could not find file '...
2
votes
4answers
8k views

“Cannot find this file” error when deploying from Visual Studio 2010

I'm getting an error in Visual Studio 2010 after pressing F5 to Debug: Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file: ...
2
votes
2answers
283 views

SharePoint Framework development using Visual Studio

I am going through the new development approach that is introduced in SharePoint which seems to be open source and suggested approach by Microsoft. If i look from developement perspective then it has ...
2
votes
2answers
2k views

How to set visual webparts to load one after - another sharepoint 2010

I have a webpart page which have 2 custom visual webparts. When i set the debugger point on both the page loads of the webpart the 2nd visual webpart debugger is hit...that makes me think the 2nd ...
2
votes
1answer
3k views

Use a querystring parameter in a CAML Query

I want to pass a parameter between two separate web parts I am developing. In my 'Detail' webpart i need to build a CAML query to display the correct profile based on their name. pdquery.Query = "<...
2
votes
1answer
248 views

Why am I getting issues with a WSP imported into Visual Studio?

I imported a WSP (site template) in VS 2010 and compiled. I then tried to create a package (build > package). I am getting all sorts of issues. Why is that? The site templated was created using an ...
2
votes
1answer
216 views

How to add a DropDownList column to GridView? Visual web part

How can I add a DropDownList column to gridview in code behind? In my case a want to add a dropdown called Employer. I have successfully added 1 string column called Name with the following code: ...
2
votes
2answers
414 views

Follow site programatically

In SP 2013 on prem, I am developing a web part using c#. All my functions work except follow/unfollow a site for a user. So I am turning here for some inspiration, looking for some code snippets or ...
2
votes
4answers
7k views

Do SP2013 Workflows Run as the Current User by Default?

I have a workflow (developed in Visual Studio) that is started on creation of an item in List A. Most users have permission to create items in this list. The workflow subsequently updates another ...
2
votes
1answer
2k views

Difference between Assembly Deployment Target set to “GlobalAssemblyCache” or “WebApplication”

When I view the properties for my SharePoint 2010 project I can see an option of Assembly Deployment Target which can be set to either GlobalAssemblyCache or WebApplication. From this question I was ...
2
votes
1answer
2k 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 ...
2
votes
2answers
3k views

Visual Web Part vs Visual Web Part (Sandboxed)

While I was creating a visual web part in Visual Studio 2010, I also saw an option to create Visual Web Part (Sandboxed) under Visual Studio Template Gallery. I need to know how does a Sandboxed ...
2
votes
1answer
7k views

Creating a List Definition in Visual Studio 2012

Dont know if I'm missing something or just blind, but did MS not include the Add new List Definition template to VS2012 ? It was there in VS2010. VS 2010 screenshot VS 2012 screenshot
2
votes
1answer
396 views

Same custom column name in 2 different solutions, 2 different ID guids, yet I get a “Duplicate field 'x' was found” error

So I have two completely different solutions, I'll call them solutionA.wsp and solutionB.wsp and they are being deployed to the same site Both of them contain a site column definition for a column ...
2
votes
1answer
150 views

Will this code lead to an object not being disposed?

Say I have the following code: SPList promo1List = site.WebApplication.Sites[0].RootWeb.Lists.TryGetList("promotions"); Will this lead to the SPSite object Sites[0] not being disposed? I ran ...
2
votes
2answers
4k views

Adding code behind functionality to a page layout?

I have a page layout that I would like to include a listview that is populated from the code behind. I tried right clicking on my aspx file and choosing "View Code" like I typically would but it does ...
2
votes
3answers
10k views

Getting error “Attempted to use an object that has ceased to exist.” when adding web part

I have created a web part in visual studio, it deploys fine, but when I try to add it to a page I get the following error: Attempted to use an object that has ceased to exist. (Exception from ...
2
votes
1answer
4k views

Error occurred in deployment step 'Add Solution': Sandboxed code execution request failed (but no implementation at all)

I realize of course that there is another question with the same title, and mine is a very similar question, but with a slightly different issue, I think: I have created an empty feature with an ...
2
votes
3answers
2k views

How to access web.config entries when deploying from Visual Studio?

I'm working on a project in SP/VS2010 that contains features with event receivers that require access to appsettings keys in the web application's web.config. While I've checked that the features can ...
2
votes
1answer
4k views

How do I get my query results to display in my web part?

I'm working on my very first web part for SharePoint 2010 in Visual Studio 2010. Please keep that in mind as you continue reading. I'm trying to build a web part that runs a simple query against a ...
2
votes
3answers
1k views

Sitemap control in SP 2010

Does SP have sitemap control (or web part or ...) which can be inserted (or turned ON) in some custom web? I would like that people have oportunity to navigate site with that and not just quick launch....
2
votes
2answers
3k views

Visual Studio 2010: firefox as browser

Is there a way to use firefox as the standard browser with visual studio 2010? I have some problems when logging with internet explorer, so i use firefox for testing my sharepoint webparts. But when ...
2
votes
2answers
36 views

Visual Studio retract all data in Sharepoint list after adding another field

I have a project in visual studio to be deployed in sharepoint 2013, every time i change the field's data type or add another field in the list, when i run visual studio, it always retract all the ...
2
votes
2answers
183 views

Is there a way to take only the value of a lookup type field

I am using a workflow where I need the value of a lookup field, My current result is : 210;#AA8888AA It needs to be: AA8888AA Is there a way to take only the value using SharePoint Designer or I ...
2
votes
1answer
56 views

Why VS 2010 is best IDE for SP 2010

I need to find the links where Microsoft says VS 2010 Pro/Ultimate edition is the best IDE for developing solutions for SharePoint 2010. I know this question is an old question, compared to the ...
2
votes
1answer
59 views

Web Part or Custom .aspx Page for SharePoint

I am new to SharePoint. I am confused on whether to use WebParts or custom.aspx page for custom development. Which is the better option out of the two? And why? Also, what are the merits and demerits ...
2
votes
1answer
110 views

Will my webpart still work?

If I create a web part using a Visual Studio trial version, and the trial expires, will my web part continue working?
2
votes
2answers
1k views

SharePoint .wsp retraction error

I am deploying a solution by Visual Studio. I get the error during Retraction: The solution does not have a WSP file associated with it. I tried to do IISRESET and also to restart the server.
2
votes
2answers
136 views

Starting a SharePoint Site with Visual Studio on Office 365

I have been developing a site with SharePoint Designer and a web browser for awhile and I would like to start customizing the site with Visual Studio. I exported a .wsp file for the site and tried to ...
2
votes
1answer
1k views

Set welcome page view for Document Set in VS project?

I know you can set the view to use on a Document Sets welcome page through SharePoint. But is there a way to do this in a project, like either in the content type Elements.XML or the libraries schema ...
2
votes
1answer
1k views

Visual Studio 2013 - Workflow debugging prerequisites failed to complete

I am experiencing an issue with debugging SharePoint 2013 Workflows in a SharePoint App solution: Has anyone encountered this error?
2
votes
1answer
354 views

How to debug using Visual Studio on load balanced WFEs

I have a 4 server farm. APP WFE1 WFE2 DB Both WFE1 and WFE2 are load balanced and their network name is SPLOAD. So basically I can open http://spload in browser and it opens website from one of ...
2
votes
1answer
216 views

Using solutions and features in creation/branding of SharePoint websites

I am new to SharePoint website creation and branding and I need your advice. For my first SharePoint site I have done the following: 1- Created/edited a master page. 2- Added CSS and JavaScript ...
2
votes
2answers
1k views

Reading contents inside PDF file

How can i traverse the contents present inside PDF file. Suppose i have PDF documents inside a document library and I need to read contents inside PDF file to know the type of PDF file whether its a ...
2
votes
2answers
435 views

Add Button without Visual Studio?

Is it possible to add a button to the standard ribbon to SharePoint 2010 without Visual Studio 2010? I'm trying to follow this tutorial: http://spnotepad.blogspot.com/2012/01/overwriting-sp-2010-...
2
votes
2answers
748 views

Custom XSLT for taxonomy field in xsltlistviewwepbart for SharePoint 2010

I'm trying to modify the out-of-the-box rendering of the xslt list view webpart to collapse the terms, and show (..more) if there are more than 1 term in the field. I already did this for an "Authors" ...
2
votes
1answer
3k views

SharePoint 2010 still looking for old version of solution assembly

We have a SharePoint 2010 solution developed in Visual Studio, which when deployed adds an assembly to the GAC (let's say MySolution.dll, version = 1.0.0.0). We make some changes and redeploy the ...
2
votes
1answer
4k views

How do I set the Default Value of a TextBox ToolPart without using [DefaultValue(“Default Value”)]

Right now I have created a bunch of custom controls in the ToolPart panel and I want to set a default value for one of the text boxes. Obviously I want the value to be editable by the user. I have ...
2
votes
2answers
364 views

Requiring Event Receiver while creating new item

I have an event receiver(item adding,item added)..on a custom list..this event receiver creates an ID when a new item is created..so when i deactivate the event receiver and add a new item to the list ...
2
votes
3answers
2k views

Added a new PageLayout to my feature but it's not showing in SharePoint?

I had an existing feature that deployed a Page Layout. I ended up adding another Page Layout to the feature and I updated my Elements.xml file to include the reference to the new file: <File ...
2
votes
1answer
1k views

Including a class library with a WSPBuilder deployment in WSS

I am working with WSS 3.0, Visual Studio 2008, and WSPBuilder 0.9.9. I have a custom class library (WebParts.dll) of base classes that I use with several SharePoint solutions. I currently deploy ...

1
3 4
5
6 7
24