Tag Info

Hot answers tagged

4

There is a fine line of difference between IIS Reset and Web Application Pool recycle when it comes to SharePoint Deployments. IIS Reset does 2 important things concerning SharePoint - It recycles all your application pools at one go and clears the memory objects. It reloads all dlls from the GAC(global assembly cache) in the farm servers. Web ...


4

Would this not work? Using the fact that Layouts is shared through the fram targetUrl = '/_layouts/MyProject/AppPage.aspx' + "?Location=" + window.location.href; or you could try: targetUrl = SP.Utilities.Utility.getLayoutsPageUrl('MyProject/AppPage.aspx' + "?Location=" + window.location.href)


3

Follow the below steps to move workflow into production environment site, In the Development environment open the SharePoint Designer and export the workflow you want using “Export to Visio”. Rename the vwi files by adding ".zip" extension, now open the zip file and remove the "workflow.xoml.wfconfig.xml" because it contains the details about the ...


3

So, when you reference a dll created in a different project and reference it in your SP project, you need to add it to the Package. To make Visual Studio adding 3rd party assembly or even your own assembly from other project in solution to GAC please do next: Open Package.package from Package folder in SharePoint project. Click Advanced in bottom area. ...


2

there are many factors, some that ill explain! deploying a wsp (solution file) will cause a IISreset, reason being its changing things within the 12/14/15 hive, it could also be adding strongly named dlls to the gac (global assembly cache) and many other factors. IISresets on live servers should NOT be performed during working hours (late evening or ...


2

There is a related question on SharePoint StackExchange: How to remove orphaned features Remove all the orphaned features: Get-SPFeature | ? { !$_.Scope } | % { $_.Delete() }


2

There is a more fail-safe approach than what @lwbecker2 suggests Get-SPSolution | ? { $_.JobExists } | % { Write-Host "Deployment job is currently running" } This has the benefit of not having a race condition. If you only look for the timer job, it may be that a deployment has already been initiated, but a timer job was not yet created when you check for ...


2

The workaround is as follows: Open up your SharePoint 2012 solution in Visual Studio 2012/2013 In the Solution Explorer (use View -> Solution Explorer if you don't see it) expand your solution and browse to the Package within your project Double click on the Package.package entry to open up the package editor Click on the Advanced Tab The Additional ...


2

To your very last question, how to package and deploy solutions of JS files. I would recommend Sandbox solutions. The site collection owner would be able to upload your solution and the solution could deploy the .js and other files to the server. You can update these with a new/updated solution as needed. Be aware that there are some statements about ...


2

John, In the question you are discussing two different things, one is the SCHEMA i.e. Lists, Content Types, Document Libraries etc., the second thing is CONTENT. SCHEMA Yes you can develop everything using Visual Studio, you can create your custom templates (just like Team Site template, Publishing Site Template etc.).. and implement a class that inherits ...


2

That's a very broad question. data = content like List Items or Documents definitions = content types, site columns, spwebs, spsites, sptimerjobs, workflows when I say "Add" I don't mean you can't change or delete stuff. I'm not sure this list is conclusive or correct, but of the top of my head: SharePoint Hive Farm Solutions Layouts folder ...


2

Sample.txt file is added on its own when a Module is added to the project. Normally, it is renames to whatever you want to add to module. Both the files will get deployed to the site and hence content Database as is clear from the Url.


2

Make sure that your feature (in the VS solution) has all the web parts in it.


2

Go to the visual studio feature file and check whether you have all the webparts you needed in the feature. Else add them by selecting and send from left to right.


1

I have worked with the promoted links webpart and the tile view myself, but don't have example code here with me. What you will have to do may very well be possible by css (actually, try that first!) but from experience I know the tile view is very very rigid. What you want to do is just move the text with CSS. Use some developer toolbar to see the ...


1

Right click on the solution and select Package. This will build a WSP in either your debug or release folder. Copy this WSP to a web front end and use Powershell to add it to the solutions and then install it. Add-SPSolution c:\yourproject.wsp Install-SPSolution –Identity yourproject.wsp –WebApplication http://sp2010 -GACDeployment Or use the add ...


1

The feature activated event will not fire again as it is already activated. However, the webpart will get updated because new dll, control templates and other components get deployed properly.


1

The feature will also need to be activated in order for web part to show up. The next time you deploy a WSP, the feature will remain activated/deactivated depending on its state. That is, if the feature is activated and you deploy the WSP again, you won't need to activate the feature. However, if it is deactivated, it need to be activated again.


1

As is evident from the first error there is an issue with finding assembly information. This may mean you may have changed namespace, class name etc. Normally AlwaysForceInstall = true should take care of the feature which is not uninstalled. Value TRUE specifies that the Feature is installed by force during installation even if the Feature is already ...


1

The Event Receivers can only be Scope at Site or Web. http://msdn.microsoft.com/en-us/library/office/ms431081(v=office.14).aspx I believe you would need to use a Feature Stapler. For existing sites, you will need to activate the feature manually, either using the UI, or powershell loop that activates the feature everywhere. Then you need a feature ...


1

What do you want your 'app' to do? Sounds like, for your scenario, Apps aren't the best choice. Think of Apps as single units of functionality that work in their own subsite away from the rest of your site (as that's pretty much what they are).


1

If I understood you right, you are trying to activate feature on deployment, there is something new in VS2012 named as Packaging Explorer. Open Packaging Explorer and select the feature you want to access properties of, then press F4 on keyboard, it will show you all possible properties of the feature, as shown in picture below,


1

The first thing that comes to mind is the URL of your site. It appears everything that you've done is correct as far as the project setup and deployment. The URL of your site needs to be a valid site collection, not just the server name, otherwise SharePoint won't handle the virtual path properly. So instead of: ...


1

The short answer: Don't add php files to SharePoint. SharePoint is a platform on its on (based on .net and ASP.net) and hence if you want to migrate your intranet from php to SharePoint you would have to start from scratch


1

If the sandboxed solution package contains a Feature that is scoped to the site collection level, the Feature is activated automatically. Any Features that are scoped to the website level must be activated on the Manage site features page at /_layouts/managefeatures.aspx. I think you scoped your SandBox to Site collection not the web level. The Feature ...


1

I think this is it: Create a web level feature to deploy site columns and a content type referencing the Infopath form you intend to use. Publish the inform path form as a centrally managed template, promoting values to the new site columns. Create a reusable SharePoint designer workflow against the new content type. Save as a template. Deployment ...


1

Just add an new App for SharePoint 2013 project to your existing MVC Web application I selected Provider Hosted App Hit the F4 on your existing newly added App project and you will see the properties. Select the MVC web application that you want to associate with your provider hosted App project. When done, SharePoint will automatically add ...


1

Every time I've had that error it's because I have a synchronous event receiver in place. With a sandbox solution you can't call SPListItem.Update() any time it would trigger an synchronous event receiver in the same solution. In some cases the event receivers were hanging around from previous deployments and I've had to remove them manually (or even ...


1

You can try workflow import/export feature to deploy your workflow to your production environment. Check the following link to import/export your designer workflow: http://blogs.technet.com/b/wkng/archive/2012/08/21/exporting-and-importing-sharepoint-designer-2010-list-workflow.aspx


1

There is a registry value that doesn't exist by default, that can be added to change the timeout of the server, I think on development machines the default SP settings dont allow for deployment of large .WSP solutions, or could also be slower platforms. Goto the following regustry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools ...



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