I'm trying to debug a custom component and step through the code by attaching to BTSNTSvc.exe. I can duplicate this behavior with my component and even with the FixMsg Pipeline component included with the Biztalk 2004 Samples.
When I attach to BTSNTSvc.exe and set a breakpoint, a question mark appears in the break point and the message, "...breakpoint will not currently be hit. No symbols have been loaded..."
The strange thing is, if I attach to another instance of Visual Studio that is using a pipeline utilizing my component, the breakpoints work fines (putting breakpoints in the IBaseComponent properties).
I've deployed the component to the GAC and verified that I am using Debug when compiling. I'm stumped.
Just be sure to have both your pipeline component and the debug file copied to the BizTalk server pipelines folder.R. Brink
Are you sure you're attaching to the right host intance? If you have multipe host instances, you will have multiple instances of BTSNTSVC. If you are already on the right host, have you tried rebuilding, redeploying, restarting Studio, and restarting the host instance?
Also, if the pipeline is running in an isolated host (HTTP,SOAP, WCF, etc adapters) then you need to attach to the isolated host process - w3wp.exe
Although I had the custom component set to build using Debug, the receive pipeline it was beign utilized in was set to build under Deployment. Once I changed it to Development an did a rebuild, the breakpoint was hit. Thanks for the help.
when i am attaching process BTSntsvc.exe in visual studio 2008. i am doing following thing before it.
a) Building teh component in debug mode. b)pipeline in debug mode. C) building the solution...keeping output path as C:/programfiles/microsoftbiztalk server 2009/pipelinecomponents/ d) placing the dll in gacutil. e) deploying the solution.. I have given break point in pipeline component. but its not stooping, when i am placing xml file to receive location.....I tried every possibility which i got from forum but still its not woking. Could any one sujjest me any solution...
Thanks in advance.
You can get your PDB file in the Bin/Debug folder of your application manually copying it to GAC too, the default path looks some thing like C:\Windows\Microsoft.NET\assembly\GAC_MSIL\%componentNmae%\%Version%\, it this desen't work , try also copying this PDB file inti pipeline component folder