HttpConfiguration assembly reference error

We developed Asp.net MVC application using .net 4.5 in VS2012 then later We decided to recompile in .net 4.0 by changing Target framework in project properties. Now we are getting error like
"Error 1036 The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) " in WebApiConfig.cs file.
System.Web.Http.dll is (default) referenced from "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Web.Http.dll" and ''HttpConfiguration" class is appears
in blue color, I mean it resolves (see below attached image) when we goto definiation but throws error.
Please share your suggestions to fix this issue.Thanks

Hello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Since you are working with ASP.NET MVC Application, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
 for better solution and support.
Best regards,
Amanda Zhu <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

Similar Messages

  • 'Color' Assembly reference error

    Hey, I get this error: "The type or namespace name 'Color' could not be found (are you missing a using directive or an assembly reference?)"
    I tried google but cant find anything related to a 'Color' assembly reference.

    If you see some ‘using’ directives at the beginning of the file, then add this one:
    using System.Drawing;
    If now you receive other errors, perhaps caused by missing assembly, then show them.
    Thank you for your reply!
    "using System.Drawing;" was already there
    when I got the error.
    using System;
    using System.Text;
    using System.Data;
    using System.Drawing;
    using System.Threading;
    using System.Reflection;
    using System.Windows.Forms;
    using System.Collections.Generic;
    using System.Runtime.InteropServices;
    using System.ComponentModel;
    using System.Diagnostics;
    using SlimDX.Direct3D9;
    using SlimDX;
    using System.Linq;

  • Strange assembly reference error...wrong version?

    Post Author: redwing19
    CA Forum: General
    I'm using Crystal Reports with Visual Studio 2005 and I get an error when I try to run my app that says: "The type
    initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory'
    threw an exception." with an InnerException of "The type initializer
    for 'CrystalDecisions.Shared.SharedUtils' threw an exception.".I'm pretty sure this is due to the version and targeted runtime of the assemblies.  When I first created my "Crystal Reports Application" the references that are added are as follows:CrystalDecisions.CrystalReports.EngineCrystalDecisions.Enterprise.FrameworkCrystalDecisions.Enterprise.InfoStoreCrystalDecisions.ReportSourceCrystalDecisions.SharedCrystalDecisions.Windows.FormsBut for some reason the Framework and InfoStore assemblies are version 9.2.3300.0 and target the v1.0 .Net runtime, while the rest of the dlls are 10.2.3600.0 and target the v2.0 runtime.If I delete those two references, they will automatically be re-added when I create another report or drag a Crystal Reports component onto a form.  And these re-added references will be the correct version of 10.2.3600.0, but in the properties window, it still says they target the v1.0 .Net runtime.Anyone know what's going on here?  How can I get the 10.2.3600.0 version of these two assemblies, and have them target the v2.0 runtime? 

    Post Author: dynocomp
    CA Forum: General
    Try changing the company name in your AssemblyInfo.vb:
    <Assembly: AssemblyCompany("Company Name")>
    to
    <Assembly: AssemblyCompany("Anything Else")>

  • Google.Apis assembly reference error

    I have created a custom log in page for an on premise SharePoint 2013 site. I have then added logic to use Google's authentication
    to log in to the SharePoint site. When I build the project I am getting this error: error
    CS0012: The type 'Google.Apis.Services.BaseClientService' is defined in an assembly that is not referenced. You must add a reference to assembly 'Google.Apis, Version=1.8.1.31687, Culture=neutral, PublicKeyToken=null'.
    I have added this reference. Also I have added the reference to my GAC. When I double click the error it takes me to this part of the code: private PlusService ps = null; but I do not get any red marks or errors on the line in the code, only in the output
    window. I have used the code Google gives as a sample and I have downloaded the api references from nuget as Google suggests. Does anyone have any ideas or has anyone come across this before? Thanks in advance.

    Hi,
    According to the error message, the project did not reference the assembly “Google.Apis”.
    I suggest you do as the followings:
    1. Make sure you have referenced the namespace in the page.
    2. You can move the dll file to the SharePoint Site Bin folder directory and try if it works.
    3. Check if the assembly has been installed properly in the default location.
    %windir%\Microsoft.NET\assembly
    Feel free to reply with the test result.
    Best regards
    Patrick Liang
    TechNet Community Support

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

    we are using VS 2013. i have created new build definition and run that created build its getting failed and showing error message as "The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly
    reference?)" and "The type or namespace name 'WinComboBox, UITestControl, WinTitleBar.....etc' could not be found (are you missing a using directive or an assembly reference?)". in the error log is showing the error number are "error CS0234
    & error CS0246". 
    Actually i have created build for automation execution from MTM lab environment. i have to assign the build to the test plan. once the build is passed , i will assign to the test plan and run with automation options. 
    if i build the solution its getting successfully build. but when i run the created build definition it show the error message's.  
    Could you guide me how to resolve the above error's ? 
    Thanks in Advance...

    Hello Divakar Ponnada,
    I have checked the error CS0234 from here:
    http://msdn.microsoft.com/en-us/library/0e92xd7b.aspx
    It means your project cannot find the proper reference to your type "Visual Studio" from the namespace Microsoft.
    May I ask this question, does your build definition means something like the following blog described?
    http://www.asp.net/web-forms/overview/deployment/configuring-team-foundation-server-for-web-deployment/creating-a-build-definition-that-supports-deployment
    "A build definition is the mechanism that controls how and when builds occur for team projects in TFS. "
    If that is the problem, may I ask whether your build agent is in the same machine where you build your application?
    The build agent will first search for the reference from its local GAC and if it cannot find it, the error like you said will reports. Please manually build your project from your build agent machine to see the result, or install Visual Studio to your build
    agent machine. In that way I think your problem may fixed.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040

    Please assist I am on a Windows 7 64 bit machine I have VS 2010 and have been fighting with this new program that I was brought on to help with - Issue is that I am unable to get rid of this issue. There is so many solutions but none have worked. If someone can give me some help with what has worked for you.
    The error is Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    This is with CR installed on 64 bit.
    Thank you very much for any assistance with this problem,
    Kris

    Hi Vittorio
    Please enter the search string 'log4net crystal net' into the search box in the top right corner. When the results come up, click on the Support Notes link. That will filter for the KBAs that you want to have a look at.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    ===========================================================
    This is a SQL Server 2012 Developer Edition of SSRS.
    I am getting this error when navigating to http://servername/Reports. The reports site was working fine, until I installed a SQL 2014 Developer instance (including SSRS) on the same server.
    I can still get to the http://servername/ReportServer site.
    Neither of these are using Sharepoint.
    Any help resolving this issue would be greatly appreciated.
    Below is the stack trace.
    ===========================================================
    [FileLoadException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] System.Reflection.Assembly._nLoad(AssemblyName
    fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity,
    StackCrawlMark& stackMark, Boolean forIntrospection) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String
    assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190 [ConfigurationErrorsException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel'
    or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1149
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +323 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +116 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +36 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection
    compConfig) +212 System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +174 System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +57 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
    virtualPath) +295 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +482 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
    context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +108 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
    noAssert) +171 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext
    context, String requestType, VirtualPath virtualPath, String physicalPath) +53 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +519 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +176 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +274
    ===========================================================

    Hi Glen,
    "The located assembly's manifest definition does not match the assembly reference." is generally caused by the loaded assembly's version is different than the expected version application refers to.
    In this case, it should be caused by:
    While starting Report Manager, the backend process ReportingServiceService need to load assemblies it refers to
    ReportingServiceService reads the compilation/assemblies element from web.config(under Report Manager virtual patch)
    If the compilation/assemblies is not existing, ReportingServiceService loads all assemblies from Bin folder. It can be verified from call stack System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory(). ReportingServiceService
    uses System.Reflection.Assembly.Load with the assemblies' name only to load assemblies.
    The Assembly.Load tries to load from the specify assembly by name from GAC at first. If it is found from GAC, it won't be loaded from Bin folder any more.
    Since Reporting Service SharePoint Integration mode is installed, a same assembly of 'Microsoft.ReportingServices.SharePoint.ObjectModel' with different version might be installed to the GAC. That causes the error "The located assembly's manifest definition
    does not match the assembly reference."
    For more information about the error message and the loading process, please see:
    http://blogs.msdn.com/b/junfeng/archive/2004/03/25/95826.aspx
    https://msdn.microsoft.com/en-us/library/yx7xezcf(v=vs.100).aspx
    Thanks,
    Jinchun Chen

  • The type or namespace name 'SPSite' could not be found (are you missing a using directive or an assembly reference?)_

    I am creating a Winforms application. I need to upload and download a file from Sharepoint.
     I have added reference to Microsoft.Sharepoint.Client.
    Below is the code to upload file:
    using System.IO;
    using Microsoft.SharePoint;
    private void Button_Click_1(object sender, RoutedEventArgs e)
                String fileToUpload = @"C:\Test.txt";
                String sharePointSite = "https://myshapoint";
                String documentLibraryName = "Test";
                using (SPSite oSite = new SPSite(sharePointSite))
                    using (SPWeb oWeb = oSite.OpenWeb())
                        if (!System.IO.File.Exists(fileToUpload))
                            throw new FileNotFoundException("File not found.", fileToUpload);
                        SPFolder myLibrary = oWeb.Folders[documentLibraryName];
                        // Prepare to upload
                        Boolean replaceExistingFiles = true;
                        String fileName = System.IO.Path.GetFileName(fileToUpload);
                        FileStream fileStream = File.OpenRead(fileToUpload);
                        // Upload document
                        SPFile spfile = myLibrary.Files.Add(fileName, fileStream, replaceExistingFiles);
                        // Commit 
                        myLibrary.Update();
    But i get the error "The type or namespace name 'SPSite' could not be found (are you missing a using directive or an assembly reference?)"
    I am not sure what else I am supposed to do here.

    Hi,
    If you want to develop a WinForm application to be only used in SharePoint Server, we can use Server-Side Object Model(use Microsoft.Sharepoint.dll) to achieve it. 
    If you want to use the WinForm application to be used both in Server side and Client Side, I suggest you use .Net Client Object Model(use Microsoft.Sharepoint.Client.dll) to achieve it.
    Here are two links for your reference:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/c357e3c7-37e9-4ded-83aa-a57beae0b0e4/how-to-upload-download-files-to-sharepoint-2013?forum=sharepointdevelopment
    http://msdn.microsoft.com/en-us/library/ff798388.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • The type or namespace name 'SQLite' could not be found (are you missing a using directive or an assembly reference?)

    Trying to get sql server compact up and running. I connected to a sqlite database and atuo generated the model.cs code.
    however, I get the following error.
    Error    1    The type or namespace name 'SQLite' could not be found (are you missing a using directive or an assembly reference?)    C:\Users\kenny\Documents\Visual Studio 2013\Projects\WindowsFormsApplication2\WindowsFormsApplication1\Model.cs  
     3
    Any help is greatly appreciated. Please provide some detail as I am novice. 
    Thanks

    Ok so I got the past that problem. I had to add the package System.Data.SQLite Core in Manage NuGet.
    Then I changed the auto-generated code "using SQLite" to "using System.Data.SQLite".
    But now I have a new problem, it says "System.Data.SQLite.SQLiteConnection' does not contain a definition for 'CreateTable' "
    Here is the code
    //This code was generated by a tool.
    //Changes to this file will be lost if the code is regenerated.
    //using SQLite;
    using System;
    using System.Data.SQLite;
    using System.Data.SQLite.EF6;
    namespace WindowsFormsApplication2
    public class SQLiteDb
    string _path;
    public SQLiteDb(string path)
    _path = path;
    public void Create()
    using (SQLiteConnection db = new SQLiteConnection(_path))
    db.CreateTable<servers>();
    public partial class servers
    public Int64 server_name { get; set; }
    public Double cpu_usage { get; set; }
    Any ideas why CreateTable is not available?

  • Visual Studio 2008 with BizTalk 2009 Missing Assembly Reference - Developing under Windows7

    I'm having a similar issue to this....> http://social.msdn.microsoft.com/Forums/en-US/2df94010-5755-4982-a02d-81f8feb51fda/visual-studio-2008-with-biztalk-2009-missing-assembly-reference?forum=biztalkgeneral
    Prior to going to Win7, I was developing on a Win-XP machine. I used to delete the generated code and have VS generate it again, but no luck. I get errors in the Build, similar to what shows in the Message Assignment shape in the orc. It's complaining about
    a missing part of a Multi-part message.  Oh, and the Multi-part message is a schema created in VS2005/BizTalk2006 R2, which was created on a separate Win-XP machine.
    Just wondering if anyone has come up with a fix to this? The previously documented entry did not seem to have a solution.
    Thanks.

    Jeff,
    Do you see your_orchestration.odx.cs ?
    If you do Can you try as following:
    1. Take backup of whole solution
    2. Delete all .cs files associated with biztalk artifacts, like odx.cs, xsd.cs, btm.cs
    3. Open orchestration and in any one of the expression shape copy all statements.
    4. Click OK to close the Expression window.
    5. Build the solution. (you should get errors)
    6. Goto expression and paste code.
    7. Build
    This has worked for me in past. May be it will work for you too.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • The type or namespace name 'IBM' could not be found (are you missing a using directive or an assembly reference?)

    please help on below error 
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
    Compiler Error Message: CS0246: The type or namespace name 'IBM' could not be found (are you missing a using directive or an assembly reference?)
    Source Error:
    Line 27: using System.Web.Services;
    Line 28: using System.Net;
    Line 29: using IBM.WMQ;
    Line 30: using System.DirectoryServices.AccountManagement;
    Source File: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\NBO\LogComplaint.aspx.cs   
    Line: 29

    Hello,
    >>using IBM.WMQ
    It seems you are using third party dll namespace reference in your project but that dll is not being added in project. Please get the IBM.WMQ dll and add it first in your current visual studio project by right click on project-->add reference.
    You can place this dll in GAC or can directly add to project as suggested by jaydeep.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • The located assembly's manifest definition does not match the assembly reference

    Hi All,
    I install Microsoft patch Patch KB2972207  which supports only Microsoft .NET Framework 1.1 SP1 on Windows Server 2003 R2 x86 update on my WS 2003.
    I am using Web Application which is having  .Net framework 2 SP1.
    Am I able to apply above Microsoft patch to that Web Application?
    After successfully installation of patch when I run browser for that Web Application I am getting Error stated :"The located assembly's manifest definition does not match the assembly reference"
    If i remove above patch and reboot my system...No such error occurs.
    Please let me know where is problem in high emergency!
    Thanks in advance!

    Check if these URL's help : 
    http://blogs.msdn.com/b/junfeng/archive/2004/03/25/95826.aspx
    http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference
    http://stackoverflow.com/questions/19811009/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference
    http://articles.runtings.co.uk/2010/04/solved-located-assemblys-manifest.html
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • The located assemblys manifest defination does not match the assembly reference.

    Hi,
    I have imported organization in new environment using .bak file. After completed deployment i am exploring the system but unfortunitly getting issues related to plugins on opportunity records. can you please anyone help me on this. Below i shared the log
    file and error screen.
    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9690.2165,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Detail: 
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220891</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <d2p1:key>OperationStatus</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <Message>Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9690.2165, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
    (Exception from HRESULT: 0x80131040)</Message>
      <Timestamp>2015-04-14T07:08:43.8293096Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText>
    [OpportunityPlugins.Plugins: OpportunityPlugins.Plugins.PostOpportunityUpdateEstCloseDt]
    [2d74942a-9799-e411-a3d6-00155d012d28: PostOpportunityUpdateEstCloseDt]
    Entered OpportunityPlugins.Plugins.PostOpportunityUpdateEstCloseDt.Execute(), Correlation Id: a8fdba7f-8b53-48e3-a237-6fe6388ac1f5, Initiating User: 81e71657-a917-e111-af73-00155d011f08
    OpportunityPlugins.Plugins.PostOpportunityUpdateEstCloseDt is firing for Entity: opportunity, Message: Update, Correlation Id: a8fdba7f-8b53-48e3-a237-6fe6388ac1f5, Initiating User: 81e71657-a917-e111-af73-00155d011f08
    Exiting OpportunityPlugins.Plugins.PostOpportunityUpdateEstCloseDt.Execute(), Correlation Id: a8fdba7f-8b53-48e3-a237-6fe6388ac1f5, Initiating User: 81e71657-a917-e111-af73-00155d011f08
    </TraceText>
    </OrganizationServiceFault>
    Kindly help me.
    I checked plugins registered in Database.

    You plugin assembly (OpportunityPlugins.Plugins.PostOpportunityUpdateEstCloseDt) has a reference to v.5.0.9690.2165 of the Microsoft.Xrm.Client assembly, and the error indicated that v.5.0.9690.2165 of the Microsoft.Xrm.Client assembly is not available in
    the new environment
    Ideally, plugins should not use the Microsoft.Xrm.Client assembly, but instead use the Microsoft.Xrm.Sdk assembly, which will always be available. So, the preferred solution would be to recreate the plugin assembly without the reference to the Microsoft.Xrm.Client
    assembly
    An alternate solution, which may be quicker, would be to recompile the plugin assembly against whichever version of the Microsoft.Xrm.Client assembly is on the system, but this won't solve potential future errors with future Crm versions
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.core.co.uk

  • The type or namespace name 'BusinessData' does not exist in the namespace 'Microsoft.SharePoint' (are you missing an assembly reference?)

    I am trying to compile my SharePoint 2010 solution(VS2010) in VS2013 to deploy in SP2013, i have removed all old 14 ref and added 15 ref for microsoft.SharePoint, office.server and other assemblies. 
    still i am getting "The type or namespace name 'BusinessData' does not exist in the namespace 'Microsoft.SharePoint'
    (are you missing an assembly reference?)"
    did i miss any step here or any version issue?
    any suggestions to resolve
    Thanks
    S.Venkata Appaji

    Hi,
        Just confirm that Target Frame work has been changed to 4.5 or not, if not changed it to 4.5 and give it a try.  Then also it gives error then check the SP reference, dll properties and check its version(it should be 15.0.).
    PS:-You can fine target framework under project properties->Application-> Target Framework.
    Regards,
    MS

Maybe you are looking for

  • OS Upgrade Using Target Disk Mode

    Is this possible? I have a 700 MHz eMac with CD-RW drive running Panther and I want to upgrade it using a Tiger DVD. If I put the eMac in Target Disk mode using my Intel iMac, is it possible to upgrade the OS on the eMac? My concern is that once I pu

  • How to get iPhone Safari to format text for its screen

    My wife loves her iPhone, but there's one thing that's very frustrating: Safari likes to format pages so that only a small portion fits on the screen, and you have to scroll left and right to read the text. If you use a "pinch" to shrink the window,

  • File Objects explode in word document

    Hai All, I am trying explode the various file object into word document (its like, object explode in word document) using Java but i cant do it. I searched many of the java sites and forums but not get right solution . Now i am using docx4j.jar file

  • Objects using dblinks become invalid

    I am using numerous functions / procedures / synonyms which point to other databases via dblinks. All was well when the dbLinks / synonyms were public. Last week I was asked to put up a test schema on the same database so I duly made all the public d

  • Workflow-001-DemoCommunitySeedApp.zip where can I get this file?

    All the links are broken. Can somebody please send it to my email [email protected]? Thanks.