Tag Info

Hot answers tagged

7

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 ...


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

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. ...


3

I typically advise to place "shared" libraries into a dedicated WSP and keep it out project or function specific WSPs. If a specific WSP is retracted, the "shared" library will still be available. Examples of "shared" libraries are: log4net, Enterprise Library, your own shared libraries, ...


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 ...


2

That is actually the recommended way of referencing a SharePoint site as it allows for such crazy things as load balancing and even, dare I say, replacing the physical server that runs SharePoint without breaking all of your bookmarks :) Seriously, though. Simply go into Central Administration, System Settings, Configure Alternate Access Mappings, select ...


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

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.


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

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 ...


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

SharePoint doesn't know which is the Internet, extranet or Intranet zone. When you choose the zone you are telling SharePoint that you will use different behaviour when authenticating users in the Web Application. Each Web Application can have a maximum of 5 zones. The possible zones are: Default Intranet Internet Custom Extranet When you use zones you ...


1

after all, what i did is; 1)back-up the old site collection, 2)delete the old site collection using CA UI, 3)use the following Remove-SPDeletedSite –Identity ... to remove the site collection permanently 4) run the delete job 5) wait for a while . restore agian and it worked !!!!!


1

Yes, You have to manually add the custom column on the three environments separately. We too have similar environments and we too do the same process. You make your changes as features and deploy them to each environments using Power Shell or stsadm commands. Since Features support upgrade and you can have versions as well.


1

Do I need to export the site collection and import it in VS2012 (or can I make use of the SP Powershell commands to create the web app & site collection by API)? Use Backup/Restore to move the site collection together with complete structure to your development environment. See more . Remember to deploy your customizations (WSP files) before ...


1

You should use the restore command as follow: Restore-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak All site collection features that are Activated on the dev machine needs to be active on the staging machine. Regards, JP


1

This tutorial will help you: http://tallday.wordpress.com/2010/12/16/developing-sharepoint-2007-webparts-using-visual-studio-2010/ Duplicated here in case the link goes dead: Problem. So i presume your reading this because you love the new Visual Studio 2010 but need to develop web parts for SharePoint 2007. Although the interface within Visual Studio ...


1

Regarding the calendars, this is an annoying bug. SharePoint appears to store the absolute URLs to the calendars. I've come across the same issue when setting up calendars on the site using the internal URL, and then the external users can't use them. Very annoying. Unfortunately, I haven't found a solution other than reconfigure them manually. Might be ...


1

You can back up the development Site Collection by using the SharePoint Central Administration website or Windows PowerShell. Then in your UAT machine, create a SharePoint Application that uses NTL authentication. Then create a new "Team Site Collection" in your UAT SharePoint Application. Then using the backup file, you can restore the Site Collection in ...


1

The culprit was not master page but web.config of the web application. db connection details were deleted from the app settings section and master page had the code for authentication the users on page load, hence the object refrence error ; as it was not able to reach to db.


1

When deploying Masterpages and Pagelayouts, the feature deploying them should always be SITE scoped as they can only be added to site collection root levels. Then if you want to control which subsites should use the deployed masterpage (if you do not have Publishing Features activated), you create a new feature, which is WEB scoped, with a FeatureReceiver ...



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