Skip to main content

Posts

Showing posts from December 14, 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