mscorlib

Visual Studio 2015 - C# Windows Universal App missing assembly reference

痞子三分冷 提交于 2019-12-21 10:52:07
问题 Today I cloned my windows universal app project from github onto a new machine running a new install of Visual Studio 2015. After the project loaded, I noticed that all of my pages and properties were underlined red with many errors CS0246 C# The type or namespace name "<name>" could not be found (are you missing a using directive or an assembly reference?) as well as others such as CS0518 C# Predefined type 'System.Void' is not defined or imported CS0012 C# The type '' is defined in an

LoadLibrary 193

跟風遠走 提交于 2019-12-21 02:13:08
问题 I am creating a C++/CLI dll that will be loaded into a legacy c++ application. The legacy application does this with a traditional call to LoadLibrary. Both the application and the C++/CLI dll are compiled in 64 bit mode. When the LoadLibrary call happens, it fails with error 193. This usually means that some non-64bit component is trying to load. When I look at the dll load output in visual studio 2010, I see the the failure is occurring when mscoree.dll is being loaded (to be exact, I see

Mono return error: mono mscorlib.dll was not found

孤街醉人 提交于 2019-12-20 05:26:31
问题 I've developed a mono gtk 2.10 application with monodevelop 2.4. But, when i try to launch the .exe outside my develop machine (about 5 virtual machine) i get ever: mono mscorlib.dll was not found Also if i add mscorlib.dll to the app directory, i get the same error. Where i'm wrong ? 回答1: It might be that your program was built against a version of the runtime that isn't installed on the other machines. For instance, If you compiled against 1.1 or 4.0 and your other systems only have 2.0 or

The assembly mscorlib.dll was not found or could not be loaded

南笙酒味 提交于 2019-12-19 04:13:05
问题 Firstly, I've seen this question, and while the problem seems similar, it is not the same. I'm running a trimmed down mono, built without the 4.5 profile using ./configure --with-profile4=yes --with-profile4_5=no . I have an application that targets .NET 4.0, built using mono's xbuild . When I run it against my trimmed down mono installation, I get this error: The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/opt/my-app/mono/lib/mono/4.5

localize mscorlib.dll Resources

﹥>﹥吖頭↗ 提交于 2019-12-13 10:32:03
问题 I've opened mscorlib in ILSpy and I see in resources folder: Name, Value [Format_InvalidString, Input string was not in a correct format.] Is there any way to localize this string? (Context: silverlight app throws this message whenever incorrect number is entered and it would be much easier to just change this than to write converter and apply it in hundreds of places). 回答1: Silverlight is localized with satellite assemblies. You can see those in your Silverlight install location. On my

Code analysis CA0001 error for project using NSubstitute

半腔热情 提交于 2019-12-13 03:38:25
问题 I have a (.NET 4) test project which references (the .NET 4) NSubstitute.dll. When I run CodeAnalysis against the project I get a number of CA0001 errors: Running Code Analysis... MSBUILD : error : CA0001 : The following error was encountered while reading module 'NSubstitute': Could not resolve type reference: [mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]System.Runtime.CompilerServices.ExtensionAttribute. MSBUILD : error : CA0001 : Rule=Microsoft

Howto take a glimpse into mscorlib?

久未见 提交于 2019-12-11 02:00:44
问题 I want to read data into RSAParameters structure ( RSAParameters ) and did check twice, that the data is correct. But still, I get an error "invalid data" exception for this: bei System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) bei System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey) bei System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters

Azure Cloud Service: “Requested registry access is not allowed”. VS2015

依然范特西╮ 提交于 2019-12-08 06:44:51
问题 I've been trying for days to migrate our backend solution running on Azure 2.6 and Azure Cloud Services to Azure 2.7 in VS2015 on Windows 10 workstation, but without any luck. I've tried on multiple computers using a clean install of Windows 10 Pro x64 with Visual Studio 2015 Enterprise (all features installed). All updates available in both Windows Update and Vs2015 are installed. I create a new Cloud Service solution, with one Empty web role. I've set VS2015 to break on "Common Language

IObservable ambiguous reference error

断了今生、忘了曾经 提交于 2019-12-07 03:13:22
问题 I'm using Reactive extensions in my WPF application. And while using it I'm getting below ambiguous reference error. The type 'System.IObservable<T>' exists in both 'mscorlib.dll' and 'System.Reactive.dll' I tried with fully qualified name also and tried this url as well, but didn't get any luck. I'm using .NET 4.0 version of Reactive Extensions. My Code: using System; // mscorlib.dll using Rx = System.Reactive; public Rx.IObservable<int> BytesReceived { get { return _bytesReceivedSubj; } } /

IObservable ambiguous reference error

99封情书 提交于 2019-12-05 06:43:47
I'm using Reactive extensions in my WPF application. And while using it I'm getting below ambiguous reference error. The type 'System.IObservable<T>' exists in both 'mscorlib.dll' and 'System.Reactive.dll' I tried with fully qualified name also and tried this url as well, but didn't get any luck. I'm using .NET 4.0 version of Reactive Extensions. My Code: using System; // mscorlib.dll using Rx = System.Reactive; public Rx.IObservable<int> BytesReceived { get { return _bytesReceivedSubj; } } // Not valid as IObservable is in System namespace of System.Reactive. public IObservable<int>