Tag Info

Hot answers tagged

12

If you double-click on the feature (NameofFeature.feature), in your solution. You'll see a properties window come up - as a window that details the title, description, scope, items in solutions, and items in the feature. In the properties window, you'll see an option titled 'Always Force Install'. By default, it is set to False. You can configure that to be ...


6

Actually Visual Studio 2010 Professional, Premium and Ultimate all allow for SharePoint development as the "Office and SharePoint development tools" are available for all (see here http://download.microsoft.com/download/4/6/E/46E8BB6C-108F-467C-9292-50EE94F117B5/download/Visual-Studio-2010-Feature-Comparison-Matrix.pdf) Same stands still with Visual Studio ...


6

I would recommend these links Setup the development environment in SharePoint 2013 : http://msdn.microsoft.com/en-us/library/ee554869.aspx Develop in SharePoint 2013 : http://msdn.microsoft.com/en-us/library/jj163085.aspx How to create a basic SharePoint hosted App : http://msdn.microsoft.com/en-us/library/fp142379.aspx First Time Configuration For Apps : ...


6

I had the same problem today. I compared the project files with an older version. In my case the Package directory (with the files Package.package and Package.Template.xml) was missing. After copying this directory back from the older version of the project and modifying the csproj file to include the references to the package directory, the error solved ...


5

Welcome to SharePoint Stack Exchange! In your Visual Studio 2012 SP Solution: Enable Always Force Install to True in for your feature. See example below: By default, it is set to False. You can configure that to be set to True.


5

You cannot add an event receiver through the "Add new project" dialog. What you do is create an empty sharepoint project first. Then just right click on said sharepoint project, click add new item, go to Office/SharePoint and choose Event Receiver. See my screenshot.


4

You can do it via the XML editor as well! Steps: Go to your Features in your project. Open the feature.template.xml file add AlwaysForceInstall="TRUE" to the below tag <Feature xmlns="http://schemas.microsoft.com/sharepoint/" AlwaysForceInstall="TRUE"> Now try to deploy the code.


3

You need to reference following JavaScript file: <SharePoint:ScriptLink ID="ScriptLink2" name="SP.UserProfiles.js" runat="server" ondemand="false" localizable="false" loadafterui="true" /> Than you can access the User Profile Properties as follows: var personProperties; // Ensure that the SP.UserProfiles.js file is loaded before the custom ...


3

VS2012 (I advise updating to Update 4 version which is up to date at the time of writing this) provides a number of updates regarding SharePoint 2010 development. Some of them are: Create lists and Content Types by using new designers Create Site Columns Create Silverlight webparts Publish SharePoint solutions to remote SharePoint server Test SharePoint ...


3

When developing a high trust provider hosted app in VS, you are asked "How do you want you app to authenticate". Here you have got two options. If you are developing for on premise you can select "Use a certificate". The certificates are created in IIS. See this for more information on setting up dev environment for provider hosted apps. ...


2

You need to have SharePoint 2010 installed on the machine you wish to do development on. However, installing SharePoint 2010 on Windows 8 is unsupported (and may or may not be supported when SharePoint 2010 SP2 is released). SharePoint 2013 remote development is only good for developing "Apps", traditional solutions still must be developed locally. I'd ...


2

After some research we found out that the error has to do with the length of the contents of the User Control. Once you exceed the limit of 8256 characters the User Controls won’t be parsed anymore. Compare the two images. With the contents length of 8256 characters the ascx.g.cs file is still present in the solution. Once you add another ...


2

You need to download the Microsoft Office Developer Tools for Visual Studio 2012 here. This will add the "traditional" SharePoint 2013 project options as well as the ability to create app projects for Office 2013 and SharePoint 2013.


2

Find the ID of the content type you are deriving from (in your case it is 0x0101 i.e. Document Content Type). So, make sure 0x0101 is present by examining the content type in the SharePoint UI (Site Settings > Manage Content Types). You'll get an exception (as you're getting right now) on feature activation if it's not, or the Inheritance between Content ...


2

You can not install SharePoint 2010 and SharePoint 2013 "side by side" on the same box. You must configure two separate environments for testing. Here's an MSDN link walking you through configuring remote debugging for SharePoint 2013 (and it's limitations): Developing apps for SharePoint on a remote system. Also, here's a link to walk through configuring ...


