.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Installer project fails to detect dependencies to COM interops

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :.NET Framework


The issue pertains to the Visual Studio 2010. I have two projects: a class library and a setup project. The class library exposes a COM object (plugin) using the .NET COM interoperability. The library depends on a number of COM type libraries. For each COM type library there is a corresponding primary interop assemby, properly registered using "regasm /codebase". The target framework is 3.5 (the hosting application that loads the plugin only supports 2.0 runtime). The library compiles without any issues, but setup project fails to detect any of the COM dependencies. The issue is easily reproducable, just create a simple class library in VS2010, change the target framework to 3.5, add a reference to a COM type library. Create a setup project and add the "Primary Output" to it. The COM dependencies  would not show up.

It seems to only happen if I switch the target framework to 3.5 BEFORE building the deployment package. Switiching the framework to 4.0 and changing the "Embed Interop Types" to "False" does fix the issue.

I was going to submit an issue to Microsoft, but want to see if there someone out there who ran into the same issue.

Thanks for any suggestions



View Complete Post

More Related Resource Links

How to launch EULA.rtf for the end user agreement before the winforms setup project (installer) actu

Hi, I am using Setup Project to create installer for my windows applcation. I need to have the user read and accept to the terms in EULA document. So this has to be displayed BEFORE the installer installs the applciaiton. I tried adding the EULA file via Setup Project-> Application Folder -> Add -> File -> EULA.rtf assuming that installer will identify the license file by default and display it before installing the app, but it did not. Please Help.   Thanks

Workflow project compilation fails with error 348: Compilation failed. Cannot execute a program.

Hi, I am trying to build a workflow project on a PC and I am getting the "error 348: Compilation failed. Cannot execute a program." error. This project is part of a bigger solution and it used to build just fine on my PC. Also, the project and the solution build OK on several other computers. I am sure that the problem is something on my PC. 1. I am not sure what changed to make the project start failing. 2. I tried to delete the project, source and all folders from the disk and sync to the source control again 3. Re-installed the .NET 3.5 framework 4. Uninstalled Visual Studio 2008, deleted the visual studio folder under program files, and reinstalled VS 2008 5. I noticed the the file referenced in the error "...Temp\8sl_helt.cmdline" does not exist under the Temp folder. An empty folder called "8sl_helt"however is created, but there is no file with the cmdline extension. I turned up the output log to "diagnostics", this is the output generated when the error happens. Have anybody seen this? Done building target "_ComputeNonExistentFileProperty" in project "QCReviewWorkflowLibrary.csproj". Target "CreateWorkflowManifestResourceNames" skipped. Previously built successfully. Target "WorkflowCompilation" in file "C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.T

could not get dependencies for project reference



I had my solution all good before I tidy up my class library projects.

Since then I keep getting "could not get dependencies for project reference 'project.dll' " everytime i compiled my website.

I read on the web, that it could be a namespace problem. I've fixed all my namespaces and the problem still exists.


Does anyone has any suggestio how to solve this issue ?

Thank you for your help,

Trying to instantiate an object of a given type - works if the type has no dependencies, fails if it


In order to instantiate an object of a given type, I'm using the following code


public void LoadAssembly(string pathToAssembly, string assemblyTypeName)
      Console.WriteLine("INFO - Found the Assembly file " + pathToAssembly);
      string fullPath = null;
        fullPath = Path.GetFullPath(pathToAssembly);
        Console.WriteLine("Full path to assembly is " + fullPath);
        Assembly asm = Assembly.LoadFile(fullPath);
        if (asm == null)
          Console.WriteLine("ERROR - Failed to load Assembly: " + fullPath);
        foreach (var item in asm.GetTypes())
          Console.WriteLine("INFO - Found Type: " + item.FullName);
        Type type = asm.GetType(assemblyTypeName);

Deployment of .Net 4.0 Redistributable fails with 2.0 dependencies


I have a C# project built with the .Net 4.0 framework, which I need to run on computers with Windows XP SP3. My development computer is XP as well.

The program uses a DLL built with an earlier framework version (SQLite ADO.Net provider 2.0 / 3.5). That DLL has been working great as long as I created my projects using 3.5 SP1, on other projects as well as on this specific program.

I upgraded to .Net 4.0 since I want to use some of the new features as well in the program, and it was a different story:

To get that same (freshly compiled for 4.0) program to run on my development computer, I had to add the "useLegacyV2RuntimeActivationPolicy" attribute to the app.config file. And this way it did compile and run fine - on that development computer.

