Solved

Unable to edit script in Visual Studio

Posted on 2012-03-16
6
958 Views
Last Modified: 2012-03-22
Error message when I open a scriptI had Visual Studio running along, and then, one day, I opened a VB script in my SSIS package, and I got the following error: "Cannot show Visual Studio for Applications Editor.  The VSTA designer failed to load: "System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {7525139F-BB6B-447A-A81E-360B2197C3B2} failed due to the following error: 80040154 at Microsoft.SqlServer.VSTAHosting.VSTAScriptingEngine.EnsureDTEObject()"  (Microsoft.SqlServer.VSTAScriptingLib)."

The error is brand new, after I've created dozens of scripts and programmed in them using SSIS.  I've been reviewing a number of sites with those who have experienced similar difficulties, and several have reported that uninstalling and reinstalling Visual Studio does not solve the problem for them.  Some sites offer "FixIt" programs for a .Net Framework or another; and nothing I've tried has worked for me.  I get the sense that solving this should be methodical, and not haphazard.  

I would like some knowledgeable feedback on exactly which .Net Framework is responsible for this; and if I need to do an uninstall and reinstall, I'd like to know if the installs and/or uninstalls needs an ordered sequence.  Finally, I would like to have an inkling for how this happened, where one day it's working and the next not.  Knowing the cause as well as the effect may help me avoid this problem in the future.

Sincerely, ~Peter Ferber
0
Comment
Question by:PeterFrb
  • 4
  • 2
6 Comments
 
LVL 37

Expert Comment

by:ValentinoV
ID: 37733358
Have you tried doing a repair of SQL Server?  This can be done through the Maintenance page of the Installation Center.

More info: http://msdn.microsoft.com/en-us/library/cc646006.aspx

I've encountered a similar error before, but I'm not sure if it's exactly the same.  And I also don't remember anymore how I finally solved it, but I didn't need to reinstall anything.  Could be though that it needed some DLL manipulation.  But in any case, hopefully the repair proves to be successful!
0
 

Author Comment

by:PeterFrb
ID: 37733939
I would say the problem is with VS (Visual Studio), not SSMS (SQL Server Management Studio).  SSIS is a VS-related application, not SSMS.  I think now I should have put VS as the first reference of this post.  I'll see if I can get it added there.

~Peter
0
 

Author Comment

by:PeterFrb
ID: 37733944
Actually, Valentino, I just found a page that indicates you may be right!  See http://support.microsoft.com/kb/955645.  I will try your solution and see what happens!
Many thanks, ~Peter
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:PeterFrb
ID: 37734058
I'm still getting the same error, shown above, when I try to open a script.

I attempted to perform a repair on SQL Server, and the procedure ran with errors: see below.  In spite of these errors while attempting to do a repair, I am able to open the database engine, Analysis Services, Reporting Services, and Integration Services in SSMS.  I've downloaded the output from the log of what the procedure performed.  

Failed SQL Server Repair
I have a question about doing a repair.  I've tracked the error logs -- which, because they are nested, is a tricky business --, and I'm seeing errors of the following nature:

DEBUG: Error 2746:  Transform SP1.1 invalid for package C:\WINDOWS\Installer\324bc.msi. Expected product {754B9915-9E24-4167-9BB1-FF38F8C8D1CF}, found product {AA4A4B2C-0465-3CF8-BA76-27A027D8ACAB}.  

The error above suggests to me that the .Net Frameworks may be colliding and confusing the process of repair; and I need advisement on the question: Do I need to uninstall the .Net Frameworks before doing a repair?  

All the best, ~Peter
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 37736520
"I would say the problem is with VS (Visual Studio), not SSMS (SQL Server Management Studio).  SSIS is a VS-related application, not SSMS."

Absolutely, but SSIS/BIDS ships with SQL Server and the VSTA environment is also part of that install, hence the SQL repair suggestion.

I'm a bit worried about all those Failed lines in your screenshot.  To be honest, I'm not very convinced that the VSTA problem is the only one.

In any case, whatever you do, DO NOT uninstall a .NET framework because that might mess up way too much.  Other applications might need it as well.  Also, I don't think it's related to .NET in that way.

Have you already tried this: http://www.ssistalk.com/2010/05/28/ssis-2008-cannot-show-visual-studio-2008-tools-for-applications-error/

Also, do you have the latest SPs for both SQL Server (2008 R2?) and Visual Studio 2008 installed?
If you need info on the installation order of SQL, VS and the service packs, have a look here: http://blog.hoegaerden.be/2012/03/13/sql-vs-sps-installation-order/

Hopefully you can get your issue resolved without needing to do a full reinstall!
0
 

Author Closing Comment

by:PeterFrb
ID: 37755019
Valentino, thank you.  To be honest, I haven't actually solved this problem yet, but I don't have to do so to pursue my current work effort.  I am going to get some professional help on this, as I don't want inadvertently to make things worse while trying to make them better.  I will forward the information you've given me to the support for which I will pay.  The situation qualifies as a "Discretion is the better part of valor" moment.

Best, ~Peter Ferber
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL JOIN 6 37
backups - Strategies 1 13
Sql query for filter 12 23
SQL Server can be started but not accessed 1 16
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now