Shell function in VB6 COM not working in ASP after installing .Net 
Author Message
 Shell function in VB6 COM not working in ASP after installing .Net

I have a COM for an ASP application that seems to have
been broken by installing the .Net framework.

The COM is a dll produced with VB5.  It uses the shell
function to invoke an exe file.  The exe file then
transforms data files.  This was previously working fine.

It has failed apparently since the installation of
the .Net framework on the development and host machines.
Neither the dll nor the exe file had been altered in this
time.

Have recompiled the dll in VB6 with the same result.  When
the shell function is invoked it returns an error code 5,
which appears to be "Invalid Procedure Call".

If I compile the VB code as a freestanding exe and run on
its own (ie without being called by ASP), it successfull
invokes the exe file and transforms the data files.

This suggests that rights applying when running ASP have
changed in some way.  The obvious question is whether
security permissions have changed for the Internet Guest
Account or Launch IIS Process Account.  They have
read/write access on the data directories and execute
access on the directory containing the dll and exe files.

So the question is whether .Net Framework has imposed some
other restriction on the invoking of the shell function in
a dll running under ASP (ie not under ASP.NET).

Appreciate any advice or suggestions.



Mon, 06 Dec 2004 12:28:53 GMT  
 Shell function in VB6 COM not working in ASP after installing .Net


Quote:
> It uses the shell  function to invoke an exe file

I have one of those too, and I have never been able to get it to
work with a "guest" user entity or an IUSER_MyMachineName entity.
I have needed to create a more powerful user then go into the
web app property pages and set it up to run as that user.

Regards, John



Mon, 06 Dec 2004 18:55:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. com object will not read registry when com object called from asp (vb works fine)

2. ADO.Net to fetch ActiveDirectory this function bugs in Asp.net but works in Vb.n

3. VB6/ASP vs .NET/ASP.NET development

4. file system object not working after installing .NET framework

5. asp.net datagrid training/book code not working

6. FileCopy not working from asp.net page

7. Functions not available after VB6 install

8. ActiveX control event not working when in asp.net page

9. ASP FUNCTION NOT WORKING AT ALL

10. Encryption/decryption function DOES NOT work in .NET

11. opening a file, works under VB6 but not .NET

12. Help: ActiveX control works in VB6 but not in VB.Net

 

 
Powered by phpBB® Forum Software