.net 4.5 not working with VS2010, INotifyDataErrorInfo not found - wpf

I installed the .net 4.5 framework, but Visual Studio gives the following error
error CS0246: The type or namespace name 'INotifyDataErrorInfo' could not be found (are you missing a using directive or an assembly reference?)
I modified the project reference paths to the following
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\
but then I get the error
error MC1000: Unknown build error, 'Could not load type 'System.ComponentModel.TypeConverter' from assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Has anyone encountered or resolved this issue before?

Since .NET 4.5 is still in beta, I think it's only officially supported in the VS11 Developer Preview, not in VS2010.

Related

Project won't build because it can't load an assembly

Reports error on loading dll
I'm using Visual Studio 2019 Enterprise version 16.2.0
I have a dll library called RDLFunctions.dll to use in another WinForms application. Both projects are in the same solution that has worked for many years until I upgraded to Visual Studio 2019 and I can't go back. The WinForm app has about 50 reports and references the dll, but on project build, the reports that reference the dll all have similar errors (depending on which property is calling the dll).
Most research says to put the dll into several different folders:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\SSRS
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\PrivateAssemblies
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\PublicAssemblies
As well as to change values in:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\SSRS\RSPreviewPolicy.config to PermissionSetName="FullTrust"
I've deleted the file from all locations including the debug\bin directory of the dll project and rebuilt the dll. It went into the PrivateAssemblies folder automatically and I put it in the other directories. I removed/re-referenced the dll in the WinForms app, restarted the computer, etc. Nothing has helped. Everything used to work in Visual Studio 2017. I've excluded all reports in the project so it would build successfully, and it did. But when I added back even 1 report, I still got the errors.
Please help!
Here's and example of one of the error messages I get on the report "ActivityLog.rdlc"
Severity Code Description Project File Line Suppression State
Error Error while loading code module: ‘RDLFunctions,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could
not load file or assembly 'RDLFunctions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
system cannot find the file
specified. Reports C:\SourceCode\Atlas\Mwells-Development-branch\Reports\Claims\ActivityLog.rdlc
copy the dll file to folder:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
it's will work.
i'm using Visual Studio Enterprise 2019, Version 16.5.0

Unable to use VS2015 Project installers with 64-bit project

I was wondering if anyone was able to successfully create Installer Project for a 64-bit WinForms application on VS2015.
When I try to compile the installer project for simple 64-bit WinForms project that only displays a message box, I get the following:
ERROR: File 'WindowsFormsApplication2.exe' of project output 'Primary
output from WindowsFormsApplication2 (Debug x64)' targeting 'AMD64' is
not compatible with the project's target platform 'x86'
And when opening the installer project properties I don't find any option for changing the installer project to x64.
Edit:
I already tried the project properties:
However while the link provided in Cody Gray's comment is for VS2010, it suggests that "Creating 64-bit MSI packages is not available in Visual Studio Express Edition.
"
And I'm using VS2015 community which is free. Could that be the problem?

Ubuntu 12.04 + Mono: cannot find Windows forms

I am running Ubuntu 12.04 LTS. I need to run a Mono environment application (which needs Windows forms).
I have installed Mono runtime, from badgerports.org, version: mono-runtime 3.2.8+dfsg-4~dhx1+precise1.
When I go:
mono Application.exe
it bumps with:
Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
I have then installed:
libmono-winforms2.0-cil 3.2.8+dfsg-4~dhx1+precise1
But when running again:
mono Application.exe
I am getting the same error message as before:
Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
Help will be appreciated
Many thanks in advance
Helen
Edit: should I find where the library has been downloaded (how)? and then install it into Mono GAC using gacutil (How??)

Microsoft.Data.Schema.ScriptDom with VS2012 Ultimate

Does Microsoft.Data.Schema.ScriptDom ship with Visual Studio 2012 Ultimate?
I am trying to load a Visual Studio 2010 project that referenced this assembly and since moving to VS2012 (on a different PC) it can no longer find this assembly.
I thought VS2012 Ultimate had everything, so where has this assembly gone?
I have resolved this myself after discovering that Microsoft.Data.Schema.ScriptDom has been superseded by Microsoft.SqlServer.TransactSql.ScriptDom, which is deployed along with SQL Server 2012.
I faced similar issue, my project was referring to the following assembly
<Reference Include="Microsoft.Data.Schema.ScriptDom, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
I had visual studio 2012 only and I found the assemblies (Microsoft.Data.Schema.ScriptDom.dll) in the following folder,
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB
Changing the assembly version solved the issue for me.
<Reference Include="Microsoft.Data.Schema.ScriptDom, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
it is part of visual studio, so one has to install visual studio 2010 if they want version 10.0.0.0

visual Studio 2010: The application has failed to start because its side-by-side configuration is incorrect

I built a project in visual studio 2010 using c and got a DLL and was trying to use the DLL in postgresql 9.2. but i am getting this error:
ERROR: could not load library "C:\projmpt.dll": The application has failed to start because its side-by-side configuration is incorrect.
I installed the latest version of Visual C++ Redistributable Packages but still not working.anyone who has any idea about this problem?

Resources