Solved

Missing assemblies when installing .net application

Posted on 2014-04-24
6
510 Views
Last Modified: 2014-05-09
I am trying to deploy a small application ( programmed using visual studio 2013 VIsual basic). I have used the Visual Studio "publish wizard" to put the application on a network share. The output to the network share looks fine, but when the install process starts on the client computer there is an endless nagging about missing assemblies. The things that is said to be missing on the client is not references that I have used in the project. Ie there errormessage about Microsoft.visualstudio.shell.8 missing which I have no reference to or "imports" of in my project. The client computer actually do have newer versions of this dll, but not version 8. The dotnet framework is updated on the client (4.5).  Has anybody seen this problem and know the cause of it?
0
Comment
Question by:lieka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 40020608
Have you used ClickOnce deployment? Is xcopy deployment an option?
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 166 total points
ID: 40021033
Microsoft.visualstudio.shell.8 is a basic component used by Visual Studio 2008 as well as by other software such as SQL Server 2008.

If your application targets SQL Server 2008, your application itself might not need that component, but some of the classes that you use in your application might. I think for instance as stuff such as the reporting services on SQL Server.

It might be that the .NET components were not installed alongside the server or some other tool that your application is using.

You might have to install framework 3.5, on the client computer, since 4.0 is not completely backward compatible, specially for the kind of stuff the shell is doing. If this is not enough, then look for the Visual Studio Software Development Kit (SDK) 2008.
0
 

Author Comment

by:lieka
ID: 40021056
Tanks. Yes, I used ClickOnce deployment. Yes Xcopy is an option.

I have already tried to install it on another of my own laptops, and it work well using the clickonce option. This was the first of the computers in the company which is going to use the application. I have tried to install it on for test purposes. I hestitate to ask for a second machine in the company if am not sure that my deployment package is sound.

I guess xcopy deployment would mean that we can avoid all the requirement checks during setup, and rather let the shortcomings in the app or the PCs assemblies appear when I run the application?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:lieka
ID: 40021096
Thanks JamesBurger for your input. The application is infact interacting with sql server 2008, and thats then the likely reason for the assembly being looked for during installation. On my development computer and the other computer I have installed succesfully on I have the sql server express 2008 installed, whilst the computer on which installation fails sql sever is not installed as the connectionstring would point to a server running ms sql server. I will check out your suggestions and report back.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 167 total points
ID: 40021188
In project properties, go to the node "references and double-check that you don't have visualstudio.shell. Remove unused references. Then go to the node "publish" and examine prerequisites.

If that does not help: since you said that these messages appear during the installation, rather than from the application itself, you need to start with looking at the installation. Go to the directory where you published your installation, and examine the files in it (by opening them in Notepad, or by searching for all files with the text visualstudio.shell in them), see if you can find references to the assemblies from the error messages.

An assembly that mentions "visualstudio" in it, shouldn't be required by the users.

Regarding sql server, even if this assembly is really required by sql server itself, your application is not sql server but it's client, so it does not require anything that the server itself needs to run.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 167 total points
ID: 40022102
Yes you will get errors at runtime if you use xcopy deployment and there are missing assemblies.

You do not need this assembly to simply connect to SQL Server. It probably is used by SQL Management Studio so should not be required by your application.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

623 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