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

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

Problem with Debugging - Cannot communicate with the debug host process

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :Sql Server

I'm trying to run (with debug) an SSIS  project and getting the following error


"Failed to start project


Cannot communicate with the debug host process. The IDtsHost interface is not registered. (Microsoft.DataTransformationServices.VsIntegration)"


It does run if I run without debug.


Any ideas?

View Complete Post

More Related Resource Links

Debugging Tool: Build a Logging and Event Viewing Library to Help Debug Your .NET Framework-based Ap


Building a basic, reusable application framework can make development quicker and easier. This allows you to focus more on the problems at hand and less on the repetitive tasks involved in building any application. In this article, the author presents a framework that provides facilities to access the registry and an extensible framework for logging messages to a console window or the Event Viewer. This reusable framework can be included as a library in your projects, allowing you to display an enhanced, color-coded message log and dynamically change logging levels.

Daryn Kiely

MSDN Magazine May 2003

Problem while creating process memory dumps.

Hi, I have following piece of code: Imports System Imports System.IO Imports System.Runtime.InteropServices Imports Microsoft.Win32.SafeHandles Imports System.ComponentModel Module Module1 <Flags()> Friend Enum NativeMiniDumpType MiniDumpNormal = &H0 MiniDumpWithDataSegs = &H1 MiniDumpWithFullMemory = &H2 MiniDumpWithHandleData = &H4 MiniDumpFilterMemory = &H8 MiniDumpScanMemory = &H10 MiniDumpWithUnloadedModules = &H20 MiniDumpWithIndirectlyReferencedMemory = &H4 MiniDumpFilterModulePaths = &H80 MiniDumpWithProcessThreadData = &H100 MiniDumpWithPrivateReadWriteMemory = &H200 MiniDumpWithoutOptionalData = &H400 MiniDumpWithFullMemoryInfo = &H800 MiniDumpWithThreadInfo = &H1000 MiniDumpWithCodeSegs = &H2000 MiniDumpWithoutAuxiliaryState = &H4000 MiniDumpWithFullAuxiliaryState = &H8000 End Enum <DllImport("dbghelp.dll", CharSet:=CharSet.Auto, SetLastError:=True)> Friend Function MiniDumpWriteDump(ByVal hProcess As IntPtr, ByVal processId As Int32, ByVal hFile As SafeFileHandle, ByVal dumpType As NativeMiniDumpType, ByVal exceptionParam As IntPtr, ByVal userStreamParam As IntPtr,

Cannot register a service type without attaching the source assembly to the host process

I'm wondering if there is any way I can register a service type without attaching the source assembly to the host process. When I register the service type, the source assembly (which has the type) cannot be written.   I appreciate your attention.. 

SSIS Debug Host has stopped working

The error code that's output with the SSIS Debug Host has stopped working popup is: Problem signature:   Problem Event Name:    APPCRASH   Application Name:    DtsDebugHost.exe   Application Version:    2007.100.1600.22   Application Timestamp:    48753d31   Fault Module Name:    StackHash_23cc   Fault Module Version:    6.1.7600.16559   Fault Module Timestamp:    4ba9b21e   Exception Code:    c0000374   Exception Offset:    000c2913   OS Version:    6.1.7600.   Locale ID:    1033   Additional Information 1:    23cc   Additional Information 2:    23cc9330c2de3c407e38eb60a3c201e4   Additional Information 3:    10bd   Additional Information 4:    10bdb3132e81c1ecfd041615b784b3fd In the output for the BIDS debugger: SSIS package "Package.dtsx" starting. Information: 0x4004300A at Sg Clients to NewCP stgClients, SSIS.Pipeline: Validation phase is beginning. Warning: 0x80049304 at Sg Clients to NewCP stgClients, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To

Problem in debugging a class library


When I try to debug a class library I am getting an warning message "Unable to automatically step into the server. Connecting to the server machine 'xxxx.xxx' failed. The debugger cannot connect to the remote computer. This may be because the remote computer does not exist or firewall may be preventing communication to the remote computer. Please see help for assistance."

After getting this message my application shows the result set from the web service. I am not trying to debug the web service application, but trying to debug my code which is in another project in the same solution. Also I have added the project reference from my test application not the dll reference. I've checked the windows firewall and added exception for port 80 also.

Any help in this regard will be greatly appreciated.




Unable to start debugging on the web server. The IIS worker process for the launched URL is not curr


Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running.

I'm running Windows 7 64 bit, VS 2008 sp1.

When I first try to debug I get the error msg above.  I wait a few minutes (presumably some service is starting) and debugging will start but no breakpoints are recognized.

Some of the things I've tried:

Changing the binding of my site from a static IP to "*".

Enabled windows authentication.

made sure localhost = in the hosts file.

The website was built under windows xp and whatever version of IIS ships with xp.  My web config has no errors that I know of but might be missing something required for iis 7 (??)



Problem with Host an external application in WPF


I wanna host an external application,for example "Notepad.exe" in WPF?I use HwndHost to do so:


    class NetTermHost : HwndHost
        private IntPtr hwndHost;

        protected override HandleRef BuildWindowCore(HandleRef hwndParent)
            Process notePadProc = new Process();
            notePadProc.StartInfo.FileName = @"notepad.exe";


            hwndHost = Win32Native.FindWindow("NotePad", null);

            uint oldStyle = Win32Native.GetWindowLong(hwndHost, Win32Native.GWL_STYLE);
            Win32Native.SetWindowLong(hwndHost, Win32Native.GWL_STYLE, oldStyle | Win32Native.WS_CHILD);


            Win32Native.SetParent(hwndHost, hwndParent.Handle);


            return new HandleRef(this, hwndHost);


        protected override void DestroyWindowCore(HandleRef hwnd)

            HandleRef handleRef = new HandleRef(this, hwndHost);

            Win32Native.SendMessage(handleRef, Win32Native.WM_CLOSE, IntPtr.Zero, IntPtr.Zero);


the Notepad is displayed at my WPF form.But I cannot operate the Notepa

Dynamic routing problem when invoking site from remote host.



I have problem described under following link: mvcrouting

Can someone give me some clues how to deal with that ?


Visual Studio has insufficient privileges to debug this process


Hello All,

             I am using VS2008 to debug in Windows 2003 server. I got this error message.


Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator.


             I checked that my user name is under administrator group.


Edit : I am trying to debug one of my service application. I am able to debug web applications

How to get web project to automatically attach to debug process?


In visual studio 2005 (using the Vista OS), I have an asp.net web project. When I debug, I have to manually attach to aspnet_wp.exe.

My project used to automatically attach to this process. How do I get it to automatically attach to it again?

Unable to start T-SQL Debugging. Could not attach to SQL Server process on


Please help!  I cannot debug CLR procs remotely.  Whenever I try to start debugging in VS2005 I get the error:  Unable to start T-SQL Debugging. Could not attach to SQL Server process on ....  I have clr enabled set to 1 and I have Allow SQL\CLR Debugging set on.  But I continue to get this error.  Any help would be greatly appreciated.



Security problem while debugging Infopath custom code


I have made a simple InfoPath formular, and in "Submit Options", checked  "Perform custom action using Code", and write some custom code...

Then i run the debug over this code. The InfoPath formular opened in preview mode, and i could successfully step through InternalStartup method.

I did put some data in fields and clicked on "Submit" button. I expected to be continue debugging at the beging of "FormEvents_Sumbit" method, but i got this error message:

Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
   at TEST_FORM2.FormCode.FormEvents_Submit(Object sender, SubmitEventArgs e)
   at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent pEvent)
   at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)"

