Questions tagged [visual-studio]
Visual Studio is an integrated development environment (IDE) from Microsoft.
1,180
questions
65
votes
5
answers
6k
views
Migrating a solution from 2007 to 2010
Let's say we have a well-established solution in Visual Studio 2008, using WSPBuilder to bundle it up into a package. It has a handful of features and a whole whack of assets to deploy (.webpart, .xsl,...
34
votes
4
answers
41k
views
Feature with id already exists - force option
I'm getting that old familiar error when trying to deploy my SharePoint solution via Visual Studio:
Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been ...
30
votes
7
answers
7k
views
List of best practices on structuring SharePoint 2010 solutions
I am looking for good guidance on how to structure a SharePoint Solution including:
Visual Studio Project Structure
Features (how to separate features)
Namespaces
When to use multiple project ...
22
votes
3
answers
10k
views
Deployed Timer Job not taking new code when deployed
I've realized recently that, when re-deploying (either manually or through vs2010) my timer job feature package, the updated execute code is not being deployed. Strange yea. Essentially, I'll ...
21
votes
2
answers
8k
views
Multiple Sharepoint projects in one solution - how to package correctly?
I have multiple Sharepoint projects in a solution:
MySolution.WF
MySolution.Webparts
MySolution.UI
I also have some common code in a
MySolution.Common
project. All of the aboe projects reference ...
20
votes
3
answers
11k
views
How to access my "Outgoing E-Mail Settings" from code?
Is it possible for me to pull the values that are in:
Central Admin -> System Settings -> Configure outgoing e-mail settings
from my code behind using the object model?
20
votes
2
answers
3k
views
Can't start debugging after install VS11
After I installed VS11 Dev Preview, VS2010 cannot start debugging the Sharepoint 2010 server (developer install on Windows 7). I get a nice error dialog stating:
Unable to start debugging on the ...
18
votes
5
answers
3k
views
Are there any tweaks, tips to make debugging SharePoint 2010 faster?
I am using Visual Studio 2010 Ultimate and SharePoint 2010. The debugging process itself is okay but the startup takes really long. Are there any options or hidden-hints to make this faster?
Edit:
I'...
15
votes
2
answers
30k
views
Difference between WebPart & Visual Web Part
I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010.
Thanks!
15
votes
3
answers
731
views
SharePoint 2013 Site Definition Toolbar Type Standard not showing
I have a problem with the toolbar type "standard" in SharePoint 2013.
If I insert a XsltListViewWebPart with , there is no "New Element" button.
And no "View Choice" and something like that.
I've ...
13
votes
6
answers
13k
views
Deploying EventReceiver project with target of WebApplication from VS fails when activating features
I am trying to deploy an event receivers project with a deployment target of WebApplication as part of my web parts package (also has a target of WebApplication) through Visual Studio and encountering ...
13
votes
1
answer
3k
views
"Incoming e-mail settings" hidden from custom document library
Very simple set-up:
Visual Studio --> Add New Item --> List Definition. Type: Document Library. Besides that - no changes. Deploy.
Result:
As you can see: No "configure incoming e-mail settings" ...
12
votes
2
answers
21k
views
There is no site URL in project properties. Where can I change it?
When trying to deploy a SharePoint app, the following error is shown:
Error occurred in deployment step 'Uninstall app for SharePoint': Cannot connect to the SharePoint site: http://example.com/. ...
10
votes
1
answer
8k
views
Where is Package menu item in Visual Studio 2012
I'm using visual studio 2012 for developing SharePoint 2010 solutions, back in vs2010 there was a menu item names "Package" so I can get the package without deploying it and I noticed it's disappeared ...
10
votes
4
answers
4k
views
What do the terms Farm, Site, Web, WebApplication refer to in the SharePoint API?
I'm sorry for dumb question but I am very new to Sharepoint 2010 and something is not clear to me.
What do the terms Farm, Site, Web, and WebApplication mean?
I pretty much understand Farm and Site, ...
10
votes
2
answers
3k
views
Event Reciever on specific list in sharepoint 2010
I am working on creating event reciever for a custom list in sharepoint 2010 using visual studio..how can this event reciever be targeted to a specific custom list ..in my case its customEmpList?
10
votes
1
answer
284
views
Wizard Installer for a Webpart
I have a Webpart for a Sharepoint 2010, and I would like to create a "Wizard Installer" for this webpart, that a customer can install to his own Sharepoint Server.
What is the easiest way to do it?
(...
10
votes
1
answer
1k
views
When to use VS 2010 vs. SP Designer for development
When do we use Visual Studio 2010 for SharePoint 2010 web part development and when do we stick with Designer? Are there pros/cons? As a noob, it seems that for more robust, customized web parts, ...
10
votes
1
answer
3k
views
Best practices for creating a shared code library for SharePoint projects
I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
10
votes
5
answers
6k
views
Files in feature won't update when marked with GhostableInLibrary
Having an issue updating files with a feature. This is for custom branding. here is a sample of the elements.xml file. If I add a new file, it will provision fine, but any changes to existing files ...
9
votes
3
answers
33k
views
How to read a User field value for a list item
I've got a content type that contains a filed of the type user. When I want to read the ListItem I just get a string containing the users name instead of a object which contains Name, Username, E-Mail ...
9
votes
7
answers
13k
views
Where to find PublicKeyToken?
I opened an empty sharepoint project in which I added a new application page. There I wrote some code. Now I need to enter that information under <SafeControls> tag in web.config file.
...
9
votes
6
answers
18k
views
Problem connecting Visual Studio 2013 to SharePoint 2013
I'm having a big issue in connecting Visual Studio 2013 to SharePoint 2013. When I create a project in VS2013, I choose SharePoint Empty Project and then the URL of my SharePoint site, when I click on ...
9
votes
1
answer
1k
views
Moq'ing SharePoint for Unit tests
Everything i read about unit testing mentions TypeMock isolator. thats good when you can control what unit testing and mocking tools you are using in the project but I am unable to use TypeMock. ...
8
votes
7
answers
19k
views
Can't connect to the SharePoint site:
I started VS with admin rights, I'm currently in trouble setting up a SharePoint 2010 project.
Today, I installed VS2010 on our new SP 2010 server.
But now I'm failing to create a SharePoint project ...
7
votes
3
answers
11k
views
After retracting webpart solution webparts still showing up
I retract a webpart solution that was deployed via Visual Studio. Then when i edit a page for some reason the Custom category + the webparts are still being listed when i try to insert a webpart. ...
7
votes
4
answers
6k
views
What SharePoint 2013 Development can be done in Visual Studio 2010?
It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365."
If you've tried developing solutions for SharePoint 2013 in Visual ...
7
votes
3
answers
696
views
Sequential Workflow Delay Activity won't resume
I'm trying build a pause into a Visual Studio Sequential Workflow. I can add steps, then add a delay and it works fine. But any step I insert into the workflow (either before or after the delay) ...
7
votes
2
answers
25k
views
Error while referring "/_vti_bin/ListData.svc"
While trying to refer "ListData.svc" service in my VS.NET WinForm project, I am getting an error
The HTML document does not contain Web service discovery information.
Metadata contains a reference ...
6
votes
3
answers
3k
views
When to use Server side event receivers Versus using Remote event receivers?
I read a long article about two types of event receivers inside SharePoint server 2013:-
Server side event receivers (available inside SP 2013 & SP 2010)
Remote event receivers(available inside ...
6
votes
7
answers
34k
views
How do I Modify Contents of a WSP File?
I've been provided a WSP file that contains a webpart created by another developer. I have been requested to make modifications to the webpart and repackage as a WSP file again.
What steps must be ...
6
votes
2
answers
1k
views
How to install a WSP that has dependent assemblies?
I have a solution in Visual Studio 2010 that is made up of 3 projects.
I have one project for my SharePoint 2010 custom timer job, one project (Project A) that is used by my custom timer job, and ...
6
votes
4
answers
24k
views
How to fix "A SharePoint server is not installed on this computer"
To do SharePoint custom development, what is the recommended method? I've read this post, and it appears that if you want to use debugging in VS2010, you'd want to have SharePoint on the same machine ...
6
votes
3
answers
414
views
Ups and Downs of Content Type Creation Methods
There are several places online I've read to only create content types in feature XML. However, the reason for this seems to be to keep the content type as deployed in a feature.
As I understand it, ...
6
votes
3
answers
3k
views
Content Type Inheritance
In simplified form, I have the following situation.
A Parent content type
<ContentType ID="0x0100db5b9dac9c5f4d098820f922eebf3b39"
Name="Parent"
Group="Example Content ...
6
votes
6
answers
20k
views
Create visual webpart for SharePoint Online
I want to create a visual webpart for SharePoint 2013 Online but I find that the requirement is to install the SharePoint on the local machine.
Another thing, do SharePoint 2013 Foundation support ...
6
votes
2
answers
576
views
Branding the suiteBar in SP 2013
I need to rebrand default look of sharepoint suiteBar. I have no problems with logo or custom links but I need something more.
I need to change whole look of suiteBar - background color, height, ...
6
votes
1
answer
5k
views
Add list item through visual studio
I have created a list of links through Visual Studio. Now I want to add items to that list. How can I do it through visual studio itself?
I am using visual studio 2013.
6
votes
1
answer
3k
views
Unable to find Event Receiver template in Visual Studio 2012
This would probably be right under my nose but I am having a hard time finding it.
I am trying to create an event receiver in Visual Studio 2012. From this video in YouTube I gather that in Visual ...
6
votes
2
answers
3k
views
Do I need to reset SPWeb.AllowUnsafeUpdates after use?
Do I need to reset the SPWeb.AllowUnsafeUpdates property after use?
Seems not, but all over the web there is code like:
bool allowUnsafeOrig = web.AllowUnsafeUpdates;
web.AllowUnsafeUpdates = true;
...
6
votes
8
answers
23k
views
Error occurred in deployment step 'Recycle IIS Application Pool'
I am trying to build a WebPart project and I am trying to deploy the same into my SharePoint dev site which I created using the SharePoint Central Administration. But the issue which I am facing while ...
6
votes
4
answers
2k
views
Force a value into NewForm.aspx
I have a specific case where I want to hook up on the NewForm.aspx, hide a MultipleLookupField and set the value by myself.
I'm opening the NewForm.aspx with Javascript and using some query strings ...
6
votes
1
answer
2k
views
Blog Post Read More
I'm using SharePoint 2013. In our blog post we often use a lot of images and text so the current layout just doesn't work.
I'm looking for a way to display a link to a read more page.
6
votes
3
answers
992
views
Use a supplemental .config file just for a web application
I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes:
...
6
votes
1
answer
1k
views
Recommended Visual Studio solution design for new SharePoint 2010 intranet
I'm currently working on a large SharePoint 2010 published intranet development project. The initial months of planning have been completed and we're now gearing up to commence the actual dev/build.
...
6
votes
2
answers
3k
views
Is it possible to attach to a process on a SharePoint server through visual studio?
I had a piece of code that was working perfectly on my dev server, but once I deployed to my test server it stopped. I've dug through the logs and haven't found anything useful.
I was wondering if ...
6
votes
3
answers
2k
views
SharePoint Web service requests take 30-60 secs initially
When trying to access SharePoint WSS 3.0 server using the web services API, the software service we are developing will hang anywhere between 30-60 seconds when making any call (pick anyone of them, ...
6
votes
1
answer
1k
views
How to create List Definition based on Wiki Page Library in Visual Studio 2010
While creating Wiki Page Library from the browser (Site Actions->More Options->Wiki Page Library) is easy, doing it form Visual Studio not so much.
When I create new ListDefinition in Visual Studio ...
5
votes
2
answers
24k
views
Failed to load receiver assembly when activate feature
I have a problem when activating a Site scoped feature. Every time I try to activate the solution with STSADM or Powershell I get this error:
C:\Program Files\Common Files\Microsoft Shared\Web Server ...
5
votes
4
answers
24k
views
"Invalid License Data. Reinstall is required" error when installing SharePoint 2013 after Sql Server 2012 on the same machine
I've already installed SQL Server 2012 on my machine. Then I tried to run the SharePoint 2013 Foundation installer but I received the following error before I even reached the splash screen menu:
I'...