Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2005

Tip: Looking for answers? Try searching our database.

.NET console application fails lanching it from a COM application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ElleEmme - 14 Jan 2005 16:47 GMT
Hi,

I developed a simple console app performing some optimizations and call to
DTS packages.

When I run the app from console or from Visual Studio everything is OK. When
I call the program from a VB6 app, DTS fail with access denied or sql server
non existant error.

The console program is launched with a CreateProcess call from VB6 app.

Someone can help me?

Thanks.
saurabh - 14 Jan 2005 17:09 GMT
Have you got a Com callable wrapper for your .NET application ?

--Saurabh
> Hi,
>
[quoted text clipped - 12 lines]
>
> Thanks.
ElleEmme - 14 Jan 2005 17:25 GMT
The VB6 program is from third parties and I can only specify an executable to
launch.

I need a callable wrapper for my .NET console app also in this case?

Thanks.

> Have you got a Com callable wrapper for your .NET application ?
>
[quoted text clipped - 15 lines]
> >
> > Thanks.
saurabh - 14 Jan 2005 17:21 GMT
Sorry I did not read it properly, but I am still wondering why you are using
CreateProcess? The way I had done it is define an interface, write an
implementation class and in visual studio project setting set the register
for com interop to true. This generates the CCW for your class and then you
can call the methods defined in the interface from your VB 6 app.

I am not sure thought if that will affect the errors you have mentioned. Can
you provide more info as to how far the execution goes? Does your
application gets launched from VB6 at all? the error you have mentioned
might be an issue with sql server running with different account from the
one which you are using to launch your exe

> Hi,
>
[quoted text clipped - 12 lines]
>
> Thanks.
ElleEmme - 14 Jan 2005 17:47 GMT
You're right, but as i wrote in my second message, I haven't the source of
the VB6 app, only I can specify an executable to launch.

Credential are fine, also windows identity, I checked them during the
execution.

But it works standalone, and doesn't work launched from the other program...

:-(

> Sorry I did not read it properly, but I am still wondering why you are using
> CreateProcess? The way I had done it is define an interface, write an
[quoted text clipped - 24 lines]
> >
> > Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.