After i clicked OK to this error, i got another one, a little different:

"InfoPath cannot submit the form.
The OnSubmitRequest event handler did not work.
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint

Debugging problem


 I should be able to debug lower layer methods (in dal and bll projects) using vwd express but it doesn't step into those methods.

Debugging SQLCLR in VS 2010 using attach to process


After reading numerous posts / threads, I still can't get an answer. We have assemblies built in Visual Studio 2008 (.NET 2.0) and could debug them without any issues (on the same server). Since we upgraded to Visual Studio 2010, the "attach to process" does not work and the breakpoints don't get hit.

I've followed numerous workarounds, such as making sure the correct debugger is used by adding a config file to sqlservr.exe, but this did not make a difference.. Articles can be found here: http://webstats.interknack.com/BLOGS/BOBB/post/SQLCLR-debugging-and-VS-2010-revisited.aspx and http://blogs.msdn.com/b/robertbruckner/archive/2010/06/20/debugging-custom-extensions-with-visual-studio-2010.aspx.

Here an example of my sqlservr.exe.config file:

<?xml version="1.0"?>
   <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v2.0.50727" />

Our assemblies are tar

how to use visual studio to debug sql server reporting service 2008 by attaching process


I did custom security extension and want to debug it. I used to debug it using visual studio by attaching its iexplore.exe process using visual studio 2005 and sql server reporting services 2005. After then, I can debug UILogon.aspx.cs and AuthenticationExtension.cs in Microsoft.Samples.ReportingServices.CustomSecurity.dll. When I set break point, it can reach.

Now I used 2008 version for all application. After I attaching process, it can't reach break point I set. I realize sql server reporting services didn't use IIS and it use another component to hold web app. I may affect it and unable to debug it ? Do I need to do any configuration or any thing before I can use visual studio 2008 to do debug by attaching process ?




[Business Logic Handler debugging] - The assembly is not loaded by inetinfo.exe process


Hi there,

Here is my story - my merge replication topology consists of one publisher (sql server 2008), a distributor (same server as publisher) and a subscriber (sql server 3.5 CE). I use web synchronization for my merger replication. Publisher, Distributor, Subscriber and IIS run all on the same (development) machine. I use MSSMS to synchronize the subscriber.

I've created a custom resolver (Business Logic Handler) that should perform some data modification that has been inserted at the subscriber, before it is merged into the publisher. It should but it doesn't so I need to debug it to see what's going on. I've followed steps form here http://msdn.microsoft.com/en-us/library/ms365150.aspx on how to debug a business logic handler on a Web server using Web synchronization and I'm stuck at step 7. MY PROBLEM IS when I attache to inetinfo.exe process from VS2008, I don't see my assembly to be loaded neither in Output nor in Modules window and the break points say that they will not be hit because the symbols were not loaded.

I configured web synchronization almost exactly as it says here http://msdn.microsoft.com/en-us/library/ms151810.aspx , the only difference is that I didn't configured and

asp.net worker process crashs, debugging not available


I made a small app to capture frame from video using asp.net, in visual studio, it works fine. however the problem arises when i try to use any other servers, I am currently using iis 7.5, and trying to debug on server, but alas when i reach some region of code the attached w3wp.exe just get detached, the process crashs, no debug available anymore.

Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0eb
Faulting module name: unknown, version:, time stamp: 0x00000000
Exception code: 0xc0000005

is what i get in eventviewer

what could be gine wrong, what i can do to solve this problem, please help.


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