Skip to main content

Posts

Showing posts from 2014

Error occurred in deployment step 'Add Solution': Failed to create receiver object from assembly

Hi guys  you may face similar error during deployment-"Error 46 Error occurred in deployment step 'Add Solution': Failed to create receiver object from assembly "xyz.abc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d7d9dedsssef903c1", class "xyz.abc.Features.WalesEventReceiver" for feature "xyz.abc_Wales" (ID: 0a24487f-ee53-ddd31d-0fd595c7297f).: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'xyz.abc.Features.WalesEventReceiver' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'xyz.edf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2be929392a22d4bb' or one of its dependencies. The system cannot find the file specified. File name: 'xyz.edf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2be929392a22d4bb'    at xyz.abc.Features.WalesEventR

Error: the selected file is a solution file but was created by a newer version 2010

Hi Guys   I faced an issue while opening project solution using visual studio 2010 . It was showing an error -"Error: the selected file is a solution file but was created ...". I knew why this error was coming . it was just because i had opened this solution using visual studio 2012 and did certain modification and  checked in the solution. Microsoft visual studio has strange issue which is "Backward incompatibility" (Seriously strange!!) .When i opened this solution using visual studio 2010 it started throwing the error as mentioned above. So did some work around and fixed the issue as follows: Open the solution in NOTEPAD instead of visual studio  Edit the items as mentioned below           Replace the format version from  12 to 11 and replace visual studio  2012 to 2010 as mentioned in the snapshot Save the file and again open with visual studio 2010. It will start working fine thanks pradeepa achar

Error occurred in deployment step 'Add Solution': A feature with ID **************** has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

This is the obvious issue while deploying a sharepoint solution from visual studio . This is simple to fix . Open visual studio  and double click on feature 2.Open the property window (View menu ->property window) and set the Always Force Install as True 3. Do the same thing for all the features in the solution and deploy. It will work like charm !!! Thanks Pradeepa achar

create multiple web applications on 80 port in sharepoint

This is an obvious requirement from any client when it comes to hosting for http. if you want to host multiple site collections on same 80 port , it can be achieved through following steps. Create a web application on 80 port and provide the host header as the alternate access mapping url content without http://. i.e suppose the alternate access mapping url is http://indiansharepoint.com  then you have consider the host header as indiansharepoint.com . Look at the below attached snapshot.      2.Create another web application on 80 port itself and provide the host header as the alternate access mapping url content without http://. i.e suppose the alternate access mapping url is  http://IndianGeek.com  then you have consider the host header as  IndianGeek.com  . Look at the below attached snapshot.     3.Now Create site collections for both the web applications as usual. I am not going to give explanation about it here.      4. Now open the file hosts pr

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults

Hi Guys,   I came across this issue  today. I was totally blank. Later i started observing the issue and realised that, this issue is caused just because of  mismatch of assembly version or any attribute  in Security token service's web.config file (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\SecurityToken). Actual issue was i upgraded the assembly version and didn't do changes in web.config file of security token service This blog helped me to fix my issue http://underthehood.ironworks.com/2011/05/sharepoint-2010-an-exception-occurred-when-trying-to-issue-security-token-the-server-was-unable-to-p-1.html thanks pradeepa achar

The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator

You might have developed a functionality where data is being saved in a SharePoint list. By the time you developed this functionality it was working fine.As users adds the data , some day your functionality doesn't work. That means, the data which is present in the list is not being retrieved. Don't be panic. Just open the LOG file which is present in 14 hive folder. You will come to know about this bug with the statement -"The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator". Now what you have to do is, go to central administration site.  1.Click on Manage web application 2.Select the web application on which your sitecollection is created. 3.Click on General settings and select Resource throttling 4.by default list view threshold would be 5000. your list might have data more than 5000. So , increase the number to required threshold limit. you can make it 10000, 20000 like this. Do a i

Retrieve recent 7 days items from SharePoint list using CAML Query

This is an interesting stuff even though it is very simple. Assume we have to retrieve  recent 7 days items from a sharepoint list. For this purpose obviously we need to use CAML query (static query, not dynamic) . You can use the following code snippet for the reference.  Assume you have got SPSite object and continue with the following snippet. SPList list = site.RootWeb.Lists["PradeepaStats"]; SPQuery query = new SPQuery(); query.Query = "<Where><Eq><FieldRef Name='TaskDueDate' /><Value IncludeTimeValue='TRUE' Type='DateTime'>[Today-7Day(s)]</Value></Eq></Where>"; SPListItemCollection items = list.GetItems(query); Hope this  may help someone Cheers Pradeepa achar