So I am currently working on migrating an application that was living on a windows 2k3 server to a machine running Windows 2012 server. After moving the site over, setting the app pool correctly and configuring the rest of the site, I am receiving this error. After doing some research it appears to be a reference to one of the main .net core libraries, and they are added by default to any project started in Visual Studio. I have not been able to find them referenced within the project anywhere. I've pretty much exhausted google search and have not been able to find a solution to this problem.
The 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: CS1703: An assembly with the same identity
'mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' has already been imported. Try
removing one of the duplicate references.
Source Error:
[No relevant source lines]
Source File: Line: 0
Show Detailed Compiler Output:
C:\Windows\SysWOW64\inetsrv> "C:\Program Files (x86)\LINQ
Preview\Bin\csc.exe" /noconfig /fullpaths
#"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET
Files\cts\67846b7a\f5d88660\sfsllqyb.cmdline"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50916 for Microsoft
(R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C)
Microsoft Corporation 2001-2005. All rights reserved.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll: error
CS1703: An assembly with the same identity 'mscorlib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been
imported. Try removing one of the duplicate references.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll: (Location
of symbol related to previous error)
Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.6.1069.1
Would appreciate any insight.
Related
I have Build Definition
.NET Core Restore
.Net Core Build
.Net Core Test
.Net Core Publish
Publish Artefact
While I was using Core1.1 it worked without any issue. But after upgrading project to Core2.0 it fails with multiple errors like
error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Users\buildguest\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Parallel.dll' and 'C:\Users\buildguest\.nuget\packages\system.threading.tasks.parallel\4.3.0\ref\netstandard1.1\System.Threading.Tasks.Parallel.dll'
error CS0433: The type 'TargetFrameworkAttribute' exists in both 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
error CS0518: Predefined type 'System.String' is not defined or imported
Solution is perfectly building locally. I tried to add task Use .NET Core runtime 2.0.0 in the beginning but without any success.
You should add .NET Core Tool Installer task at the beginning of the build steps. Then install the SDK not only runtime. Then save your build definition and queue again.
I updated the Dropbox.API Nuget-package to 3.0.1 from 2.3.6 and now I'm getting the error
The type System.Object is defined in an assembly that is not referenced. You must add a reference to assembly System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
The following is marked red under source of error, but it's NOT my code
Line 31: public class _Page_Views_Dropbox_Index_cshtml : System.Web.Mvc.WebViewPage {
I tested to run the code with 2.3.6 just before updating and it all worked.
The compilation information box says
Microsoft (R) Visual C# Compiler version 4.6.1038.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
I have .Net 4.6.1 as target framework though.
Is this a bug in Dropbox's package so I should downgrade until they have fixed it or do I need to change something with code relating to MembersListResult?
Update
Dropbox has now fixed this issue with the update to package version 3.0.2.
I found the following information http://www.lyalin.com/2014/04/25/the-type-system-object-is-defined-in-an-assembly-that-is-not-reference-mvc-pcl-issue/
I tried adding only <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> under <assemblies>. I skipped adding <compilation debug="true" targetFramework="4.5"> since that feels related to the older framework that I'm not using.
It's now working, but after reading this from Microsoft, it looks like Dropbox did something wrong when compiling the Nuget-package https://support.microsoft.com/en-us/kb/2971005
In my website project built on .net 3.5, when I add reference to the Oracle.ManagedDataAccess.dll by adding this in the web.config
<add assembly="Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
it give this error
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
This error comes at .net version 3.5
The solution is to upgrade the .net version to .net 4.0 or above
Upgraded my project version to .NET 4.8 from .NET 4.5.2 and then
Installed the OracleManagedDataAccess nuget package into the solution (seems it wasn't installed)
This resolved the error.
I'm trying to publish my cloud service (which includes web role with devexpress 13.1 controls and worker role) to azure cloud.
Everything works very good on my local computer and the publish process complete successfully but when i'm trying to view the website on the cloud I get the following error:
Server Error in '/' Application.Configuration ErrorDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 31:
Line 32:
Line 33:
Line 34:
Line 35:
Source File: F:\sitesroot\0\web.config Line: 33
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045
Does someone know how to fix it?
Thanks for any help,
Tom.
Hi
I want to upload my web application but getting following error.
Server Error in '/' Application. Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.
Parser Error Message: Could not load file or assembly
'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304' or one of its dependencies. The
system cannot find the file specified.
Source Error:
Line 27:
Line 28:
Line 29:
Line 30:
Line 31:
Source File: C:\Inetpub\vhosts\extremeserverindia.com\olmpusagrotech\web.config
Line: 29
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=13.0.2000.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
WRN: Assembly binding logging is turned OFF. To enable assembly bind
failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There
is some performance penalty associated with assembly bind failure
logging. To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008
web application build in 32bit & our server is 64bit
You have to download and install Crystal Report 13.00 V in your System to fix this Error.
Please verify version # of your Crystal Report Run-time in Programs installed on machine, if version number is not matching with version number in error, please install correct version number from here, Service Pack 20 for 13.0.2000.0, Service Pack 21 for 13.0.2100.0 and so on. Hope that helps!