matlab 2011b x64 and visual studio 2012

4 views (last 30 days)
John Goldis
John Goldis on 29 Jul 2013
Answered: Stephan on 22 Nov 2013
Hi, I have matlab 2011b x64 and I'm trying to use the deploytool to compile a .NET assembly targeted to .NET framework 4.0 and use the generated dll in Visual Visual Studio 2012 Ultimate. Both VS and Matlab are running on Windows Server 2008 R2 and it's a x64 version of windows. I have the Windows SDK 7.1 installed as well as the Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1
1. I ran msbuild -setup and chose Microsoft Visual C++ 2010 Express as my compiler. I got the following warning: Warning: The default location for Microsoft Visual C++ 2010 Express compiler is: "C:\Program Files\Microsoft Visual Studio 10.0" but either that directory does not exist or the configuration is invalid. but I proceeded anyway and it seems to have worked: 2. I built my deploytool project selecting .NET framework 4.0 in the settings and the build succeeded. 3. I took the generated dll and added it as a reference to my VS C# project, however, when I try to instantiate an instance of my class, I get a vshost.exe has stopped working error. Prior to this error, I was getting a lot of other errors about missing dll files associated with the mcr and the only way I could fix those was to copy all the mcr dll files to my VS project debug folder but now I'm getting this vshost.exe error and I have no idea how to proceed.
Any help would be greatly appreciated
thanks John

Answers (1)

Stephan
Stephan on 22 Nov 2013
I see the same issue on Win8 x64 with Matlab 2013b x64, Visual Studio 2012. Any Solutions known?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!