2

The Library contains the definition of the library itself, including the columns, types, indexes, views, etc., but it does not actually store items. The Instance is what handles that and is typically a single instance of the defined Library and is usually created when the feature that contains it is activated. If you are a coder, think of the Library as a ...


2

My suggestion would be a feature event receiver. In the feature activating perform your checks to see if the doc libraries exist and if the folders exist and if not create them. Here are two articles from MSDN to get you started. The same process for 2010 will apply to SharePoint 2013 in this instance. http://msdn.microsoft.com/en-us/library/ee231604.aspx ...


2

Usually a WSP is going to contain features that need to be activated before they really do anything since a WSP is really just a glorified CAB file that SharePoint knows how to handle. These features could be site or list definitions, workflows, event receivers, custom code, and more. I write features that execute custom code for provisioning sites, lists, ...


2

This may be unrelated, but did you put a proper URL in your project's Site URL field, and can you properly deploy and activate an empty solution from VS? I find that the designer files are not generated properly if my site URL is faulty (VS can't connect to it) or if I lack the permissions to deploy and activate a solution from within Visual Studio.


2

you can use this code to retrive the items from MSDN: // Starting with ClientContext, the constructor requires a URL to the // server running SharePoint. ClientContext context = new ClientContext("http:SiteUrl"); // Assume the web has a list named "Announcements". List announcementsList = context.Web.Lists.GetByTitle("Announcements"); // This creates ...


2

In SharePoint 2010 logging can be done both in ULS and Event Logs using SPDiagnosticsService class. The class provides two methods WriteTrace and WriteEvent to write traces and events in ULS and Event Viewer respectively. We can also create our own Custom Areas and categories by inheriting from SPDiagnosticsServiceBase class. public class ...


2

When you create an element (for example a module, content type definition etc) Visual Studio attempts to assign it to a feature in your project. Based on my observation, it selects the first appropriate feature he found, with no other background logic than "do not chose a feature that can't contain the current artifact". After that, you can still reassign ...


2

In Visual Studio, create a visual Web part and apply your code logic. Set your web application path in properties of visual web part Right click on visual web part and choose deploy. Go to your web application, edit the page In insert section ,choose insert web part. From the menu, you select custom web part. your web part will appear.select it and than ...


2

If its your development environment, try IISReset.. Also if that doesn't work, restart SharePoint Timer Job.. You can restart SPTimerV4 service for restarting SharePoint Timer Job, write following in Command Prompt: net stop SPTimerV4 net start SPTimerV4


2

Has your method the following attributes? [SharePointContextFilter] But more important. Are in your MVC application included the SharePoint context file? SharePointContext.cs and TokenHelper.cs You can find them here: http://code.msdn.microsoft.com/sharepoint/


1

It seems like somewhere inside your webpart an exception is thrown. I would suggest you to wrap all your code inside CreateChildControls and client_DownloadStringCompleted methods with try..catch something like that: try{ ... } catch (Exception ex){ this.Controls.Add(new LiteralControl(ex.Message+"; "+ex.StackTrace)); } It is a good practice to ...


1

be sure: to add your site into host file on VM (C:\Windows\System32\drivers\etc) Add bindings to IIS (http://technet.microsoft.com/en-us/library/cc731692(v=ws.10).aspx) hope it helps, Andrew


1

Its possible to set permissions using REST API in Workflow. You can use these methods: BreakRoleInheritance​ BreakRoleInheritance is just not documented and can be used using POST request: https://your_sp_site.sharepoint.com/_api/web/lists/getByTitle('Test')/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=true) where ...


1

I had a similar issue with the exception that I migrated the Solution from SP 2010 to SP 2013 in VS 2012 and the projects which were being referred were SharePoint projects. I fixed the issue by removing the dll references which were added using "Project references" and then added the references by browsing to bin folder. Source: ...


1

You need to change the order of Additional Assemblies defined on the SharePoint package since in Visual Studio 2013, this now makes a difference. My issue (and I suspect yours) was that several of my non-SharePoint projects had dependencies on each other and had to be built in a particular order. This was not an issue in Visual Studio 2012. To change the ...



Only top voted, non community-wiki answers of a minimum length are eligible