Showing posts with label 2012. Show all posts
Showing posts with label 2012. Show all posts

Sunday, March 1, 2015

Cant open sqlproj with Visual Studio 2012 Install SQL Server Data Tools

I recently updated to Visual Studio 2012 Ultimate.
When i tried to open an existing SQL Server SQLCLR Project (*.sqlproj), it says that the sqlproj is incompatible with the version I am running.

How-i-fixed-it:
 
 
I installed the SQL Server Data Tools from http://msdn.microsoft.com/en-us/data/tools.aspx.

I found the solution here:

http://stackoverflow.com/questions/11906691/visual-studio-2012-csproj-and-sqlproj

and here:
http://www.comoke.com/index.php/2012/10/visual-studio-2012-database-project-sqlproj-project-type-not-supported/

and here:
http://blog.tentaclesoftware.com/archive/2013/02/11/visual-studio-2010-and-2012-sqlproj-interoperability.aspx
Read more »

How to update Linq to SQL dbml database layout in Visual Studio 2012

I have not been working with the Linq to SQL tool before and had to make some changes to an existing Visual Studio 2012 project. Some new colums were added to a database table and i needed to update the corresponding dbml file in the Visual Studio project.

How-i-fixed-it:
I found the solution here: http://stackoverflow.com/questions/1110171/how-to-update-linq-to-sql-dbml-file

Delete the modified tables from the designer, and drag them back onto the designer surface from the Database Explorer. I have found that, for this to work reliably, you have to:
a. Refresh the database schema in the Database Explorer (right-click, refresh)
b. Save the designer after deleting the tables
c. Save again after dragging the tables back.
Read more »

Saturday, February 28, 2015

Installing Visual Studio Tools for Applications 2012 after getting Compatibility mode error

I went to use the developer tab of InfoPath 2013 and it told me that I needed to download the Visual Studio Tools for Applications 2012.  They were even nice enough to include a link!
When I downloaded the file and ran it, I got this error:
Setup Blocked, Windows Program Compatibility mode is on.  Turn it off and then try setup again.
I was not using Compatibility mode, and so this error didnt make sense.
Im running Windows 8.1 with Update 1 and I didnt know if that was related.


I tried everything..  I installed the full Visual Studio 2012 Suite with Office Tools, I installed the VS2012 SDK, and still nothing worked and this wouldnt install.

Here is some of what I found in the log when it fails.

[15EC:11C4][2014-05-28T19:06:50]: Condition CompatibilityMode = 0 evaluates to true.
[15EC:11C4][2014-05-28T19:06:50]: Condition (VersionNT < v6.1) evaluates to false.
[15EC:11C4][2014-05-28T19:06:50]: Condition (NOT netfxfullredist_43_DetectKeyExists) OR (netfxfullredist_43_DetectKey < v4.5) evaluates to false.
[15EC:11C4][2014-05-28T19:06:50]: MUX:  Stop Block: CompatibilityMode : Windows Program Compatibility mode is on. Turn it off and then try Setup again.

The version I was using was published on 4/30/2013 and is here

Turns out that if you rename your download (vsta_setup.exe) to something else, it will not run correctly.  You must leave the name alone when you download it.  For example, if you download it twice and the second download is called vsta_setup (1).exe, executing that file will not work!

Hope this helps!



Read more »

How to migrate upgrade update MS SQL Server 2000 database to SQL Server 2012

I was looking for a way / description how to upgrade an existing SQL Server 2000 database to SQL Server 2012.

How i fixed it:
SQL Server 2000 database has to be upgraded to 2005/2008 first.

If found the right hints how to do it in the SQL Server Forum here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/8ab5617e-0644-4434-96af-ebc04ba89f75/upgrading-from-sql-2000-to-2012-how

The procedure is described well in this document:
http://download.microsoft.com/download/9/5/3/9533501A-6F3E-4D03-A6A3-359AF6A79877/SQL_Server_2012_Upgrade_Technical_Reference_Guide_White_Paper.pdf

It says (page 241), that i have to first upgrade the database from 2000 to 2005/2008 and then to 2012.



 
Read more »

Microsoft System Center 2012 Agent removes C 2005 Runtime version 762

Problem
Installing the Microsoft System Center Configuration Manager 2012 Agent  (with or without the SCCM 2012 Endpoint Protection) breaks Infor ERP Express (Visual) and also the Barcode module.
The SCCM 2012 client is at RTM.  This problem was not present with Beta 2 of SCCM.
This is the error:
"This application has failed to start because its side-by-side configuration is incorrect."

The Event Viewer says this dependant assembly cannot be found:
Microsoft.VC80.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"

If I went to c:windowswinsxs, the folder that should have this assembly is missing.
When I check the Previous versions snapshot of the folder before SCCM 2012 was installed, I can see that the SCCM agent (ccmsetup.exe) had removed the .762 versions.  This was on a x64 machine, but since Visual is a 32 bit app, we need the x86 version of .762.

Problem SolvedThis was tested on Windows 7 Enterprise x64 SP1 with Infor ERP Express Visual Manufacturing 7 RTM with no patches.

The error happens when Visual 7 is looking for this:
Microsoft.VC80.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"

It looks like the Microsoft System Center Configuration Manager (SCCM) 2012 Agent (Not the Enpoint Protection) upgrades the x86 version of The C++ 2005 Runtime to the latest SP1 build and this seems to have removed the folders that relate to build 8.0.50727.762 in the c:windowswinsxs and replace them with build 8.0.50727.4027

It seems that if a PC is up to date with the latest copy of the C++ runtimes and still has the .762 version, then everything works and that explains why some PCs didnt break.
When SCCM installs, if it finds that the latest .4027 version was already installed by something else, then it skips the install and thus doesnt delete the Runtime version (.762) that Infor Visual 7 needs.

Infor is working to fix this in its installer for the next Service Pack of Visual 7:
Right now the installer checks to see if the C++ Runtime is there, but doesnt check the version. Since it found the .4027 build, it didnt install the .762 build that would have resolved this issue.


Microsoft needs to update SCCM so that it doesnt remove build 8.0.50727.762

To fix this problem
Download and install the correct C++ 2005 Runtime from here:
http://www.microsoft.com/download/en/confirmation.aspx?id=5638
This should be run on both x86 and x64 machines.
Read more »