
COM wrapper for DLL and rebuild errors - access denied file in use by another user
Yes, I tried that but then I can't get he de{*filter*} to work.
The next time I get the error I will try changing it from a library package
to a server package, then stopping the component then recompiling. That may
do the trick. If not then I'll have to try something else.
Maybe I make it a server package and put this in my code I can debug it:
if(!System.Diagnostics.De{*filter*}.IsAttached)
System.Diagnostics.De{*filter*}.Launch();
Quote:
> TonyK, is it a library or a server package? Sounds like it is a library
> package since they don't have the shutdown/start options. Is there a
reason
> it is a library package? If not try switching to a server package.
(right
> click on the package, properties, activation tab) Then you'll have the
> option to shutdown.
> --
> Greg
> http://www.*-*-*.com/
> > Greg, Thanks for your response. I have tried that. This package does
not
> > have a start and shutdown menu option when I right click on the package.
> > There is something different about this package from the other packages
in
> > component services, but I don't know what that difference is, only that
> > there is no shutdown and start menu option.
> > Thanks
> > > TonyK, You can shut down your COM+ application with component services
> in
> > > Windows 2k and XP. Right click on your package and select Shut Down.
If
> > you
> > > aren't shutting down COM+ it is very possible that that is what is
> causing
> > > your difficulties. Is your component called from IIS in any way? You
> > could
> > > also try restarting your web if it is because that can hold onto the
> dll.
> > > None of these should affect the tlb files though. Are you accessing
> your
> > > dll from C++ or any other development environments? If so these could
> > have
> > > your dll and tlb's open.
> > > --
> > > Greg
> > > http://www.*-*-*.com/
> > > > I have a C# program using the COM wrapper with is called by Biztalk.
> > > > I am having problems rebuilding the application from time to time.
I
> > get
> > > an
> > > > Access denied
> > > > message on the DLL and TLB files.
> > > > I have had to delete the COM+ component and/or rename the dll and
tlb
> > > files
> > > > and sometimes even
> > > > reboot the machine in order to rebuild the application.
> > > > I have made certain that Biztalk was shutdown at the time I rebuild.
> > > > I have also found that if I delete the COM+ component, that when I
do
> > get
> > > > the app to rebuild that the
> > > > COM+ application is not automatically put back into component
> services.
> > I
> > > > have to manully register it with
> > > > regsvcs.exe
> > > > Is there some way to shutdown my COM+ application? Is that what is
> > using
> > > > (access denied in use by another
> > > > user) my DLL file?