When deploying the SharePoint solution from Visual Studio, you may sometimes face this error, especially after changing the Strong Name Key of projects.
In that case, you need to go to GAC, copy your project's public key token, and paste this value to your feature's "receiver assembly" string's proper place.
To find "receiver assembly" in properties window, you need to double click on feature and then this window appears.
Showing posts with label Sharepoint 2010. Show all posts
Showing posts with label Sharepoint 2010. Show all posts
Tuesday, November 20, 2012
Tuesday, June 21, 2011
Sharepoint 2010 : Deploying a WSP package to remote server easily
By using Sharepoint Management Console,
1) Uninstall-SPSolution -Identity package.wsp -WebApplication http://server
2) Remove-SPSolution –Identity package.wsp
3) Add-SPSolution "C:\blabla\package.wsp"
4) Install-SPSolution –Identity PernodTC.wsp –WebApplication http://server
Labels:
Deployment,
Package,
SharePoint,
Sharepoint 2010,
WSP
Monday, June 20, 2011
CAML & C#
If you are querying a Sharepoint 2010 List with CAML using C#, sometimes you can face inconsistent results. One of the most popular ones is not working OrderBy statements. After querying the list in C# with OrderBy query, you may see that the incoming list is still in default order.
The solution here is simple: In case you are using Querytag in your query string, just remove it. Your querystring should start directly with Where or OrderBy tag and this should solve your problem.
If it still does not, you can add Type field to your OrderBy query. Type="Number" or Type="DateTime" helps CAML interpreter to understand howto sort it. (Well, it should automatically detect it from Sharepoint therotically, yes, but the real life is never easy in Sharepoint)
The solution here is simple: In case you are using Query
The last thing in your checklist can be that CAML is a case-sensitive language, you can think about checking your query syntax and capital letters.
Labels:
CAML,
Order,
OrderBy,
Problem,
Sharepoint 2010
Subscribe to:
Posts (Atom)