Ana içeriğe atla


Eylül, 2010 tarihine ait yayınlar gösteriliyor

Adding and Deploying Solutions with PowerShell in SharePoint 2010

Visual Studio 2010 makes it really easy to add and deploy solutions when you are developing (the F5 experience), but you may eventually want to deploy those solution packages elsewhere then on your development machine. We can still use the stsadm tool, but that is effectively considered deprecated now in favor of PowerShell.To get started with PowerShell, run the SharePoint 2010 Management Console located in your Microsoft SharePoint 2010 Products folder on your start menu. This automatically loads the Microsoft.SharePoint.PowerShell snappin so that we can execute SharePoint commands.[code:xml]
Add-SPSolution c:\codefolder\SharePointSolution.wsp
Install-SPSolution –Identity SharePointSolution.wsp –WebApplication http://yoursharepointurl -GACDeployment
Update-SPSolution –Identity SharePointSolution.wsp –LiteralPath  c:\codefolder\SharePointSolution.wsp –GACDeployment
Uninstall-SPSolution –Identity SharePointSolution.wsp –WebApplication http://yoursharepointurl

WCF service in SharePoint 2010

Just created custom WCF service in SharePoint 2010.Incredibly straightforward which is just brilliant.1. Followed this article on msdn2. I also needed to add the following attributes to the service class[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [BasicHttpBindingServiceMetadataExchangeEndpoint]From here on it works and can be referenced (“Add Service reference” in Visual Studio) from a client application.Just remember to add mex to the end of the url to find the end pointfor examplehttp://servername/_vti_bin/basicservice.svc/mexWithout the “mex” you will get a HTTP: 400 internal error.

SharePoint 2010 - Access 2007 with Office 14

I hit a bug last night which was due to mixing some ADO and DAO code within a VB form inside an Access 2007 database. This had been working well until I moved it on to a laptop that had SharePoint Designer 2010 and SharePoint 2010 in Development mode installed. The operating system is Windows 7 ultimate 64 Bit but SharePoint designer and all of My office 2007 components are 32 bit.The error is simply that Access crashed (no error message just your database is being restarted) on a line in code where I was creating a new ado recordset.Comparing the references to a to a working version of the database on a similar machine which has no Office 14 components I noticed that the DAO or ACE reference was set to Microsoft Office 14 Access Database Engine Object Library on the working machine it was set to Microsoft Office 12 Access Database Engine Object Library. No problem I thought I would reset the reference to the 12 version. I navigated to the ‘C:\Program Files (x86)\Common Files\microsof…

SharePoint 2010 - Multi Language User Interface

Among the many new user interface features found in SharePoint 2010 there is now greater support for localised sites. In previous versions the main method for getting translated versions of a site was via site variations. Now SharePoint sites can have their user interface presented in various languages. Now I hear you say SharePoint 2007 could do that, just set the language in the site settings and I would have to agree however the difference is that 2010 now support Multiple languages at the same time. A user can select their preferred language to be used when visiting the site simultaneously with another user using a different language!In order to enable this you need to be running SharePoint server and install the language packs relevant to your users. The Language pack down load site is here the dropdown list select the language you wish to download then press change …

SharePoint - Sometimes you can't change the Colum ordering of a list or library

Sometimes the link (in the list or library settings) about the Colum ordering is not visible. If you want to change the column ordering of the SharePoint 2007 Form in that situation you can edit the url e.g. from:http://my-url/_layouts/listedit.aspx?List=%7B02B1A398%2D7077%2D47AF%2DA455%2D4C4E82C77CC3%7Dtohttp://my-url/_layouts/formEdt.aspx?List=%7B02B1A398%2D7077%2D47AF%2DA455%2D4C4E82C77CC3%7DAs you can see you only have to change to part before .apsx from listedit to formEdt.

SharePoint 2010 - Site Templates

Site templates are a great feature within SharePoint that allow us to build a Web Site, customise it then save it as a template or starting point for other Sites. For example a basic company site can be developed. Create a new site from this template and customise it to add say Sales Department specific content. The marketing department like the sales department site but want some changes – they simply create their site from the sales site template then make their own changes.Another possible scenario on the Web – a SharePoint server dedicated to user groups or social clubs for example – one group builds their site containing common content (member list, Event dates, speaker lists) then other groups use templates to create their own and build from the common starting point rather than starting from scratch. No need for any developers at all :-(Site templates as in ‘.STP’ files have gone from SP 2010. When a site is saved as a template a solution file (‘.wsp file’) is created and added…

SharePoint 2010 - Calendars

As part of a talk I am creating and part of my general SP 2010 study I have been looking into the SharePoint 2010 calendar list. The new overlay feature is really nice. It allows you to show many calendars at once (overlayed) so for example a project manager could look at calendars from different project sites and plan common resources without having to look at each calendar individually. This has been available via third party web parts for a long time but now it's available out of the box. Since it has been blogged about in abundance elsewhere I won't reproduce the details here.
One thing I had hoped for was the listview web part representing the calendar would be able to 'connect' using the web part connection technology to allow filtering between web parts. I.E. From the part representing my calendar I would like to be able to select a date and have this passed through the connection to other web parts.
In the browser the connections menu is greyed out within …

SharePoint 2010 - Error occurred in deployment step ‘Recycle IIS Application Pool’

SharePoint 2010 icin Visual Studio 2010 uzerinde uygulama gelistirip deploy ettiginizde bazi guvenlik ve erisim hatalari alabiliyorsunuz. Bunlardan en belirgini ise asagidaki olandir.Error occurred in deployment step ‘Recycle IIS Application Pool’: <nativehr>0×80070005</nativehr><nativestack></nativestack>Access deniedCozumu ise oldukca basittir. Gelistirme yapmis oldugunuz kullaniciyi site collection administrator grubuna eklemis olmaniz gerekir. Sonrasinda sisteminizi logoff/logon (eger imkaniniz yoksa ayarlar 15 dakika sonra kendisini aktiflestirir) yaparak kullanabilirsiniz. Ayrica gelistirme yaparken Visual Studio ‘yu Administrator olarak acmayi unutmayin!!!Iyi gunler…