Can't load Microsoft SQL Server Data Tools in Visual Studio 2013 - sql-server-data-tools

When I start Visual Studio 2013 and click on SQL Server Object Explorer in Visual Studio 2013, I get this error:
The 'Microsoft SQL Server data tools' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file C:\User[user Name]\App data\Roaming\Microsoft\visual studio\12.0\Activitylog.xml'.
Please help me.
I also get two more following errors:
1st) HRESULT E_Fail has been returned from a call to a COM component.
2nd) the system cannot find the file specified (Exception from HRESULT: 0*80070002)
and the Log files errors:
(sory the formatting is not good)
ERROR# 266 Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\VSIX\Microsoft.VisualStudio.Data.Tools.SQLPDWExtensions.dll
ERROR# 267 Could not load file or assembly 'Microsoft.SqlServer.RegSvrEnum, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\VSIX\Microsoft.VisualStudio.Data.Tools.SQLPDWExtensions.dll

Related

ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable

I have an asp.net webform project that build on system1 but not on system2 (they both are windows 10 and visual studio 2022 Version 17.4.3) and when I build visual studio show an error in error list window :
"Severity Code Description Project File Line Suppression State
Error Metadata failure while creating assembly -- The file or directory is corrupted and unreadable. Modabber D:\BehsamanCode\Modabber\Modabber.Web\ALINK"
Also it shows this error in the output window :
"ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable"
I searched these errors and I enabled long path on windows10 and uncheck Sign the assembly but not work.
What should we do?
I don't know how but it resolved. I think system2 hard drive has a problem and after win10 repair it itself then restart windows the problem gone and project builded.

Could not load file or assembly 'CefSharp.Core.Runtime.DLL' or one of its dependencies. The specified module could not be found

We have installed CerfSharp using the NuGet Pakage Manager and created a class library which loads a ChromiumWebBrowser, it works fine on VisualStudio-2019,
When we deployed the class library(DLL) into target location along with required cefsharp supported files as mentioned the readme.txt, which throws following exception
Error Message: Could not load file or assembly 'CefSharp.Core.Runtime.DLL' or one of its dependencies. The specified module could not be found.
Stack Trace: at CefSharp.Cef.get_IsInitialized()
could anyone help us on this issue?
Added following cefsharp supported files in the target deployment location:
CEF core library.
libcef.dll
Crash reporting library.
chrome_elf.dll
Unicode support data.
icudtl.dat
V8 snapshot data.
snapshot_blob.bin
v8_context_snapshot.bin
[System Info]:
CefSharp Version=91.1.230.0
OS: Windows 7 x64
Visual Studio Version:
Microsoft Visual Studio Enterprise 2019
Version 16.7.8
.NET Framework: 4.8
Thanks,

Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))

This was a Visual Studio 2010 application converted to Visual Studio 2013.
The code is Working fine on Local Machine.
The same code is giving error on Server where Visual Studio 2013 is installed:
Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
There is an error in loading some specific plugin, whether the plugin required some settings in your config file or not. Check windows event log.
Try to run the following command from a DOS prompt:
marshal.exe /RegServer
You need to have machine-administrator privileges to run this command-line.
It is most likely that in the original application you had a line that looked like this :
EnvDTE80.DTE2 dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal.
GetActiveObject("VisualStudio.DTE.10.0");
This line would have given you the DTE (or DTE2) object representing your visual studio IDE, but the use of
"VisualStudio.DTE.10.0"
gets only the instance of VS2010 and what you need is actually the 2013 version which will be:
"VisualStudio.DTE.12.0"
You can learn more here:
How to: Get References to the DTE and DTE2 Objects

IOException in Rhapsody FMI

I'm trying to generate an FMU of a block in IBM Rational Rhapsody using it's FMI profile, but everytime I generate de FMU I get the following error:
FMUPlugin.OnMenuItemSelect ("FMU\Generate FMU")
Export menu
All Checks Terminated Successfully
Checker Done
0 Error(s), 0 Warning(s)
Code generated to directory: C:\Documents and Settings\markel.sainz\workspace_FMI\FMI_test2\block_1_MSVCDLL\FMU
Generating file cash_calculator.h (unmodified)
Generating file cash_calculator.cpp (unmodified)
Generating make file block_1_MSVCDLL.mak (unmodified)
Code Generation Done
0 Error(s), 0 Warning(s), 0 Message(s)
Building ------------ block_1_MSVCDLL.dll ------------
Executing: ""C:\Archivos de programa\IBM\Rational\Rhapsody\8.1\Share"\etc\msvcmake.bat block_1_MSVCDLL.mak build x86 VC10 "
Value of the property MSVC::IDEVersion corresponds to the version of Visual Studio.
VC9 - Visual Studio 2008
VC10 - Visual Studio 2010
VC11 - Visual Studio 2012
Current value is "VC10", but no Visual Studio installation was not found in the directory "".
Build Done
FMU generation failed!
FMI plugin cause: IOException thrown: Failed to rename the target file: C:\Documents and Settings\markel.sainz\workspace_FMI\FMI_test2\block_1_MSVCDLL\FMU\cash_calculator.dll
Any ideas of what is going on?
Thanks in advance.
I got this problem many times and at the end solved it according to many resources.
First, go to
C:\ProgramData\IBM\Rational\Rhapsody\8.1.1x64\Share\etc\msvcmake.bat
Then open the file and change
if "%4"=="VC10" set VS_PATH=%VS_2010_PATH%
to
if "%4"=="VC10" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0
The path is where you installed the Microsoft Visual Studio 10.0.
The last step (many answers missed this): go to IBM Rational Rhapsody and open your project, then click "Build Framework" at the bottom of "Code" menu.
Then you're free to go!

Error while Embedding Excel sheet into VB.Net Form using Microsoft office spread sheet

I am using Visual studio 2012 & creating a VB.Net Windows Forms Application whereas i am trying to embed an excel sheet data into the form.
I have installed, Office web components 11. while dragging and dropping the Microsoft office spread sheet Item it says following error
Failed to import ActiveX control. Please ensure it is properly registered.
PFB snapshot.
*Build console:)*
------ Build started: Project: WindowsApplication7, Configuration: Debug Any CPU ------
COM Reference 'OWC11' is the interop assembly for ActiveX control 'AxOWC11' but was marked to be linked by the compiler with the /link flag. This COM reference will be treated as a reference and will not be linked.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3284: Cannot get the file path for type library "7c0ffab0-cd84-11d0-949a-00a0c91110ed" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3303: Could not resolve COM reference "0002e558-0000-0000-c000-000000000046" version 1.0. Object reference not set to an instance of an object.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3284: Cannot get the file path for type library "7c0ffab0-cd84-11d0-949a-00a0c91110ed" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3303: Could not resolve COM reference "0002e558-0000-0000-c000-000000000046" version 1.0. Object reference not set to an instance of an object.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Note: I am able to embed the excel sheet using VBA form in my system.
I am using Microsoft 2010.
It looks like you may be able to do your drag/drop, click ok, then rebuild and try to drag/drop again.
If that doesn't work then you may check out this guide from MS Here

Resources