However, if I deploy this to another computer (using C# Express, I am not creating a Deployment project but rather install the .Net 4.0 framework using the standalone installer, then copy my .exe app files) the program runs fine only until it encounters a section of code where the "legacy" 3rd party dll is being referenced. Then an error occurs:

"System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, version, Culture=neutral, PublicKeyToken=.....   or one of it

Visual Studio 2008 fails to debug an ASP.NET project... Sometimes


I have a very simple ASP.NET 3.5 project. When I start debugging the project, IE sometimes (about 50% of the time) starts, but never connects to the site. I need to exit IE and restart (which does not always work).

I am developing on Windows 7 and using IIS with a virtual folder as the server for my project. I am running Visual Studio 2008 SP1.

Any ideas?

Project Example: ASP.NET MVC + SubSonic Architecture

use of SubSonic to provide the DAL in association with some ASP.NET MVC sites and was waylaid in my original intent to throw up a post summarizing the architecture we're using for the effort. Well I've finally gotten around to it. Recall that in his fake it till you need it post, Dave provided a window on our architecture that I'll build upon here

How to detect and avoid memory and resources leaks in .NET application

Despite what a lot of people believe, it's easy to introduce memory and resources leaks in .NET applications. The Garbage Collector, or GC for close friends, is not a magician who would completely relieve you from taking care of your memory and resources consumption.

I'll explain in this article why memory leaks exist in .NET and how to avoid them. Don't worry, I won't focus here on the inner workings of the garbage collector and other advanced characteristics of memory and resources management in .NET.

How to create a windows mobile (Smart Device) .Cab installer

A Cab file is the default setup format for Windows CE and Windows Mobile devices (similar to windows .msi files). You probably already have installed several application using .cab files, and are familiar with the concept. One point which is often unknown is that .cab files are processed by wceloader.exe, and it can only install one .cab file at a time. That means we cannot have nested .cab files. It doesn't mean we cannot have .cab files contained by another .cab, but the contained .cab files will not be installed during the installation of the container .cab. We should install it manually after the container .cab file installation has been completed.

There are two ways to create a cabinet (.Cab) file. The traditional one, and the friendly VS Smart Device Cab project which doesn't require additional coding, but which also relies on the traditional one at low-level.

VS2010 Professional .NET 4.0 Remote Debugging ASP Website Project


Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine.  Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document."  This happens for all compiled code though.  I have read this is due to missing PDB files and the work around is to manually copy them, as noted here.  Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.


  • web.config has <compilation debug="true">
  • Debugger is attached to wewp.exe process on remote server
  • Installed VS2010 remote debugger from DVD (as I can remote debug referenced libraries)

This is beyond frustrating.  I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework.  Debugging works when using local host and was stable until deployment to test server.

Thanks in advance,


How can I be sure that my entire project is up-to-date and free of errors in VS2010?


Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  <form runat="server">
  Hello World!!  

Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Business Intelligence Reports Project in Visual studio 2008 ?



I wonder how to add a project template called  Intelligence Reports, something like that, to Visual studio 2008. I have SQL 2008 installed. Do I need to install some updates to get Intelligence Reports template to Visual studio 2008 ?

Thank you..

Solution/project structure


Hello, I am working in a aspx web application that must be built in several separate "modules" with different functionality which will be partly developed by different teams.

However, I need the completed app to reside in ONE virtual directory. There will be a single startup page. I need session state to be preserved across pages in different modules.

I structured it as one solution with different Web Projects and one class library project with common functionalities.


1) is this the right approach to do this? Or which one would be better?

2) each time I add a new web project to the solution, a new web.config gets created. What do I do and where do I put them?

VS 2010 + framework 4.0 + TFS

Regarding TFS and source control, I have a single Team project, the solution and web projects are inside it.



Best Way to Upgrade Using Web Setup Project


Hi there,

I am using VS2005.

I don't have much experience with web setup projects, but I now need to create a decent windows installer in order to allow customers to install one of our web applications. I have created a simple web setup project and it works fine, but not when it comes to upgrades of the application.

If for instance I install version 1.0 on a machine, and then later I try to install version 2.0, I don't seem to have the control that I would like... I can specify in the web setup project that the installer must enforce an uninstall of previous version, but then all application files and logs are uninstalled as well. If I let the application just install itself over the older version, it seems to leave some old DLL's there - it then causes issues in the application because DLL version conflicts.

My basic requirement is that I would like th installer to upgrade the old version with all the files required, but leave any application and log files in tact - this way the customer won't have to reconfigure the application after install.

What is the best way to handle this?

Adding custom dialogue to the msi installer



I am creating setup project using visual studio 2005 . I wanted to add new custom form or dialogue box to the setup. When i run install the form must be added after welcome screen. Kindly guide me .


Santosh Patil

Multiple MSIs from one deployment project


We have several .NET based products for which we need to generate multiple MSI files to allow for multiple instances of the same app to be installed on the same machine.  For instance, we might have a single server running version of the app that are pointed at either test or QA databases, or may use the same server box to deploy the product for multuple clients.  (So, for instance, our web server might have separate installs of the same code in different locations for product names "Client A test", "Client A QA", "Client B Test", etc., where the only real differences are in the web.cionfig files that are not overwritten by the install of a new version.)

Right now we simply have a deployment project for each named variation of the app.  This works, but is likely to become a maintenance mess as the number of instances grows.  We'd like to be able to maintain only a single deployment project and script the creation of multiple MSIs, one for each product variation, after the build of a baseline MSI.

As I understand it, this should be acheivable by building the MSI, then for each possible instance, making a copy of the MSI and giving it a unique ProductCode and PackageCode; this way Windows should recognize each instance as a unique application.  I've done this (as well as changing the produc

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend