.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

Escape DLL Hell: Simplify App Deployment with ClickOnce and Registration-Free COM

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

DLL Hell that results from versioning conflicts is generally not a problem in .NET because components do not require registration, and are either totally isolated to an application or are managed in a well-defined side-by-side way with the help of the Global Assembly Cache. But if you're still using COM, wouldn't it be great if you could deploy your existing COM components using a model similar to the .NET Framework? In Windows XP, you can, and this article explains how.

Dave Templin

MSDN Magazine April 2005

View Complete Post

More Related Resource Links

Windows XP: Escape from DLL Hell with Custom Debugging and Instrumentation Tools and Utilities, Part


Building on his article published in the June issue, which demonstrated several ways to get process and DLL-related information from APIs such as PSAPI, NTDLL, and TOOLHELP32, the author presents some unusual ways to get system-oriented info that you can easily integrate in your own toolkit. There are three tools included as samples: LoadLibrarySpy, which monitors an application and detects which DLLs are really loaded; WindowDump, which retrieves the content and a detailed description of any window; and FileUsage, which redirects console-mode applications to tell you which process is using any opened file.

Christophe Nasarre

MSDN Magazine August 2002

Windows XP: Escape from DLL Hell with Custom Debugging and Instrumentation Tools and Utilities


DLL conflict problems can be tough to solve, but a large number of tools are available to help. There are also many Windows APIs that you can use to build custom debugging tools. Three such tools are discussed here and provided as samples. DllSpy lists all the DLLs loaded in the system and the processes that are using them. ProcessSpy enumerates the running processes and exposes the DLLs they are using, and ProcessXP displays the list of concurrent running sessions for Windows XP.

Christophe Nasarre

MSDN Magazine June 2002

ClickOnce deployment fails if .NET Framework isn't installed

Hi,   I have noticed that installation of my application fails in some cases. If the user has .NET Framework installed the installation works. But if it's not installed then Click Once will install it, after asking the user to accept the EULA, installation will complete and the "Install"/"Don't install"-dialog appears. My application is downloaded and then fails with the error message:     Following errors were detected during this operation. * [2010-09-01 15:22:17] System.Deployment.Application.InvalidDeploymentException (ManifestLoad) - Exception occurred loading manifest from file Stoffi.exe: the manifest may not be valid or the file could not be opened. - Source: System.Deployment - Stack trace: at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath) at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath) at System.Deployment.Application.Manifest.AssemblyManifest..ctor(String filePath) at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.OnModified() at System.Deployment.A

ClickOnce deployment problems with Windows XP

Hi, I just deployed my WPF Desktop Application using clickonce. The application was made in a Window 7 pc and it worked ok in other Windows 7 pcs, but when I installed it in a fresh Windows XP SP3, the app works normally, but it doesn't appear in the Add/Remove Programs, leaving no easy way to uninstall it.   Hope someone could help me with this or point me to another thread if it has been already answered before.

priviledge for clickOnce deployment


hi there:

  I've a WinForm application with MS ReportViewer Control. Since it's a WinForm application, the report redistributables has to be installed in each client's machine. Say if we have 100 users who want to use this application, I need to install it manually 100 times.

   I am thinking about using ClickOnce deployment  so that when they click the setup for the application, the report redistributable will be installed automatically. There is however one question which remained unsolved. All end users are not local admin of their machines,  Can they still use ClickOnce to install it?





--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

free com registration manifest for .Net


I have a .Net exe application which has a reference to a .net assembly called for example Anet.dll which has a reference to a free com registration c++ dll called Bcppcom.dll. My question is if is possible to add this free com registration manifest to the Anet.dll assembly or in .net only the exe application can have manifest because Visual studio .Net 9 doesn’t have the option to add manifest to a class library assembly?


Registration Free COM using manifest file embeded in Plugin DLL?


Searching google online for 1 whole week and I still can't get this solved... please help!

I'm suppose to build a Plugin (will be called Plugin.dll after compiled) which resides in a main framework (Framework.exe after compiled), everything is written in C# except the C++ COM object (ComObject.dll) which is required by my plugin to function.

The hierarchy looks something like this:

    Framework.exe --> Plugin.dll --> ComObject.dll 


I was provided with the main framework, the ComObject.dll and a manifest file Framework.exe.manifest.


Currently I have two options of getting my program to work:

Option 1: In Command Prompt, type in 'regsvr32 ComObject.dll' to register the COM object, add the COM reference in my plugin source code, build away and run it.

Option 2: In the application properties of my framework source code, add in the manifest file to get it embedded into the Framework.exe. Either this or manually embed the manifest file using mt.exe, both works. This works even if I unregister it later using 'regsvr32 /u ComObject.dll' in Command Prompt.


Free Code Snippets - ASP.NET

You Can Find Useful ASP.NET Related Posts on the above link.

Free Code Snippets - C#

Free C# Code Snippets

Out of the Depths of SharePoint's XML Hell

I described how a new open source tool called sporm significantly simplifies unit testing SharePoint. Making SharePoint unit testable is my absolute favorite feature of sporm because SharePoint is notoriously hard to unit test. But sporm provides other benefits as well and its ability to pull us out of the depths of verbose loosely typed XML hell and into LINQ excellence is next on my list of favorite features. So in this post I'll describe the pre-sporm technique of querying with CAML, how to query data using sporm, and finally how sporm supports SharePoint's unique architecture of allowing multiple content types per list and what that means to you.

Free Series of SharePoint Workflow How-to Videos

This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

DataTable - Load from IDataReader - CreateDataReader - ReadXml WriteXml - Free ADO.NET Tutorials

The DataTable in ADO.NET 2.0 has been seriously beefed up and I absolutely love it. Not everything we consume deals with multiple resultsets and requires the ever popular DataSet. With the cool new features in the ADO.NET 2.0 DataTable, we can get many of the cool features in the DataSet without all the extra baggage and memory footprint particular to multiple resultsets.

Load DataTable from IDataReader

ActiveSync 4.5 (Free Down Load) using in Windows Mobile Pocket Pc

Microsoft ActiveSync 4.5 is the latest sync software release for Windows Mobile-powered devices. ActiveSync provides a great synchronization experience with Windows®-powered PCs and Microsoft Outlook right out of the box.


* Faster file transfer speed and photo sync via Outlook are only available for Windows Mobile 5.0 powered devices.
* Remote PC Sync (via WiFi or LAN) has been removed due to Enterprise customer feedback around security issues.
* Customers using Microsoft Exchange 2003 Service Pack 2 with devices running the Messaging and Security Feature Pack for Windows Mobile 5.0 will benefit from the following feature enhancements included in ActiveSync 4.5: Direct Push Technology, local device wipe, and certificate powered authentication to Microsoft Exchange.
* Microsoft® Outlook® 2000 is not supported by ActiveSync 4.5. It is highly recommended that users upgrade to Microsoft® Outlook® 2003 messaging and collaboration client.
* Conversion of database files for use on a mobile device is not supported by ActiveSync 4.5. On previous versions, this feature was limited to devices running Windows Mobile software for Pocket PC 2003 and earlier.
* Conversion of font files for use on a mobile device is not supported by ActiveSync 4.5. On previous versions, this feature was limited to devices running Windows Mobile software for Pocket P

Free BarCode Software

Bar Code Specifications

There are more than 300 different types of barcodes, all with their own specifications. You will find detailed specifications of many popular bar code symbologies and where you can order the official specifications here at BarCode-1.

Barcode-1 Specification Sources Page list the most popular barcodes. It has links to technical information and is a good place to start.
The UPC/EAN Barcode Page lists the details of UPC barcode, and EAN barcode, the type used in grocery stores.
UCC128, EAN128 and GS1-128 Page lists the details for this important standard for marking shipping cartons.
The Code 39 Barcode Page has the details for Code 39 barcode, the most popular barcode used in industrial application.
The Code 128 Barcode Page has the details for Code 128 barcode, a barcode that can encode the entire ASCII character set.
The Interleaved 2 of 5 (I 2 of 5) Barcode Page has the details of this popular barcode.
The NW-7 Barcode Page has the details about this popular barcode in Japan.
The Plessey Code Barcode Page has the details for the historically important barcode.
The 2D Barcode Page lists the most popular two dimensional barcodes. It has links to technical information and is a good place to start if you a looking for 2D barcode information.

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or pasting into an application. 2D versions are also available:

Free e-books Download

This is the link where we have get free e-books for downloading

VS 2010 HTML validation "in CSS" option - where the hell is it?


In VS 2008 there is a very useful feature of background HTML validation - it checks if CSS class name is valid i.e. it exists in one of the linked css files. But VS 2010 Express does not do that any more. And the relevant setting in Options->Text Editor->HTML->Validation->in CSS is not there. Ok, maybe they made it paid for option? VS 2010 Professional? Not there. Or maybe VS 2010 Ultimate? Not a trace.

1. am I blind?

2. they decided it is too convenient to use and removed it?

3. they will "introduce" it in SP1?

What is going on? That one thing made me move back to VS 2008 web developer.


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