Compatibility.... Downgrade a project from vs2012 to vs2008 - c#

I have a project created on my own pc with Visual Studio 2012, initialy with Entity Framework 4.5
I made it compatible with Entity Framework 3.5 because the computers where the application will run are Vista ones.. ( O_o )
After lot of debug, creating a new db compatible, creating the model of the new database, I finally performed this first downgrade and it's working on my computer with Entity Framework 3.5 as we can see in this screenshot: http://imagik.fr/view/128976
I can start the .exe on my computer without any problem. I have modified the App.Config connection string to give the right path for the database on their computer and then have tried, just insta crash when it works on mine..
Finally I have installed vs 2008 on one vista computer and I can't import my vs 2012 project, too recent. If I create a new project on 2008 and just create the classes with copy/paste, add libraries and references, I have a problem with my DB. the database.mdf version is 706 and can't be upper than 655.
I'm completely lost with these compatibilities problems... I know we can upgrate a 2008 project to 2012, but is it possible in the other way? Should it be a solution?
If not, what am I supposed to do? They told me "free technology", finally it isn't free at all.....
If anyone already met those kind of problems..
Thanks in advance for your help.
ps: If you need other informations, I can give screens, just ask me.
psĀ°2: I know there is a lot of problems like mine on the web and on StackOverflow, but I have already done what they said (Edit the properties of the project and make its EntityFramework to 3.5, adding the .csproj of the 2012 on a blank vs 2008 project, etc.)

Related

Visual studio 2022 data source configuration wizard Error

Hello guys. I am getting an error like this when connecting to database in visual studio 2022.
Prior to this VS 2022 Note you see that VS 2022 has x64 processes. Even if it seems that it warns about Access Database, it is not only about Access Db.
Developers can prefer to use historical OLE Db Providers to connect to SQL Databases. Specially when they want / need to use DataSet / DataTable etc. components.
Almost all x86 Processes (means project references, specially old ones) should be compatible with this situation when these want to use in Project.
Please Check that your reference dlls are x64 or not.

Oracle Data Provider for .NET with Entity Framework 6.0

I have a problem with Oracle Data Provider for .NET. I have:
just disinstalled and reinstalled new version of Oracle, I have now 12.1.0
Visual Studio 2015
Oracle Developer Tool for Visual Studio
I want to create a ASP.NET Web Application with Entity Framework 6.0. If I open one of my old projects or when I create a new one and download from Nuget Oracle.ManagedDataAccess and Oracle.ManagedDataAccessEntityFramework this appears:
and if I click OK, I continue and create a model based on Oracle it always says that my EntityFramework is not correct for that provider even if I followed this link or it crashes after setting the connection and click "Next".
What's wrong? Please help me..
Thats how I solved it:
Remove all folders wich names contains "Oracle" from:
Windows\Microsoft.NET\assembly\
Windows\assembly\
Then restart Visual Studio and it will work.
I used cmd in administrator mode to do that, because explorer or other file managers did not allow me to remove that folders.

C# WPF Program Relase not working on other computers

This may be a noobish question, but suppose I have a genereated exe from a program I ran in release mode on VS 2015, if I want to send my program to another computer, of course I send the Release folder (that has all of the appropriate DLLs + the main exe).. But does the user on the other computer have to have Visual Studios 2015 run my exe? If so, should I just make it so my program is actually installed on the other computer? It seems that when I send my exe to a computer that only has VS 2012 it doesn't want to run, but when I sent my exe to a computer with VS 2015 it will run.. Is this just coincidence perhaps?
If you've generated the .exe in VS 2015, it has probably compiled using .NET 4.5.1 or above. This will not be the case for VS 2012. You need to either: compile your program against an earlier version of the .NET framework, which you can do in the project's properties. Or, find out what version of the .NET framework you need, and make sure the client system has that .NET framework installed.
No, you don't need to have VS instaled on client computer, neither 2012 nor 2015. All you need to ensure is that the computer have the same NET framework as your project has. For instance, if you project use Framework 4.0, you sen the release folder content and if that computer has the framework installed it should work. You must also check App.Config for your connection string if you are using a database.

Can't make new project in Visual Studio 2012

Yesterday I installed Visual Studio 2012 Express for Web on Windows 7 Home Premium. When I launched it and trying to set up new project, I wasn't able to do it, because no .Net framework was seen in New Project window. I got message "No framework is selected, you must select one before creating a project". Then I reinstalled twice Visual, but it didn't solve my problem. I also tried to install .Net 4.0 manually, but I got messsage that newer version is already installed, which means that .NET 4.5 framework was installed on my computer during Visual's installation. Is there any possible solution to my issue, beside reinstalling Windows? I would be very grateful for help.

Opening Visual Studio 2005 C# project with CrystalDecisions

First I'm sorry for my bad english it's not my native language.
I'm new to my entreprise and I have to re-code a C# application. This application is in relation with CrystalReport and uses many references called "CrystalDecisions.blabla".
My problem is: by default the project opens with Microsoft Visual C# 2008 but the references to CrystalDecisions are missing. The guy that first developped the app was working on Microsoft Visual Studio 2005 but the one installed on my computer doesn't support C#, only sql server.
What am i supposed to do? Is there some libs i can download to use on Visual C# 2008? Do I have to reinstall Visual Studio 2005 to have C# supported?
Thanks in advance :)
Edit: I actually had a file called "CRRedist2005_x86.msi" which I never noticed. After installing those redist the references worked. Thank you guys for your fast answers.
I wouldn't download a new binaries for VS 2008, as considering that previous version was on VS 2005, means that it compiles against .NET 2.0, so for supporting original CrystlReport binaries its enough for you to set target framework of your project to version 2.0
It's (I think) almost impossible that you install VS 2008 and don't have a support for C#. I suppose you're talking about ExpressEditions which are free of charge. Can have a look here for downloading C# for 2008. If you wan that. I would suggest, at this point download immidiately the Visual C# 2010 Express.
Hope this helps.
The Crystal Reports references are linking to files Visual Studio can't find. Copy tese DLL files to your computer en relink the references.

Categories